Hi All,
I'm finding a fair amount of the screens I'm designing in Rollbase are single records - but to get to the record view I'm having to click through a list of one record first. Does anyone have a strategy for going straight to the view in these cases?
Thanks,
Mark
è You create some html elements with well known IDs to easily access them via jquery
è Javascript makes Ajax call to retrieve the values based on objectId and list of fields you need to retrieve
è On Ajax completion callback, use jquery to find the html elements to which you want to dynamically add the retrieved values
1) Take note of:
a. The object id of your object (click on your object and use the id at the end of the url, for example: main.jsp?pageId=41601&tabId=41689&id=43901
b. The link to the edit page
2) Create a generic page and add a section
3) In section add html component (See content below)
4) In section add javascript component with this (See content below)
Hi tciot,
Do you have any examples on how you'd render a generic page with the data you get back from rbf_getFields? I'm used to the {!fieldName} replacements - but obviously you wouldn't be able to do that sort of thing in this case. Would I need to write some JQuery that dynamically built up the screen - or something along those lines?
Thanks!
Flag this post as spam/abuse.
Hi all,
Does anyone have any ideas how this type of task might be approached? I also have a tab with a list that only ever contains 1 record. Currently the user would click the tab, then click the record to view. Ideally I would like to implement a solution where clicking the tab displays the record in view mode.
I have attempted to do a few things with limited success. I have tried putting a script into the list screen to redirect to the view page, but this gave an annoying flashing effect. I have also tried to use some JQuery in the application header to change the link on my tab to link directly to the view page, however I couldn't reliably select the tab as there does not seems to be a sensible way to identify the tab as there are no ids or names associated with any of the tab elements.
I welcome any ideas on how to solve this.
Thanks
Hi all,
Does anyone have any ideas how this type of task might be approached? I also have a tab with a list that only ever contains 1 record. Currently the user would click the tab, then click the record to view. Ideally I would like to implement a solution where clicking the tab displays the record in view mode.
I have attempted to do a few things with limited success. I have tried putting a script into the list screen to redirect to the view page, but this gave an annoying flashing effect. I have also tried to use some JQuery in the application header to change the link on my tab to link directly to the view page, however I couldn't reliably select the tab as there does not seems to be a sensible way to identify the tab as there are no ids or names associated with any of the tab elements.
I welcome any ideas on how to solve this.
Thanks
Flag this post as spam/abuse.
Hi all,
Does anyone have any ideas how this type of task might be approached? I also have a tab with a list that only ever contains 1 record. Currently the user would click the tab, then click the record to view. Ideally I would like to implement a solution where clicking the tab displays the record in view mode.
I have attempted to do a few things with limited success. I have tried putting a script into the list screen to redirect to the view page, but this gave an annoying flashing effect. I have also tried to use some JQuery in the application header to change the link on my tab to link directly to the view page, however I couldn't reliably select the tab as there does not seems to be a sensible way to identify the tab as there are no ids or names associated with any of the tab elements.
I welcome any ideas on how to solve this.
Thanks
Flag this post as spam/abuse.
Flag this post as spam/abuse.
Hi tciot,
Do you have any examples on how you'd render a generic page with the data you get back from rbf_getFields? I'm used to the {!fieldName} replacements - but obviously you wouldn't be able to do that sort of thing in this case. Would I need to write some JQuery that dynamically built up the screen - or something along those lines?
Thanks!
Hi tciot,
Do you have any examples on how you'd render a generic page with the data you get back from rbf_getFields? I'm used to the {!fieldName} replacements - but obviously you wouldn't be able to do that sort of thing in this case. Would I need to write some JQuery that dynamically built up the screen - or something along those lines?
Thanks!
Flag this post as spam/abuse.
è You create some html elements with well known IDs to easily access them via jquery
è Javascript makes Ajax call to retrieve the values based on objectId and list of fields you need to retrieve
è On Ajax completion callback, use jquery to find the html elements to which you want to dynamically add the retrieved values
1) Take note of:
a. The object id of your object (click on your object and use the id at the end of the url, for example: main.jsp?pageId=41601&tabId=41689&id=43901
b. The link to the edit page
2) Create a generic page and add a section
3) In section add html component (See content below)
4) In section add javascript component with this (See content below)
Hi tciot,
Do you have any examples on how you'd render a generic page with the data you get back from rbf_getFields? I'm used to the {!fieldName} replacements - but obviously you wouldn't be able to do that sort of thing in this case. Would I need to write some JQuery that dynamically built up the screen - or something along those lines?
Thanks!
Flag this post as spam/abuse.
Thanks Thierry,
Secretly I was hoping it would be possible to redirect straight to an edit or view page (as that would save a lot of effort in the future) - unfortunately it seems that that isn't possible. I've had a test of the principles of your idea and they seem to work pretty well - only problem being getting the object id of the record I want to display.
A lot of the singletons we have will be settings screens - for example personal preferences and the like. However, there are also examples when I'd need the top record (i.e. the latest) and just to display that on the screen. Thanks a lot for your help with this!
Thanks,
Mark