fatihdi
asked on
I would like to set the hide when programatically with Lotus Script ,How can i do it?
I have a form that has many fields on it and I need to programatically set the hide-when of the fields according to some logic , How can I do it ?
field1
field2
field3
.
.
.
The field names are following in a row so i can set the value of those fields with a for loop with replaceitemvalue, but how can i set the hide-whens programatically? is there a way to do it?
field1
field2
field3
.
.
.
The field names are following in a row so i can set the value of those fields with a for loop with replaceitemvalue, but how can i set the hide-whens programatically? is there a way to do it?
It should be possible with DXL export / manipulate xml file / DXL import .. more advanced stuff though.
Have a look at this article, its worth reading it just to get a better overview of Notes design:
http://www-10.lotus.com/ldd/ddwiki.nsf/dx/ls-design-programming.htm
Have a look at this article, its worth reading it just to get a better overview of Notes design:
http://www-10.lotus.com/ldd/ddwiki.nsf/dx/ls-design-programming.htm
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Assuming this so you can quickly configure an application programatically quickly then you could have some base fields that hold a string that defines which fields to hide.
If you then have each field numberwed in a config doc, not actual name but somewhere you have list that field x is number y then you can add a simple hide when to every field.
A simple string could be 0 or 1 to set the hide, so hide if 1
0010010
Would mean field 3 and 6 will be hidden.
The fields would then have @if(@middle(referencefiled ;fieldnumb er;1)="1"; @true;@fal se)
You could also put values in a list and use @subset but I find string and @middel faster and more flexible.
Not programatical but something that can be applied to every field and modified quickly in a profiel or config document etc.
What are you trying to achive or do, that may help the experts come up with a good suggestion for you.
If you then have each field numberwed in a config doc, not actual name but somewhere you have list that field x is number y then you can add a simple hide when to every field.
A simple string could be 0 or 1 to set the hide, so hide if 1
0010010
Would mean field 3 and 6 will be hidden.
The fields would then have @if(@middle(referencefiled
You could also put values in a list and use @subset but I find string and @middel faster and more flexible.
Not programatical but something that can be applied to every field and modified quickly in a profiel or config document etc.
What are you trying to achive or do, that may help the experts come up with a good suggestion for you.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If this is a web app (or xPages), then you can use Javascript to set the style's display property to 'none'.