Focal Point
To use &IBIMR_user variable.

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

July 11, 2013, 03:44 AM
Avinash
To use &IBIMR_user variable.
Dear All,
Plz tell me How can i use '&IBIMR_user' in script of a htm page.
like
  
<html>
<head>
<script type="text/javascript">
alert(&IBIMR_user);
</script>
</head>
</html>



Thanks!
@vi

WebFOCUS 8105, Dev Studio 8105, Windows 7, ALL Outputs
July 11, 2013, 08:05 AM
J
 alert('!IBI.AMP.IBIMR_user;'); 

(yes you need the semicolon)

Also lookup the syntax for global variables and !IBI.FIL.REPORT; as those will come in handy. There are all kinds of posts on this already. Welcome to the forums.

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


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
July 11, 2013, 08:35 AM
J
I assumed too much.
First of all, you will need IBIMR_user variable enabled in your client settings. You can see if this is enabled in your fex using:
 -? &IBIMR_user (or just -? & if you want to see all the variables)


Check out this post and others...

Secondly, you will need htmlform from the fex to pass the variable to the html page either using:
 
-HTMLFORM BEGIN
<html>
<head>
<script type="text/javascript">
alert('!IBI.AMP.IBIMR_user;');
</script>
</head>
</html>
-HTMLFORM END
 
for embedded html or
  -HTMLFORM app/yourhtmlpage.htm 
for an external html page.


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
July 11, 2013, 10:12 AM
Avinash
Thanks a lot for reply..
bt i want to use this variable in a htm page.I dont want to use fex bcaz i am working on user manual and my first page in a html. so how can i use this....


Thanks!
@vi

WebFOCUS 8105, Dev Studio 8105, Windows 7, ALL Outputs
July 11, 2013, 10:14 AM
J
Take a look at this (I just posted today). You will still need a fex either embedded or referenced in your html. Combine parts of each of these posts and you will be able to achieve your goal.


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
July 11, 2013, 06:21 PM
Waz
Avinash,

Update your signature so we know what version you are using.

You may be able to get this from a cookie.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

July 12, 2013, 01:52 AM
Avinash
Thanks waz, To giving me a great suggestion.
Bt my basic functionality is that i have a normal html page and i want to call a jsp page with parameter of User ID.


Thanks!
@vi

WebFOCUS 8105, Dev Studio 8105, Windows 7, ALL Outputs
July 12, 2013, 02:02 AM
Waz
Have you already logged into MRE ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

July 12, 2013, 03:55 AM
Avinash
yes.


Thanks!
@vi

WebFOCUS 8105, Dev Studio 8105, Windows 7, ALL Outputs
July 12, 2013, 04:00 AM
Avinash
waz i have a question.
I have a domain with a folder.
By mistake the domain is deleted. and when i am going to load domain with mre cm extract. its giving me a error in log files.
"Can't create domain object based on provided domain key abc_ab. "
Plz help me.


Thanks!
@vi

WebFOCUS 8105, Dev Studio 8105, Windows 7, ALL Outputs
July 12, 2013, 09:06 AM
Doug
Do you have admin rights to create a domain?
July 12, 2013, 10:02 AM
Avinash
Yes, I have Doug.


Thanks!
@vi

WebFOCUS 8105, Dev Studio 8105, Windows 7, ALL Outputs
July 12, 2013, 10:56 AM
Doug
Can you 1) create that domain and folder manually, 2) extract the contents to a local drive, 3) copy from the local drive to the domain folder?
July 12, 2013, 02:10 PM
Avinash
Thanks Doug, Bt the problem is that All the fex and htm are running from Mre. and I put Domain href property name and folder name in my url. when I going to create manually Domain, Its become change of domain href and folder name.


Thanks!
@vi

WebFOCUS 8105, Dev Studio 8105, Windows 7, ALL Outputs