Just was wondering if we had any code for setting the visible option dynamically in the field properties??
For example if we want to see all the characters in a character field of 200 in length, we create one more text entry field in the screen layout and give the criteria ,that only if the length is greater than 90 characters(which is usually the number of characters that we could see on the screen without having to scroll) you display the extra text field that we created or else keep it invisible(or in other words setting the 'visible' property to 'no').
I took a guess and wrote a code
if length (_self_.text) > 90 then do;
display1.visible() = 'Yes';
_display1_.text=substr(_self_.text,91);
end;
where display1 is the text character field that i created on the screen layout. hope this is clear enough!!
My clinplus is getting hung when i try and save this screen!
thanks
For example if we want to see all the characters in a character field of 200 in length, we create one more text entry field in the screen layout and give the criteria ,that only if the length is greater than 90 characters(which is usually the number of characters that we could see on the screen without having to scroll) you display the extra text field that we created or else keep it invisible(or in other words setting the 'visible' property to 'no').
I took a guess and wrote a code
if length (_self_.text) > 90 then do;
display1.visible() = 'Yes';
_display1_.text=substr(_self_.text,91);
end;
where display1 is the text character field that i created on the screen layout. hope this is clear enough!!
My clinplus is getting hung when i try and save this screen!
thanks
Comment