Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Nithin B. on April 21, 2022, 06:51:34 pm



Title: SCROLLGRID issue
Post by: Nithin B. on April 21, 2022, 06:51:34 pm
Hi ,
I need to display all items side by side using ScrollGrid. But its not working properly as expected (Genero 3.20.09). Here i will attach files used .Please find below.

FUNCTION customer_home() RETURNS()   
DEFINE i ,int_value INT,           arr_int DYNAMIC ARRAY OF INTEGER     
OPEN FORM Home FROM "CustHome"   
  DISPLAY FORM Home   
 LOCATE gr_cus.product_image IN FILE   
DECLARE c_cust CURSOR FOR SELECT DISTINCT vendor.product_id FROM vendor
   LET i = 1
   FOREACH c_cust INTO int_value     
 LET arr_int = int_value       
LET i = i + 1   
 END FOREACH
   FOR i = 1 TO arr_int.getLength()     
 LOCATE gr_custrec.product_image IN FILE     
  SELECT vendor.product_image,vendor.product_name,vendor.product_details,vendor.price           INTO gr_custrec.* FROM vendor          WHERE vendor.product_id = arr_int 
  END FOR   
 DISPLAY ARRAY gr_custrec TO cust.* ATTRIBUTES(UNBUFFERED)   
 END DISPLAY   
IF int_flag OR quit_flag THEN   
    CLOSE FORM Home 
  END IF 
END FUNCTION

Here i attached screenshot, i need a items display like that.
FYI : for some other system its working (same configuration)
Do I need to configure anything for that?  Please advise/give some idea in this regard

Thanks
Nithin


Title: Re: SCROLLGRID issue
Post by: Reuben B. on April 26, 2022, 12:26:12 am
Check your .4st.

The screenshot looks like it is an example of using the StyleAttribute customWidget with a value pagedScrollGrid  http://4js.com/online_documentation/fjs-fgl-manual-html/#fgl-topics/r_fgl_presentation_styles_scrollgrid_style_attributes.html

So it is probable that your .4st does not have that value or the STYLE= value in the .per does not match the value in the .4st

Reuben


Title: Re: SCROLLGRID issue
Post by: Nithin B. on April 26, 2022, 06:24:27 am
Hi reuben,

As per your advise, I made changes in .4st . Now the issue is resolved .

Thanks