Jump to content
Sign in to follow this  
JalmariO

How to increase the lrel - list (12.5)

Recommended Posts

Hi,

We have a need to increase the amount of CI's displayed on update_lrel_nr.htmpl. It shows 25 CI's on default and I see that "$length" which is used in code below is 25:

<PDM_LIST SOURCE=list SORT=$sort START=$start LENGTH=$length ESC_STYLE=c>
p.set_left_vals('$list.persistent_id', '<PDM_FMT JUSTIFY=TRUNCATE ESC_STYLE=C WIDTH=80>$list.COMMON_NAME</PDM_FMT>', '<PDM_FMT JUSTIFY=TRUNCATE ESC_STYLE=C WIDTH=80>$list.COMMON_NAME, $list.status.sym, $list.summary</PDM_FMT>');
</PDM_LIST>

I can change "LENGTH=$length" to e.x. LENGTH=50 and will get 50 CI's to displayed on that list. Problem is that the code that "cuts" that list to sub-views "1,2,3,next" keeps still showing CI's in sets of 25 after "first view". I don't know how to explain this... :), but here's the example when I change "LENGTH=$length" to LENGTH=100:

First set (1):

- shows CI'f from 1-100

Second set (2):

- shows CI's from 26-50

Third set (3):

- shows CI's from 51-75

etc...

How can I change the sets so that the list of CI's would be divided by e.x. 100 and showed properly? 0-100, 101-200, 201-300, etc.

Cheers!

Share this post


Link to post
Share on other sites

Update the file NX_ROOT$\bopcfg\www\web.cfg

Change the value of ListPageLength from 25 to whatever you want.

restart Service Desk

(note that this will affect all list pages)

Edited by estli01

Share this post


Link to post
Share on other sites
Update the file NX_ROOT$\bopcfg\www\web.cfg

Change the value of ListPageLength from 25 to whatever you want.

restart Service Desk

(note that this will affect all list pages)

Thank you very much! My other question then is... surprise surprise ... How to make this just for one form? :)

Share this post


Link to post
Share on other sites

henning1518,

try to placed followed tag before your pdm_list:

<PDM_SET length=1000>

form might look uncommon but you'll get whole list.

Share this post


Link to post
Share on other sites
13 hours ago, cdtj said:

henning1518,

try to placed followed tag before your pdm_list:


<PDM_SET length=1000>

form might look uncommon but you'll get whole list.

I already tried that. It's working for the list, but not for the page navigation under the list... as JalmariO said.

Share this post


Link to post
Share on other sites

I have the whole list in a first set so I didnt tried to navigate next... So seems you need to rewrite nav bar to make next $start depended on $length.

Share this post


Link to post
Share on other sites
On 3/23/2019 at 9:59 PM, cdtj said:

I have the whole list in a first set so I didnt tried to navigate next... So seems you need to rewrite nav bar to make next $start depended on $length.

And that is exactly my problem. I think it is in one of the encrypted spel-files 🤔

Share this post


Link to post
Share on other sites

I think it's defined on javascript level where arguments like len and start are passed to function. I'll try to check this later.

updated: yeah, seems like this is WebEngine OP called PG and it doesnt have any other arguemnts, to pass in. But you can set length as int multiple to 25 and modify next page URL from OP=PG+PG=page_number to OP=PG+PG=length/25*(page_number-1).

Edited by cdtj

Share this post


Link to post
Share on other sites

Thanks cdtj, but i have no idea how i can realize that. I can´t find OP=PG+PG  in the existing files. Or must i code it completly new? :)


 

 

Edited by henning1518

Share this post


Link to post
Share on other sites

for initial load of update_lrel_xxx form find this area in  list_nr.htmpl:

<PDM_IF "$args.KEEP.ForLrel" == "1">
document.write('<input type="hidden" name="HTMPL" value="update_lrel_nr.htmpl">');

and add

document.write('<input type="hidden" name="KEEP.RowsPerPage" value="100">');

 

in update_lrel_xxx you can Change all links in loadActions() with this:

jq("[id^=dx_]").each(function() {
    jq(this).attr("href", jq(this).attr("href") + "+KEEP.RowsPerPage=100");
});

 

regards,

pacy

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

You can also add  +KEEP.RowsPerPage=100  behind a src:

<PDM_MACRO name=TAB title="Activity" height=300 id=alg src="OP=SEARCH+FACTORY=alg+QBE.EQ.call_req_id=$args.persistent_id+QBE.EQ.internal=0+QBE.NE.type=PROP_CHANGED+KEEP.RowsPerPage=100"

And you don´t need to change the ListPageLength for all lists.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...