Announcement

Collapse
No announcement yet.

Add elements to a select field (links menu type) dinamically

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

  • Add elements to a select field (links menu type) dinamically

    Hello Guys:

    I'm trying to create a form wish adds or removes options from a select (link meny type) dinamically depending on the type of user. do you gusy have any idea about how that can be done?.

    Regards

  • #2
    Yes, you need to make your sql dynamic by using a variable like:

    where myarg = [myarg_from_an_event];

    In general you can generate the autoselect, but you are allowed to change the generated sql statement to your needs.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      So the only way is by using an SQL statement?

      Regards

      Comment


      • #4
        Most of SC is database driven. Select fields can be loaded by calling applications, but I never used that. But you can always generate your own field by using javascript as an escape.
        Albert Drent
        aducom software netherlands
        scriptcase partner, reseller, support and (turn-key) development
        www.scriptcase.eu / www.scriptcase.nl

        Comment


        • #5
          Thank you again Albert:

          Tho, i think a good addition to scriptcase would be a macro to add or remove elements from a manual select, such as dropdownlist or checkbox, dinamically.

          Don't you think?.

          Regards

          Comment

          Working...
          X