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
+1
person also asked this
people also asked this
Replies
5 replies
Subscribers
7 subscribers
Views
3586 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Unble to display first(blank) row in an Editable Grid
sushanthp
over 8 years ago
Hi all,
When the task is launched the grid (screenshot attached) is displayed with not row fields to input the values. But I am able to add the row fields and input data manually (using Add a product link). I need to be able to show a blank row filed to input data at the launch of the task itself .(Code attached)
Kindly suggest
OriginalPostID-256047
Grid Code.txt
Discussion posts and replies are publicly visible
0
sushanthp
over 8 years ago
Screenshot of Error highlighted
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 8 years ago
@sushanthp Following are some of the ways to resolve:
1. I believe you are making use of a form level validation. Did you try configuring the 'validateAfter' attribute as 'SUBMIT'?
a!formLayout(
validations: if(
,
a!validationMessage(
message: "Please enter atleast one product code",
validateAfter: "SUBMIT"
),
{}
)
)
2. Prior to hitting the user input task, populate the product code cdt process variable(the one that will be passed to rule input of the user input task) with default values conditionally. That is, if the PV holds no values, populate the variable, else skip the assignment of values.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
bhanuprakashm
over 8 years ago
Hi sushanthp, when you are launching the task from process model you just pass "{}" in items pv!..
It will create a row with blank values,,
Hope it will help you
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sparshs
over 8 years ago
I think you can just pass some default null values to the grid through your CDT variable and that will help you to generate the grid with a row and null values.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
reginaldm377
over 8 years ago
Like @bhanuprakashm mentioned, just initializing your row of items with "{}" should do the trick. You can also achieve the same result by using a blank type constructor (that's appended to a variable) in the case you're using a cdt for your items (i.e. 'type!{urn:appian:projectName}CDT_Name'()). Hope this helps.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel