Announcement

Collapse
No announcement yet.

Is it possible to make a master-detail using grids?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is it possible to make a master-detail using grids?

    Hello,

    It is possible to create a master-detail using grids.
    I would like to know if I can create a grid and that when the user selects one of the lines of the master grid, the detail grid changes and shows the detail that corresponds to the grid selected in the master grid.

    Is this possible with scriptcase?

    I want the master grid to show all the records of the platforms available with each of the fields in the "platforms" table (in my case, some of the platforms would be: Huawei, Sony, Samsung, Siemens, etc.).
    In the detail grid I need to show each of the properties of the selected platform and also allow me to add or remove properties using the detail grid.

    Can someone tell me if it is possible and give me an example of how to do it?

    Thank you,

  • #2
    Well, I have achieved what I needed to do. In case anyone is useful, I describe below how I did it.
    1. Create two grid applications and one form application
    2. The master grid shows the available Departments in the Database
    3. The second grid shows the Platforms available for each Department
    4. The form shows the Properties for each Platform. I use an editable grid type form.
    5. In the form: Modify the SELECT statement by adding a condition where it compares against a global variable that will receive the parameter sent from the second grid.
    6. In the second grid: Create a field named LINK (field type: HTML Image). This field sends the parameter to the form.
    7. In the second grid: Modify the SELECT statement by adding a condition where it compares against a global variable that receives the parameter sent from the master grid.
    8. In the master grid: Create a field called LINK (field type: HTML Image). This field sends the parameter to the second grid.

    Although my original idea was to use a third grid for the Properties, finally an form works better.

    Now when I click on the link in each line of the master grid, the second grid shows the Platform information related to the department selected. By clicking on one of the links in the second grid, the form shows the Properties related to the Platform selected.. In the form I can add, modify and delete records easily.

    I hope you can understand me, I speak little English.

    Regards,

    Comment


    • #3
      Your English is great. I pretty much figured this out a while ago, but you gave me some additional insight. Thanks

      Comment

      Working...
      X