Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: SCROLLGRID issue  (Read 568 times)
Nithin B.
Posts: 2


« 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

* CustHome.per (2.34 KB - downloaded 44 times.)

* image_2022_04_21T09_16_56_204Z-min-2.jpg (76.55 KB, 1000x510 - viewed 104 times.)
Reuben B.
Four Js
Posts: 949


« Reply #1 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

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Nithin B.
Posts: 2


« Reply #2 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
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines