Skip to main content
Question

Task layout without fields

  • Oct 20, 2026 2:00 PM UTC
  • 3 replies
  • 55 views

Tejo van de Bor
Captain
Forum|alt.badge.img+5

hi,

We use a task with an editable parameter “quantity”, this is passed as value in a drag-drop action into the task, and then displayed so the user is able to adjust the number. In some cases, if the available quantity is e.g. 1, we use the task layout to set the quantity_type to 3, hidden outside the form, and then the dialog is not shown at all, but the task is executed. Perfect!

 

Now, if the user sets the quantity to 1 and exits the input field to hit Execute, the task layout is triggered again and also hides the fields outside the form. But then it leaves us this minimized dialog:
 

 
Is there an chance to skip the second firing of the task layout? 

3 replies

Arie V
Community Manager
Forum|alt.badge.img+13
  • Community Manager
  • Oct 20, 2026 5:55 PM UTC

Can you try with adding layout_mode <> 2 to the query?

This should exclude hiding the field when the cursor navigates away from the Quantity field.


https://docs.thinkwisesoftware.com/docs/sf/business_logic#layout


Tejo van de Bor
Captain
Forum|alt.badge.img+5

Thanks ​@Arie V,

I looked into the nr 2 layout_mode, but when I debug these steps, I only see the layout_mode=0, just before the last debug-step, I tabbed out the quantity field setting it to 1 as you can see. At that point, the field disappears and the dialog is minimized.
 

 


Renée Evertzen
Moderator
Forum|alt.badge.img+4

Hello ​@Tejo van de Bor , 

This happens to be one of those situations where it would be useful if the layout could make use of the @cursor_from_col_id parameter that the default possesses. Since that is unfortunately not possible in our reality, there is a workaround that you could perhaps try:

I imagine that the quantity field is set to 1 by a default that pulls that value of 1 from a certain data source. Could you try changing your check in the layout query from

if @quantity = 1

to something along these lines:

if exists (select quantity 
from source_table
where id = id
and quantity = 1)
begin
set @quantity_type = 3
end

Let me know if that helps :)

Kind regards, 

Renée