Is there an easy way to create a tab / menu item to another

Posted by Ruben Dröge on 09-May-2016 07:51

I am using the new vertical menu, but  the 'Object' tabs I can create always refer to the view page of that object.
Is there an easy way to create a menu link that refers to another page of that object?
This would be very useful..

Posted by Mohammed Siraj on 10-May-2016 02:46

Ruben, thank you for posting in IDEA's section. If you are looking for an immediate solution, you can acheive this via scripting. However, it is still not well supported in the product in the sense that it does NOT work against OriginalId's. We will address the same going forward.

Use this API to render the target page.

rb.newui.util.loadApplicationPage(tabId,pageId,additionalParams)

You can invoke this as part of a hyperlink onclick event or similar.

Note: This is available only for NewUI pages starting Release 4.0.4.

Eg:

<script>

try {

 if (!rbf_isNewUI()) {

   throw 'This Script is written specific to New UI Context';

 }

 rb.newui.util.loadApplicationPage(5739,4909,{ id:5822 });

//Note, for object edit, view pages, it is mandatory to pass object id value as parameter 'id'.

}

catch (err) {

 if (console) {

   console.log(err);

 }

}

</script>

All Replies

Posted by Thierry Ciot on 09-May-2016 19:30

You can create a generic page and add to it.

Posted by Ruben Dröge on 10-May-2016 01:49

Thanks, but that doesn't help since all I can add to the generic page from the components is the 'view' of my object. I want to get straight into the 'new' page of my object.

Posted by Ruben Dröge on 10-May-2016 01:55

Didn't find an existing idea for it, so created it:

community.progress.com/.../create_a_link_to_any_page_of_an_object_from_a_tab

Posted by Mohammed Siraj on 10-May-2016 02:46

Ruben, thank you for posting in IDEA's section. If you are looking for an immediate solution, you can acheive this via scripting. However, it is still not well supported in the product in the sense that it does NOT work against OriginalId's. We will address the same going forward.

Use this API to render the target page.

rb.newui.util.loadApplicationPage(tabId,pageId,additionalParams)

You can invoke this as part of a hyperlink onclick event or similar.

Note: This is available only for NewUI pages starting Release 4.0.4.

Eg:

<script>

try {

 if (!rbf_isNewUI()) {

   throw 'This Script is written specific to New UI Context';

 }

 rb.newui.util.loadApplicationPage(5739,4909,{ id:5822 });

//Note, for object edit, view pages, it is mandatory to pass object id value as parameter 'id'.

}

catch (err) {

 if (console) {

   console.log(err);

 }

}

</script>

Posted by Ruben Dröge on 10-May-2016 08:11

Thanks Siraj, that will do for now!

This thread is closed