Skip to main content
Nintex Community Menu Bar
Question

Row action to log task under assigned account name

  • July 9, 2024
  • 12 replies
  • 0 views
  • Translate

Forum|alt.badge.img+3

I am having troubles creating a row action on an account table which will render a popup with the WhoId already populated to that row’s account… This seems like it would be simple, but I try to set the context and then the field editor does not render.

Did this topic help you find an answer to your question?
This topic has been closed for comments

12 replies

Forum|alt.badge.img+20

Have you set the condition of the model of the table in popup to be whoid to be equal to the account id?

Translate

Forum|alt.badge.img+20

Sorry, the condition of the model of the field editor in popup to be whoid to be equal to the account id?

Translate

Forum|alt.badge.img+3

I set the what.id of record(s) = id of row in context

Translate

Forum|alt.badge.img+20

Which object are you using for the model in the field editor of the popup?

Translate

Forum|alt.badge.img+3

the model is a task with no conditions

Translate

Forum|alt.badge.img+20

Oh wait. You’re creating a new task in the Task Object to be related to the Account. Make sure your Task Model is setup this way.

Translate

Forum|alt.badge.img+20

Also to note. The Account Name doesn’t seem to show until the task has been saved. I think that’s because the WhatId is used behind the scenes to update this field after saving the record. Actually, it must be done this since the task table is dynamically attached to any object in the system. There would be no way to display the Account Name until after saving the record.

Translate

Forum|alt.badge.img+3

Bummer, so there is no way to have the Whatid field render based on the account row in context?

Translate

Forum|alt.badge.img+20

Close. I included the whatid in the popup and got this.

Translate

Forum|alt.badge.img+3

That looks right! How did you do that? 

Translate

Forum|alt.badge.img+20



























{{Model.labelPlural}}


Home
















































Task










{{Subject}}


{{Model.label}}








NewTask












































Translate

Forum|alt.badge.img+3

I got it! Just in case anyone ever searches this, I used this snippet to create a new task who’s account is assigned as the row in context. I needed this row action to render a popup so I could log tasks to that account without having to actually go in the account.

var params = arguments[0], accountRow = params.item ? params.item.row : params.row, accountModel = params.model, $ = skuid.$; // Create our new Task var NewTaskModel = skuid.model.getModel('LogAction'); var NewTask = NewTaskModel.createRow(); NewTaskModel.updateRow(NewTask,{ 'WhatId': accountRow.Id }); // Link our Account to this Task accountModel.updateRow(accountRow,{ 'WhatId':NewTask.Id, 'Task':NewTask }); // Return our new Task row as our context return { row: NewTask };<br>

 


Translate

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