SUBFILE HORIZONTAL SLIDING

Use this board to ask questions or have discussions with other Genie users.
Post Reply
livio.daneluzzi
New User
Posts: 6
Joined: Fri Feb 02, 2018 10:13 am
First Name: Livio
Last Name: Daneluzzi
Company Name: Daneluzzi IT
State / Province: Outside Canada/USA
Country: Italy
Contact:

SUBFILE HORIZONTAL SLIDING

Post 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
lyarbrough
New User
Posts: 16
Joined: Mon May 08, 2017 11:51 am
First Name: Lillie
Last Name: Yarbrough
Company Name: Profound Logic
Contact:

Re: SUBFILE HORIZONTAL SLIDING

Post 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
livio.daneluzzi
New User
Posts: 6
Joined: Fri Feb 02, 2018 10:13 am
First Name: Livio
Last Name: Daneluzzi
Company Name: Daneluzzi IT
State / Province: Outside Canada/USA
Country: Italy
Contact:

Re: SUBFILE HORIZONTAL SLIDING

Post 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
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: SUBFILE HORIZONTAL SLIDING

Post 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.
livio.daneluzzi
New User
Posts: 6
Joined: Fri Feb 02, 2018 10:13 am
First Name: Livio
Last Name: Daneluzzi
Company Name: Daneluzzi IT
State / Province: Outside Canada/USA
Country: Italy
Contact:

Re: SUBFILE HORIZONTAL SLIDING

Post 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!)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest