SessionBean output

Jan Bothmann shared this question 6 years ago
Answered

Hi

Im currently working on a dynamic custom header and need to know if i can get the "Client Organizations Refrence ID" from the SessionBean, i know i can get the "Client Organization Name", but our naming convention prevents us from using that one.

With this i can set the respective company logos dynamically, and would only need to maintain a single .jsp file instead of 1 for each customer.


Best regards,

Jan

Replies (3)

photo
1

Hi Jan,

If you are going to be working frequently with JSP files, I would recommend downloading something like Eclipse and then adding the i4-core.jar and i4-mi.jar files from the YF lib to the build path so that you can use the auto-complete so see what exactly is available from the bean.

Though, in this case it will be accessed as:

SessionBean sessionBean = i4RequestRegistry.getInstance().getCurrentSessionBean(); 
To access the current client ref you can just use:

sessionBean.getClientReferenceId();
Let me know if this works for you!

Nathan

photo
1

Hi Nathan,

Great, just tested it and it works perfect.

Best regards

Jan

photo
1

Awesome! Let me know if you have any other questions.

Nathan

Leave a Comment
 
Attach a file