Expand my Community achievements bar.

SOLVED

Find which custom UI is being used and pass into form

Avatar

Level 3

Hello,

I have a couple different UI's being used.  I was wondering if it is possible to figure out which UI is being used in the form, either by a call from the form itself using reader extensions or by passing information into the form through a custom render. 

Any help is greatly appreciated.  Thanks.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Ok, maybe you can use the Custom Configuration -> httpheader to get the info.

This is what I get after base64 decoding it:

��� sr� java.util.HashMap  ��� `� � F�
loadFactorI�    thresholdxp?@����� w ��� ��� t� accept-encodingt� gzip,deflatet� content-lengtht� 606t�
connectiont�
keep-alivet� referert�-http://localhost:8080/workspace/workspace.swft� hostt� localhost:8080t� accept-languaget� en-us,en;q=0.5t�
user-agentt�\Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11t� accept-charsett� ISO-8859-1,utf-8;q=0.7,*;q=0.7t� cookiet�]JSESSIONID=8DA0362A5FBE7EEF86996EE922326E36; lcAuthToken=14AAF071-55F2-9279-A28D-39AF4F33FC55t� content-typet� application/x-amft� acceptt�?text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8t�
keep-alivet� 300x

I know it's not pretty but that might work.

Jasmin

View solution in original post

8 Replies

Avatar

Level 10

What do you mean by UI?

Different forms? Different Workspace? Different web pages?

Jasmin

Avatar

Level 3

Workspace UI's.

Thanks.

Avatar

Level 10

If you have different UIs, I'm assuming they have different urls.

If the form is rendered from an input xfaForm or DocumentForm variable using a Render service, you can get that url from the Custom Configuration->TargetUrl value that is passed to the render service.

Jasmin

Avatar

Level 3

Both of the UIs are on the same server.  When I pull the TargetURL value, I get the same result (http://<server>/workspace-server/submit). Please let me know any other ideas you have.

Thanks.

Avatar

Correct answer by
Level 10

Ok, maybe you can use the Custom Configuration -> httpheader to get the info.

This is what I get after base64 decoding it:

��� sr� java.util.HashMap  ��� `� � F�
loadFactorI�    thresholdxp?@����� w ��� ��� t� accept-encodingt� gzip,deflatet� content-lengtht� 606t�
connectiont�
keep-alivet� referert�-http://localhost:8080/workspace/workspace.swft� hostt� localhost:8080t� accept-languaget� en-us,en;q=0.5t�
user-agentt�\Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11t� accept-charsett� ISO-8859-1,utf-8;q=0.7,*;q=0.7t� cookiet�]JSESSIONID=8DA0362A5FBE7EEF86996EE922326E36; lcAuthToken=14AAF071-55F2-9279-A28D-39AF4F33FC55t� content-typet� application/x-amft� acceptt�?text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8t�
keep-alivet� 300x

I know it's not pretty but that might work.

Jasmin

Avatar

Level 3

How do you do a base64 decode of the httpheader?  As long as I can get information on which UI is being loaded I don't mind having to do a little digging to get it

Avatar

Level 10

Right now I just used a web site to decode the string.

You could create a custom component or the script service and use some java code to do it through code.

We don't have a decode built in LiveCycle.

Jasmin

Avatar

Level 3

I checked by using an online web site and this does show the custom workspace URL.  I'm going to create a script that will base 64 decode and then pull the UI name.  Thank you for your help Jasmin!