Focal Point
[SOLVED] Is there any way to execute small scripts using a command window or similar?

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

May 01, 2020, 05:09 PM
Manoj
[SOLVED] Is there any way to execute small scripts using a command window or similar?
Hi,

I am new to WebFOCUS (only InfoAssist and BIP is used by us).

While I know that most of the forum discussions contain some code (a program, I would say), some contain small scrips like below.

Sample Script

(An extract from the above is given below in order to let you know what I am referring to.)

quote:

-*
-SET &PDAY = DATEADD (&YYMD, 'DAY', -1);
-SET &N_PDAY = AYMD (&YYMD, -1, 'I8YYMD');
-*
-TYPE YYMD ------- &YYMD
-TYPE PDAY ------- &PDAY
-TYPE N_PDAY ----- &N_PDAY


Is it possible to execute such a script using any WebFOCUS tool/command window to test what's happening. Or I need to create a report using InfoAssist, add some DEFINE/COMPUTE fields and run the report to see what the above is doing?

Thank you.

Kind regards,

Manoj.

This message has been edited. Last edited by: Manoj,


Newbie.
WebFOCUS 8.2.0.3.
Client 8.2.0.4.
May 03, 2020, 08:26 AM
Danny-SRL
You might be given access to the Web Console with a personal directory.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

May 04, 2020, 06:15 AM
Manoj
Hi Daniel,

I added the commands using 'Text Editor' and after saving to a file and running the file, I can see the output.

Great. Thanks for your reply.

Kind regards,

Manoj.


Newbie.
WebFOCUS 8.2.0.3.
Client 8.2.0.4.
May 04, 2020, 11:22 PM
dbeagan
I wanted to do some thing like that. I set up a Windows shortcut referencing the following URL (your URL will replace localhost:8080 with the server : port appropriate for your environment):
WebFOCUS 8.2.06
http://localhost:8080 /ibi_apps/TED?folderPath=IBFS:/WFC/Repository/Public&itemName=&mode=fex

However for earlier releases:
WebFOCUS 8.2.05 and earlier
http://localhost:8080 /ibi_apps/tools/portlets/resources/markup/sharep/SPEditorBoot.jsp?folderPath=IBFS:/WFC/Repository/Public&itemName=&isReferenced=true

Clicking on the shortcut opens up the code editor in the browser. You can drag-and-drop or cut-and-paste code into it and run the code.

NOTE:
You have to be already authenticated to WebFOCUS in the browser.

This message has been edited. Last edited by: dbeagan,


WebFOCUS 8.2.06
May 14, 2020, 05:38 AM
Manoj
Noted with thanks, dbeagan.


Newbie.
WebFOCUS 8.2.0.3.
Client 8.2.0.4.