Skip to main content
Open

Location awereness in code context

Related products:Software Factory

Freddy
  • Thinkwise Local Partner Brasil
  • 529 replies

Wouldn't it be nice if we have knowledge on the location of a task in the code context?  Now I have tasks that are coupled to more tables en views and there is not easy way to have this knowledge to work with in a default, layout and task. 

Did this topic help you find an answer to your question?

6 replies

Mark Jongeling
Administrator
Forum|alt.badge.img+23

Hi Freddy,

Could you elaborate on the Use case? Is your idea similar to this one?: 

 


Mark Jongeling
Administrator
Forum|alt.badge.img+23
NewNeeds feedback

Freddy
Forum|alt.badge.img+16
  • Author
  • Thinkwise Local Partner Brasil
  • 529 replies
  • August 26, 2022

Not entirely, the point is you want to use the model to have one task that is shown on for example 5 different table (variants). Although the principle function is the same, different screens usually mean different roles and thus small differences in business logic. So it would be great to have a variable for every position (in the model like a table, variant) where it is shown. So we can use this knowledge that if the task is activated from table A it inserts slighty different information then when it is executed from table B. 

Now sometimes you have to make 6 seperate tasks for what could be just one taks if just I have an @table_a , @table_b (so I can steer my data)..  even better would be if  these variables are filled with a 1 or 0 for example to have knowledge on it's execution origin. 


Mark Jongeling
Administrator
Forum|alt.badge.img+23

Hi Freddy,

From my experience when working on a partner project, we used to add a "table_id” expression column to the tables that had the table name as value. This value you could then map to a Task parameter and use that value to determine what code to run where. Would that suffice?


Freddy
Forum|alt.badge.img+16
  • Author
  • Thinkwise Local Partner Brasil
  • 529 replies
  • August 29, 2022
Mark Jongeling wrote:

Hi Freddy,

From my experience when working on a partner project, we used to add a "table_id” expression column to the tables that had the table name as value. This value you could then map to a Task parameter and use that value to determine what code to run where. Would that suffice?

 

As a solution, yes it could be a standard that the SF creates these expression variable with the table and variant so you know it when applying business logic. And if it's not something you want in de SF by default, maybe it would be good to reinstate the Thinkstore here but then for solution examples.. Which for some Thinkstore items could be a better solution..  Feels a bit overkill sometimes to download a full project for just a function for example 😉


Mark Jongeling
Administrator
Forum|alt.badge.img+23
Needs feedbackOpen

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings