Announcement

Collapse
No announcement yet.

How to generate more fields?

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

  • How to generate more fields?

    Hi, I have a form but I don't know how to generate more fields according to amount of observations and also add condition (YES or NO).

    I explain.
    if I select more than one observation more fields are added observations, example: I have two observations, two golf observations and condition next (yes or no) are generated. the condition is to see if the observations were corrected.
    And record the data in a database.

    Thanks

  • #2
    you Can't generate fields dynamically in scriptcase (believe me I asked for such functinoality) my recomendation do that in a child form where you can add new "comments" and use the validate, onbeforeinsert, onbeforeupdate events to do what you need.

    Regards

    Comment


    • #3
      Originally posted by kafecadm View Post
      you Can't generate fields dynamically in scriptcase (believe me I asked for such functinoality) my recomendation do that in a child form where you can add new "comments" and use the validate, onbeforeinsert, onbeforeupdate events to do what you need.

      Regards
      I created a module where users can assign a max of 10 fields. But this was done by adding static fields and hide/display them. There's a macro to change the label.
      Albert Drent
      aducom software netherlands
      scriptcase partner, reseller, support and (turn-key) development
      www.scriptcase.eu / www.scriptcase.nl

      Comment


      • #4
        in theory you could do it dynamically.

        create table named "dynamic_fields" with Fields app_name, app_primary_record_id, field_name, Field_data

        then generate a editable grid for the above.
        use the Field_name to display the name of the field as a drop down from another table containing the names of your dynamic field.

        Then attach this application to your application as a detail app (as a master-detail relationship) with the app_name and the app_primary_id being your keys.

        Run, test and evaluate.
        ************************************************** ********
        We are Developing your Future Business Requirement right now with Scriptcase.
        www.sri.com.au & www.madikonda.com

        Comment

        Working...
        X