This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Custom UI not setting tableview clicked item in workflow - List Folder
robopu last edited by robopu
i'm trying to use a workflow that lists files in a given directory (that you specify in the workflow before you run it)
i believe this was written by @olemoritz (aka @omz ??)
i can actually get the workflow to list files in my specified dropbox directory in a custom tableview! which is great! that's the hard part.
when i select the file, the tableview doesn't do anything.. it just sits there waiting. however there is a " Continue" Button right up at the top of the view, so i hit that and it appears this triggers the next step, which is a python block to open the file, in the workflow. (fyi, nothing i can find in the ui documentation tells me anything about the Continue Button or default tableview behavior but based on what i'm seeing it is indeed going to the next step in the workflow)
the problem is that what is being selected in the tableview is NOT being passed by default to the workflow input function of the next python block! as a result the directory full path to open the file is correct but the basename of the file is missing and thus editorial can't open the file since the filepath is incorrect.
the question i have is :
how do i get the value selected in a tableview row to automatically set and be the workflow input of the next step? i assumed this was the default behavior but if it's not how do i explicitly set an appropriate var so it can be passed to the next step and more importantly where do i do it in the UI editor? i dont' see any mention of how this is handled in the custom ui documentation but it's crucial to using any custom ui element.