Forum Discussion
MarkShnier__You
Qrew Legend
4 years agoHow to they "choose" the record. Do they enter their name or userid into a field?
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------
JuanCardona_Mor
4 years agoQrew Member
Using a button with the following code
var text addurl = URLRoot() & "db/" & Dbid() & "?a=API_EditRecord" & "&rid=" & [Record ID#] & "&AppToken=[APPtoken]" & ToText(User());
"<a class=\"Vibrant Success\" style=\"width:310px; text-align: center;\" href='" & $addurl & "&rdr=" & URLEncode( URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl()) & "')>Assign to Me</a>"
------------------------------
Juan Cardona Morales
------------------------------
var text addurl = URLRoot() & "db/" & Dbid() & "?a=API_EditRecord" & "&rid=" & [Record ID#] & "&AppToken=[APPtoken]" & ToText(User());
"<a class=\"Vibrant Success\" style=\"width:310px; text-align: center;\" href='" & $addurl & "&rdr=" & URLEncode( URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl()) & "')>Assign to Me</a>"
------------------------------
Juan Cardona Morales
------------------------------
- MarkShnier__You4 years ago
Qrew Legend
I will have to think about this one. The only hope would be some trick with Custom Data Rules.
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------- JuanCardona_Mor4 years agoQrew MemberThank for looking into this!
------------------------------
Juan Cardona Morales
------------------------------- MarkShnier__You4 years ago
Qrew Legend
OK here's an idea. I guess it's up to you to decide how big a problem it is if it's worth going through these hoops but I believe it will work. But you may not feel it's worth the effort.You can create a child table called [Sales Order Assigned To] it will have a user field to represent who the Sales Order is Assigned to.
You would initially populate this table by a one time saved table to table import to copy all of the sales orders which have an [assigned to] into that child table.
You will then float up the assign to up to the parent sales order. To do that you will use a combined text summary feel bad because those fields of the operate on text fields you will create a text version of the assign to field on that trail table and then roll that up using a combined text summary filled up to the sales order and then use a form of the field to convert.
OK now here's the magic. You create a summary field for the number of assigned to use and you look that up down to the child table. You then make a custom date a rule that says when the number of assign to's >=1, then put up an error message.
The effect of this that is that the second user will click to create a child assigned to and it will fail.
And fly with a solution is that it also means that nobody would be able to edit or delete the assigned to. So we can go one step further and while I haven't tested this you could use the new UserRoles function to limit the custom data rule so that it only applies to users in the front line rules but not to the managers.
If you wanted some help implementing this you can contact me off line for some consulting time or else we could work through this slowly on this forum together.
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------