Jump to content

Project keyword definition, list type


---
 Share

Recommended Posts

Hi,

is there a way to define a custom list keyword type in the SW2023 in the json file? I would like to offer the user more options for a keyword but do not want to allow free string in that field. For example nest of the injected part could be just only: A, B or C (no other choices).

I mean a json like this (but it does not work so):

{
    "content": {
        "": [
            {
                "description": "Nest",
                "key": "nest",
                "type": "list",
                "value": ["A", "B", "C"]
            },
...

Thanks!

Edited
Link to comment
Share on other sites

I dont think you can make project keywords anything other than a string, date, or number. 

image.png.34aa98ca948d924c59bc0d21914b217b.png

you could present the user with a dialog, and feed the result of that dialog into a project keyword? 
 

  • Like! 1
Link to comment
Share on other sites

Yes, but for that I have to do some Python exercises. At the moment I am not very practiced in that. But it seems that I have to get familiar with it... 🙂

Thank you!

Link to comment
Share on other sites

If you are using the Kiosk interface, it's easy: You just have to drop a selection list and edit the entries. The Dialog is already part of the Kiosk:

image.thumb.png.70911735dd547fa496d563096c2106c5.png

 

  • Thank you! 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...