cancel
Showing results for 
Search instead for 
Did you mean: 

Error in simple FormCalc Script

Former Member
0 Kudos

Hi

The following script in a checkbox change event returns the error below:

-

-


Z_Lso_BookingData.#subform[0].Subform6.CheckBox1::change - (FormCalc, client) -

-


if ( $.value == " 0" ) then

Subform2.presence = "invisible"

else

Subform2.presence = "visible"

endif

Error: invalid property get operation; value doesn't have default property.

Any suggestions what could be wrong? Thanks for responding.

René Morel

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

Thank you for responding. The problem was that in FormCalc you must use either the field name or the fully qualified SOM-path.

Regards

René Morel

Former Member
0 Kudos

Hi Gopi

No, I want to set the visibility of a subform depending on the value of the check box. The check box itself is not located in that subform.

Regards

René Morel

Former Member
0 Kudos

Hi,

If I get your problem then you are trying to make the check box visible and invisible based on some parameter.am I right then I would like to suggest to follow the following code in the script editor:

  1. And if you want to make some text hidden/invisible based on some RFC parameter then try out this code:

Else if you are comparing on the basis that if the parameter returned is null then this would work.

In the script Editor try this script on the field in with the following

Show: initialize

Language: formcalc.

Run at: Client

If ( $.isNull ) then

$.presence = "hidden"

endif

Or try out this code

Write this code on superior subform.

If ( $.<FIELD>.isNull ) then

$.presence = "hidden"

endif

Provided the subform should be in flowcontent.

If you still see any problems let me know if you require any further help.

Thanks,

kris