Announcement

Collapse
No announcement yet.

Security module , grid of users and link to sec_form_edit_users

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

  • Security module , grid of users and link to sec_form_edit_users

    Hello,
    I have a question about SC grid that is automatically created for the security module, and in particular for users.
    There is an "add new" button at the upper left corner to add a user, and for each record a link to update it.
    Both point to the same application "sec_form_edit_users" but:
    a) in the case of "add new" rightly appears the password and the mechanism for repeat and it is in insert mode
    b) in the case of the links on the exisiting records the two password fields are not displayed and is positioned on the user record on which I clicked.

    In the case of insert it is not passed the parameter user id.
    I can not understand where to look to understand how the system works.
    In the case of insert there are the two password fields , some buttons of toolbar are idden and the title is about insert.
    In the cas of update the title is editing and there are all the buttons of the toolbar (perhaps with different description).

    Regards Gianpaolo

  • #2
    I'm not quite sure what you want to know. Depending on the status of the application you can apply different things. If you add a new record then by default all fields are empty. If the form is called as a result of a link from another form the keys are predefined. It's actually straight forward. But I'm not sure where you doubts are.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      Originally posted by aducom View Post
      I'm not quite sure what you want to know. Depending on the status of the application you can apply different things. If you add a new record then by default all fields are empty. If the form is called as a result of a link from another form the keys are predefined. It's actually straight forward. But I'm not sure where you doubts are.
      Hello Albert,
      I wanted to say that I understand a php script that based on the parameters passed behaves differently.
      I do not understand where these different modes are set to operate at the application level "sec_forms_edit_users" automatically generated with the security module

      Comment


      • #4
        Is it just a matter of understanding or do you want to achieve something and you don't know how? The control logic of the generated applications can only be followed if you open the code in some php debugger like xdebug, phped etc.
        Albert Drent
        aducom software netherlands
        scriptcase partner, reseller, support and (turn-key) development
        www.scriptcase.eu / www.scriptcase.nl

        Comment


        • #5
          Gianpagi,

          3 things I see:

          1) If you create a field link from an app (to another app or same app), you can configure the properties which would include an option to "Add New" at the top. Automatically SC will take care of passing the id (when linking i.e. editing the specific line) or opening the new app in new mode for you. Not sure you want to get into the innards of that as Albert hinted but I suppose SC passes the config details by get or post params.

          2) In the destination app, if you remove the "update" and "delete" buttons from the toolbar and run the app directly, it will automatically open in Insert mode. Well you've given it no other choice, right? Heh. The converse should give opposite results too.

          3) You can use sc_apl_conf macro to also set opening state of an app before calling it from another app

          Hope this helps.

          Comment


          • #6
            Ok, Aducom and Scriptcaser

            Regards

            Comment

            Working...
            X