DDS SFLRCDNBR Keyword

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
DaveLClarkI
Experienced User
Posts: 165
Joined: Wed Dec 11, 2013 10:40 am
First Name: Dave
Last Name: Clark
Company Name: WinWholesale, Inc.
Phone: 937-294-5331
Address 1: 31101 Kettering Blvd.
City: Dayton
State / Province: Outside Canada/USA
Zip / Postal Code: 45439
Country: United States
Contact:

DDS SFLRCDNBR Keyword

Post by DaveLClarkI »

I have a couple of screens I've converted from the green-screen version which use the following definition in the DDS:

Code: Select all

     A            SFLPOS         4S 0H      SFLRCDNBR(*TOP)
This works as expected to allow the RPG program to specify subfile positioning by the desired relative record number. However, I have a couple of co-workers who are trying to do the same thing from scratch (i.e., completely from within the Designer) but their RPG programs cannot cause the subfile to be positioned at all. Is there something we are missing? ...or is this any issue with the Designer? (Sorry to post here, if so.)

Also, we tried adding the SFLRCDNBR(*TOP) keyword to the binding (though this doesn't seem the correct thing to do, either) and that won't even compile.
User avatar
Alex
Profound Logic Staff Member
Posts: 233
Joined: Fri Jan 04, 2008 12:10 pm
First Name: Alex
Last Name: Roytman
Company Name: Profound Logic Software
Contact:

Re: DDS SFLRCDNBR Keyword

Post by Alex »

The 2 properties you need to configure are:
- subfile record number (bind this to the appropriate field name)
- position at top (set this to true)
DaveLClarkI
Experienced User
Posts: 165
Joined: Wed Dec 11, 2013 10:40 am
First Name: Dave
Last Name: Clark
Company Name: WinWholesale, Inc.
Phone: 937-294-5331
Address 1: 31101 Kettering Blvd.
City: Dayton
State / Province: Outside Canada/USA
Zip / Postal Code: 45439
Country: United States
Contact:

Re: DDS SFLRCDNBR Keyword

Post by DaveLClarkI »

Yes, we did that and it compiles. But, that is apparently not enough to give the RPG program the ability to control subfile positioning. Only the screens we've converted are working. The screens we've developed from scratch are not working. When I compare the generated DDS source there is a big difference between the two source files. The converted source mentions the bound field five times. The from-scratch source mentions the bound field only two times.
User avatar
Alex
Profound Logic Staff Member
Posts: 233
Joined: Fri Jan 04, 2008 12:10 pm
First Name: Alex
Last Name: Roytman
Company Name: Profound Logic Software
Contact:

Re: DDS SFLRCDNBR Keyword

Post by Alex »

In the converted version, it probably also created a hidden element for this field. It does this for all hidden fields. So, that's why you see more occurrences. But the extra hidden element shouldn't affect the functionality.

I just created a simple example from scratch using "subfile record number" and "position at top" and it seems to work just fine. So it's kind of strange that it's not working for you.
DaveLClarkI
Experienced User
Posts: 165
Joined: Wed Dec 11, 2013 10:40 am
First Name: Dave
Last Name: Clark
Company Name: WinWholesale, Inc.
Phone: 937-294-5331
Address 1: 31101 Kettering Blvd.
City: Dayton
State / Province: Outside Canada/USA
Zip / Postal Code: 45439
Country: United States
Contact:

Re: DDS SFLRCDNBR Keyword

Post by DaveLClarkI »

OK, I've now had a chance now to create my own subfile grid from scratch and the subfile positioning is working just like the ones which were converted from green-screen. So... I'll get back with the programmer here that originally reported this problem to me and see what is the real issue. Thanks.
DaveLClarkI
Experienced User
Posts: 165
Joined: Wed Dec 11, 2013 10:40 am
First Name: Dave
Last Name: Clark
Company Name: WinWholesale, Inc.
Phone: 937-294-5331
Address 1: 31101 Kettering Blvd.
City: Dayton
State / Province: Outside Canada/USA
Zip / Postal Code: 45439
Country: United States
Contact:

Re: DDS SFLRCDNBR Keyword

Post by DaveLClarkI »

Turns out that the problem was as a result of my cohorts turning on the "sortable columns" option and also specifying an "initial sort column". The result is that the "subfile record number" specification is ignored or lost when PUI performs the initial sort in the browser at render time.
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests