Questions tagged [programmatically-created]

Any object in an application created using a computer program rather than created manually using something in the userspace.

General Definition

Any object in an application created using a computer program rather than created manually using something in the userspace.

GUI Elements

In general, elements are declared in inside their accompanying tags in / files or in any other derivatives ( , , , , , and many others).

Programmatically created are those elements that are coded in contexts that need to be compiled to take effect at . They could be created at by a click of a as an example, where they would be coded inside a click listener for that .

438 questions
5
votes
1 answer

Issue for a "two dimentionnal 'add another item' " with FormStateInterface::getTriggeringElement()

I'm learning drupal 8. I want create a page who contain a 'two dimensionnal' 'add another item' form. My code works well almost, but I have a strange behavior when I add rooms to a house (there is a strange value in my debug logs from the…
spacecodeur
  • 2,206
  • 7
  • 35
  • 71
5
votes
3 answers

How to programmatically trigger password reset email in django 1.7.6?

I've encountered a problem where I had to load more than 200 new users into my django app and right away send them a password reset email. This had to happen only once, done only by me and run quietly on backend. Surfing the internet brought me only…
chabislav
  • 939
  • 1
  • 8
  • 27
5
votes
2 answers

TestNG: how do I run a custom TestNG.XML File programmatically

I browsed through several different threads and websites (as well as the TestNG API) looking for how to run and create custom tests. I haven't found (or not understood) how I can run a custom testng.xml (test suite) programmatically. I have created…
5
votes
1 answer

Android, is it possible to animate TextView.setGravity()?

I have a situation where I would like to programmatically change the gravity of my text view (Gravity.CENTER_HORIZONTAL|Gravity.BOTTOM to Gravity.START|Gravity.BOTTOM). Currently I'm using the setGravity() method, but I'm wondering if there is…
5
votes
1 answer

Liferay exception on user creation com.liferay.portal.GroupFriendlyURLException

I created an user whit XXX username from java code. Because it was done with wrong permission and I can't see it from web interface, I delete directly from database. After that if I try to create the same user I got the following exeception: …
zeppaman
  • 844
  • 8
  • 23
5
votes
2 answers
4
votes
1 answer

My Swift 4 UIScrollView with autolayout constraints is not scrolling

I have created a small demo playground to get this working before adding the view to my app. I have a scroll view that is going to contain a number of buttons to scroll through horizontally. I know that these buttons need to go into a container view…
4
votes
3 answers

Add 'Done' and 'New line' buttons on keyboard in iPhone application

I have created a window based application with a UITabbarController as the RootViewController. In one of the tabs, i have provided UITextField and UITextView. I want to provide two buttons on the keyboard itself: Done - which will hide the…
Ajit
  • 101
  • 1
  • 2
  • 8
4
votes
1 answer

Change All Value Labels to Numerics in SPSS

I need to change all the value labels of all my variables in my spss file to be the value itself. I first tried - Value Labels ALL. EXECUTE. This removes the value labels, but also removes the value entirely. I need this to have a label of some…
PTrem1
  • 109
  • 5
4
votes
2 answers

Add Style after creating a View programmatically

The Title says it all, hopefully. 1) I create a View programmatically: RelativeLayout rl = new RelativeLayout(this); 2) I want to add it to an existing LinearLayout and after that i want to add a Style to the RelativeLayout. Something…
Mike
  • 857
  • 1
  • 7
  • 11
4
votes
2 answers

iOS - programmatically trusting CA (certificate authority)

I'm trying around with an app that is to securely connect from an iPhone client to a TLS server via sockets/streams for general data-exchange. For that purpose I set up an own CA with the mac keychain-tool and included the certificat in the code…
McMini
  • 305
  • 3
  • 15
4
votes
2 answers

TextView programmatically Android

I have some problems creating a textView programmatically. I don't really know how to solve it. The problems are : -The margin, I don't want my TextView stuck to each other. -The text is not centered in the drawable like in the title -I want the…
tonystrawberry
  • 102
  • 1
  • 2
  • 12
4
votes
3 answers

Android: Dynamically add views to ScrollView

I have a ScrollView and I want to insert a user specified number of HorizontalScrollViews. So what user says he wants to have a matrix of 5x5 elements, I want to insert 5 HorizontalScrollViews with 5 EditText objects each. My program adds the first…
4
votes
1 answer

How to add tap action to a custom UIButton?

I have a subclass UIButton that loads a Nib: @implementation BlaButtonVC - (id)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { NSArray *subViews = [[NSBundle mainBundle] loadNibNamed:@"BlaButton"…
3
votes
0 answers

How to use slots for dynamically created vue components

I have been working with creating vue components dynamically. But I am stuck with slot usage of dynamic vue components. Components assigned in slots reset when their parent's properties change. Posted two sandbox One of them is component inside a…
1 2
3
29 30