Method Community

 

Create multiple rows in a grid by Action

Last post 02-13-2015 12:19 PM by alexhuang. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-10-2015 12:49 PM

    Create multiple rows in a grid by Action

    Hi,

    Is it possible to generate multiple rows in a Grid by Actions?

    I'm working on PurchaseOrder screen, in my case, I need to create multiple rows in "PurchaseOrderLine" grid automatically. Each row should be fill with specific value (item, quantity and unit price)

    In the action, I can see "Insert new row into grid", so I guess I can do it in a loop. But, how can I insert data into fields of every row? I can see "Enter value into field on Screen" and can select field in a grid, but can I select which row?

    Or, is it right if I create my data in"PurchaseOrderLine" table directly, then refresh grid to load them? but does it mean I need to save this PurchaseOrder first?

    Thanks for your time.

    Alex

    Chief Architect
    Yi Systems, Inc.
    alexhuang@yisystems.com
    www.yisystems.com blogs.yisystems.com
    Software.Web.Cloud.IT
  • 02-10-2015 2:32 PM In reply to

    Re: Create multiple rows in a grid by Action

    Hi Alex,

    Either of those should work, but your better option is probably to insert them into the table (associated with current PO) and refresh. I would recommend saving the PO first.

    Hope this helps.

    - Justin

    Justin Henderiks
    Technical Sales Specialist
    Method Integration Inc.
    Toll Free: 1.888.925.6238
    Local and overseas: 416.847.0400
    Fax: 416.640.6027
    E-mail: j.henderiks@method.me
  • 02-13-2015 12:19 PM In reply to

    Re: Create multiple rows in a grid by Action

    Answer

    Thanks.

    Chief Architect
    Yi Systems, Inc.
    alexhuang@yisystems.com
    www.yisystems.com blogs.yisystems.com
    Software.Web.Cloud.IT
Page 1 of 1 (3 items)