Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
9 replies
Subscribers
9 subscribers
Views
2852 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
I have several textboxes that get created dynamically using a rule called rule!D
aswinb
over 11 years ago
I have several textboxes that get created dynamically using a rule called rule!DCMIFS_CustomTextField which has the following code: a!textField(label:ri!label, value:ri!value, saveInto: ri!saveInto). Basically it is being used to create textFields. When I run the following code that I have attached with this post, whatever I enter into these textFields that were created dynamically using apply function disappears....means i cannot enter any value into these textboxes and if i click anywhere outside of the textboxes the values that i entered would disappear. Can anybody suggest any solution?...
performanceMetricsTotal.yml
OriginalPostID-104882
OriginalPostID-104882
Discussion posts and replies are publicly visible
0
jesse.triplett
Appian Employee
over 11 years ago
You'll need to use a!applyComponents instead of apply()
forum.appian.com/.../System_Functions
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aswinb
over 11 years ago
I tried using applyComponents but it didn't solve the problem....any other suggestions...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aswinb
over 11 years ago
a!applyComponents(function:rule!DCMIFS_TextField_ValidLength(label:_, value:_, saveInto:_),
array:merge(local!technicalOfficers,ri!hours, ri!hours))
This is the line where all the textFields are created dynamically....but whatever i enter intot these textFields disappear if I click outside...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
jesse.triplett
Appian Employee
over 11 years ago
Have you seen the SAIL_Recipes section available on forum? The following example should be of use.
forum.appian.com/.../SAIL_Recipes
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aswinb
over 11 years ago
I tried following up the recipe on dynamically creating textboxes but its too much away from my concept...i have to make textboxes based on the value of a local variable that gets populated from a query rule.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aswinb
over 11 years ago
also the applycomponents function in this example that you mentioned only has 1 parameter whereas I have 3 things...so its confusing as to how to map it.....
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
jesse.triplett
Appian Employee
over 11 years ago
Okay, I think a key takeaway is how the recipe is passing ri!guests (the saveInto value)
Similar to what you wrote above, try a!applyComponents(function:rule!DCMIFS_TextField_ValidLength(label:_, value:ri!hours, saveInto:ri!hours),
array:local!technicalOfficers)
and see if that gets you closer. What I think will happen is that you'll be able to write and save into every text field, but they'll all hold the same value
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aswinb
over 11 years ago
That's exactly what I have Jessse, but whatever I enter into these dynamically created textboxes disappear after I click the mouse outside.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
jesse.triplett
Appian Employee
over 11 years ago
I saw your other examples, did you actually try the above as written, without the [_] you were trying? I went ahead and made simple examples in my instance and have no problem saving the values.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel