merge tokens in jsp

Posted by Rollbase User on 19-Apr-2013 14:43

Is it possible to use the merge tokens in our jsp pages like we would in the rollbase ui? Specific example: If I have one of my application pages reference a jsp file, can I (within that jsp file) refer to a field belonging to the current user? In the ui when developing triggers or formulas, It looks like: {!#CURR_USER.rolespecial#code}

All Replies

Posted by Admin on 20-Apr-2013 21:46

Hi Micah,



For now, since you are using an external file it isn't possible since the file doesn't render directly on the zone (e.g. typing on a script component).



I suggest you:

a.) Before rendering the file, on the header/footer/sidebar component of your app, place hidden input fields/divs/span/elements that reference the data you need. e.g.



b.) Within your external file, simply reference the element. e.g. document.getElementById('user_specRole').value;



Hope this helps,

Piscoso Martin

Rollbase

Posted by Admin on 21-Apr-2013 01:11

Hi Micah,



I assume you are on Private Cloud. Which customer are you with? Can you submit a support request, suggesting this as an enhancement and we can get back to you with a suggested approach?



Thanks,

Matt

This thread is closed