Focal Point
[CLOSED] Create a custom SET in Appstudio

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9197083676

May 26, 2015, 03:21 PM
Pak Protector
[CLOSED] Create a custom SET in Appstudio
Hello

Currently I am in AppStudio trying create a new SET. When I use the SET tool it only gives me Available Settings however I want to incorporate our own -SET command.

Is there anyway to do this in AppStudio?

This message has been edited. Last edited by: <Kathryn Henning>,
May 27, 2015, 08:24 AM
jgelona
Are you wanting to use SET or -SET. These are different commands.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
May 27, 2015, 09:27 AM
Pak Protector
Hello

I am trying to use the -SET command.

I want to -SET something equal to a custom variable NOT a system variable.

For example
-SET &CLMNO1= &INSD_CLAIMNO | ' ' ;
-SET &CLMNO2 = EDIT(&CLMNO1,'99999999999999999') ;
-SET &CLMNOJG = EDIT(&CLMNO2,'99999999999999999') ;
-SET &CLMNOVB = &CLMNOJG || '*' ;
-RUN

As you can see I do multiple edits to the &INSD_CLAIMNO. How can I replicate this using AppStudio?


WF 8.1.03
Windows 7 64 bit
May 28, 2015, 09:37 AM
jgelona
I'm not a big fan of App Studio or the GUI, but you should be able just type these in. Create a new procedure and just start typing.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
May 28, 2015, 10:13 AM
CoolGuy
I haven't seen a place to save off your own -SET settings via the tool layer, but usually you just write your own out via the text editor or source tab depending on where you are working.


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
May 28, 2015, 10:16 AM
Tony A
A "-SET" is Dialogue Manger so just right click on the component that you want to precede your "-SET" etc. and select "New/Dialogue Mngr/Dialogue Mngr" from the context menu.

Whereas a "SET" is an environmental setting and is added using the "SET" tool - right click (as above) and select "New/Set" from the context menu.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
May 28, 2015, 10:25 AM
CoolGuy
Well, I feel dumb. Thanks for the insight and correction Tony! I was mixing those 2 different commands up when using the tool. Appreciate it!


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
May 28, 2015, 11:41 AM
Tony A
Not dumb, just mistaken surely? Wink It's one of those things that many people get mixed up at times.

I am assuming that the DM is still added via text entry because it is so variable how people would want to apply it, that it would be nigh impossible to construct GUI other than for IF, Goto, Label or Repeats which have a little structure.

Of course the interesting bit will be whether Pak has picked up on this as they seem to imply that using "SET" is for a system variable?

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
May 28, 2015, 09:39 PM
StuBouyer
I've always been lazy and use "New/Other" for adding both Comments and DM code.

Once you save it App Studio works out which is which.

Also sometimes do it for simple FOCUS code too - especially when cutting and pasting.

Cheers

Stu


WebFOCUS 8.2.03 (8.2.06 in testing)