0

Dynamik Choice field

Hello

I use the "Dynamic Choice" field, How to sort the display of information alphabetically? in the table everything is alphabetically, in "Choise"  sort by time added

Thanks

6 replies

null
    • Fred
    • 2 mths ago
    • Reported - view

    in the code for the dynamic choice field add order by fieldname

    select tablename order by fieldname
    
      • iliper LTD
      • iliper_LTD
      • 2 mths ago
      • Reported - view

       good morning

      in which field will they add it? it gives an error everywhere)

      • Fred
      • 2 mths ago
      • Reported - view

       In Dynamic Values:

      'GM TABLE'.Tables order by fieldname
      • iliper LTD
      • iliper_LTD
      • 2 mths ago
      • Reported - view

       Thank you, everything works.

      I have one more question. There is a button that makes a record in the table. It is necessary that after the record, this record opens.

      let me := this;
      let myName := item(split(text('Select a Table'), " "), 0);
      let myNumb := item(split(text('Select a Table'), " "), 1);
      let new := (create Tables);
      new.('Hourly Estimation' := me);
      new.(Name := myName);
      new.(Number := myNumb)

      • Fred
      • 2 mths ago
      • Reported - view

      you have to decide between

      openRecord(nid,string)

      and

      popupRecord(nid,string)

      openRecord() takes you to the table then opens the record, so when you close the record you are in the new table.

      popupRecord() just opens the record without taking you to a new table.

      Since you put the new Tables record in a variable and it is in nid form, because create() always returns nid info, you can do:

      openRecord(new)
      or
      popupRecord(new)
      
      • iliper LTD
      • iliper_LTD
      • 2 mths ago
      • Reported - view

       wow, thanks for explaining, I couldn't understand what was happening)

      Thanks

Content aside

  • Status Answered
  • 2 mths agoLast active
  • 6Replies
  • 47Views
  • 2 Following