Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SilkMill
Community profile SilkMill Level 1
Job title here
Location here
4 BADGES
Level 1

Level 1

Learn more
Joined the community 12-02-2013 1:38:08 PM
Offline
Top badges earned by SilkMill
Customize the badges you want to showcase on your profile
Re: Hide submit button when there's nothing to submit
Avatar
Give Back 3
Level 1
SilkMill
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
View profile
SilkMill
- Adobe LiveCycle
Thanks for your time, Steve.Your preSubmit suggestion works a treat and I'm going to go with that rather than spend any more time on hiding the submit button.Cheers.Nigel.

Views

83

Likes

0

Replies

0
Re: Hide submit button when there's nothing to submit
Avatar
Give Back 3
Level 1
SilkMill
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
View profile
SilkMill
- Adobe LiveCycle
Thanks for replying, Steve. Change event doesn't get called (I put messagebox displays all over the place!), I guess because there is no user input - it's a read only calculate field.Layout:ready, form:ready and a few others were called so I tried the formcalc code in those but no good.Tried creating a new text field just so I could use its events, including calculate, changed $.rawValue to TotalQty.rawValue but no good.This isn't critical, just a nice to have, but I'm really keen to understand ...

Views

57

Likes

0

Replies

0
Hide submit button when there's nothing to submit
Avatar
Give Back 3
Level 1
SilkMill
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
View profile
SilkMill
- Adobe LiveCycle
Hi,I have a simple order form with a 'running total' of quantities ordered at the top of the form, calculated thus (FormCalc): $ = sum(Products.PRODUCT_GROUPS.DATA[*].PRODUCTS.DATA[*].Quantity)If this quantity is zero (i.e. nothing has been ordered) then I want to prohibit the form being submitted by email. I thought the best way of doing this would be to hide the submit button when this field is zero, and show it when > 0.I tries appending this code to the same calculate event of this field:if ...

Views

742

Likes

0

Replies

4
Re: Initialising a table column
Avatar
Give Back 3
Level 1
SilkMill
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
View profile
SilkMill
- Adobe LiveCycle
Moved forward a little I think.When I have two groups of 10 rows in the table, like:Group1 f1 f2 f3 f4 f1 f2 f3 f4 f1 f2 f3 f4 &etc. for 10 rowsGroup2 f1 f2 f3 f4 &etc. for 10 rowsthen this works:for (var iRow = 0; iRow < 2; iRow++) { for (var nRow = 0; nRow < 10; nRow++) { xfa.host.resetData("data.subform.table1.data[" + iRow + "].cell_table.data[" + nRow + "].field4"); } }Sadly I don't know how many groups or rows within groups there are....!Having got this far can someone point me towards the...

Views

52

Likes

0

Replies

0
Initialising a table column
Avatar
Give Back 3
Level 1
SilkMill
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
View profile
SilkMill
- Adobe LiveCycle
Hi,New to SAP Adobe and complete beginner at scripting.I have an interactive form with a table which contains a grouping; hierachy view looks like this:data subform1 table1 data (row) field1 (grouping field) cell_table data (row) field2 field3 field4 Field4 is the only input field in the table. I have a pushbutton which I would like to initialise (clear) all occurrences of field4 in the table, but I haven't been successful.I tried various combinations of $host.resetData("data.subform1.table1[*]....

Views

348

Likes

0

Replies

1