Page 1 of 1
SUBFILE HORIZONTAL SLIDING
Posted: Fri Feb 09, 2018 4:43 am
by livio.daneluzzi
Hi...
I'm looking for a solution that let me to make sliding horizontally my subfile but keeping the first field locked.
For better details: this is a subfile:
CODE DESCRIPTION DATA1 DATA2 DATA3
XXXX YYYYYYYYYY ZZZZZ ZZZZZ ZZZZZ
If I slide horizontally, I would to see this one:
CODE DATA4 DATA5
XXXX ZZZZ ZZZZZ
keeping the firs column locked and slidin' only the others.
Is there a possibility to create this kind of subfile?
Thanks
Re: SUBFILE HORIZONTAL SLIDING
Posted: Fri Feb 09, 2018 9:45 am
by lyarbrough
Hi Livio,
For clarification, are you using this subfile in a Rich Display, or is it a detected subfile that you're using in Genie?
--Lillie
Re: SUBFILE HORIZONTAL SLIDING
Posted: Tue Apr 17, 2018 3:31 am
by livio.daneluzzi
Sorry, for the delay in answer. I was busy with my job in the last days.
The screen is a simple one rich display with only subfile datas and two buttons. The first field is a choice field and the others only in output.
Pratically I have:
RPG CODE
CHOICE CODE DESCRIPTION DATA1 DATA2 DATA3 ... DATA100
X XXXX YYYYYYYYYY ZZZZZ ZZZZZ ZZZZZ ... WWWWW
and I'm asking if it's possibile to slide horizontally an keep the CHOICE AND CODE (or at least almost one of them) blocked with a result like this after a slide:
RPG CODE
CHOICE CODE DATA90 DATA91 ... DATA100
X XXXX ZZZZZ ZZZZZ ... WWWWW
Re: SUBFILE HORIZONTAL SLIDING
Posted: Tue Apr 17, 2018 2:54 pm
by Scott Klement
The way customers have done that in the past is by creating two subfiles and styling/positioning them so that they look like one grid. The one on the left would contain only the choice/code, and the one on the right would contain everything else. The one on the right would be inside a simple layout widget with horizontal scrolling turned on.
The grid on the left would have it's scrollbar turned off, and a little bit of JavaScript code in the grid on the right can then be used to scroll the two grids together as if they are one grid.
What doesn't work in that scenario are features like filtering, sorting and excel output, since they are two grids they won't be sorted/exported/filtered together. (Unless you write your own routines to do so.) Aside from those things, it works nicely.
Re: SUBFILE HORIZONTAL SLIDING
Posted: Wed Apr 18, 2018 4:43 am
by livio.daneluzzi
Hi Scott, thanks for your reply!
Sincerely I haven't thought to use two subfiles side by side 'cause I don't knew how to scroll them in the same time.
But if you tell me there's a way to do it usin' Javascript, perfectly, I'll try to use it!!! I think this is the right solution about my question.
Thanks Scott.
(I learned a lot of things usin' your website, and I would to thank you also for this!)