Announcement

Collapse
No announcement yet.

Scriptcase v8 improvement - access grid row line number through a sc variable

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

  • Scriptcase v8 improvement - access grid row line number through a sc variable

    Hello,

    I would like to ask to scriptcase team if it is possible to get on the next scriptcase improvements the access to the row line number on grid application.
    If something like a sc variable ( {rownumber} ) would be accesible I think it will help a lot to control the content of the grid pages.
    or the moment it seems that the row line is a kind of i++ variable in php and not accesible.

    I hope this is the proper disucssion flow to adress this upgrade.

    Regards,

    Alex

  • #2
    Not sure what you try to achive, but meanwhile, you can.

    Create a virtual field called rowline, and move out from visible fields on Fields Positioning

    onHeader
    PHP Code:
    [therowline] = 0
    onRecord
    PHP Code:
    [therowline] += 1;
    {
    rowline} = [therowline]; 
    Application Globals
    Set [therowline] as Out
    /Giuseppe

    Professional Scriptcase Services
    Some Customers opinions

    Comment


    • #3
      Hello,

      I did it but then I want to retrieve {rowline} in a grid php run button on the onrecord and onfinish event and this is not working.

      R.

      ​Alex

      Comment


      • #4
        sc_seq_register
        This macro provide the record (being processed) grid sequential number. It can be used, only in onRecord event.

        Ex. 1:
        if({sc_seq_register} == 10) {
        // last line of the page
        {total} = {sum_total};
        }
        Macro Scope
        Grid application
        onRecord
        /Giuseppe

        Professional Scriptcase Services
        Some Customers opinions

        Comment

        Working...
        X