OTB Form widget - how to display related list as tab instead of link

mkm1
Mega Guru

In my scoped application, I am using out of the box (OTB) form widget which shows related list as links. Is there any option to make the links appear as tabs? 

 

Any direction will help. Cloning the widget is giving error for function 'hasRightsTo()' as unsupported ' data.isAdmin = gs.hasRightsTo('sp/configure.all/execute', null);' 

 

1 ACCEPTED SOLUTION

 

Your reference qualifier for the child reference should look something like:

javascript:'parent=' + current.parent_column;

 

Pass:     ...&sys_id=-1

in the URL to indicate a new record. 

View solution in original post

14 REPLIES 14

Hello jrmarkel,

Passing the &sys_id=-1 opens the form using the "Tabbed Form Widget" but there seems to be some issue. 

I have some client script, that execute server-side code from client side, on the form which auto-populate the certain fields on the form. It's failing to populate these fields.

 

Regards

mkm

 

These should be UI scripts that run on form load.

Test as before:

..../sp?id=form&table=sys_db_object&sys_id=-1

..../sp?id=form_tabbed_v2&table=sys_db_object&sys_id=-1

Good morning jrmarkel,

Hope you are doing good. So far observed a couple of things on the Tabbed Widget, just wanted to inform you. Widget does not support:

- Create a new record on a reference field, new button is not visible

- Does not support data type URL

 

Thanks, have a great day.

Regards

mkm

 

 

For the issue # 2, UI Action behavior I see it's happening with user with admin role. Here below is the Out of the Box screen shot where "New" button is hidden and below the screen shot is screen shot from the portal using tabbed form widget where "New" button is visible.

find_real_file.png

find_real_file.png

The new button is displayed when the user has canCreate authority:

 

<button name="new" role="button" class="btn btn-primary btn-sm m-l-xs" ng-click="newRecord()" ng-if="options.show_new && data.canCreate && !data.newButtonUnsupported" aria-label="${Create new record}">${New}</button>

 

 

An OOB example is one that uses OOB tables and is reproducible by anyone on any instance.

For example. show the difference between these URLs:

 

..../sp?id=list&table=sys_db_object

..../sp?id=list_v2&table=sys_db_object

 

when the results are the same, then the functionality is OOB.