Mark Chaney
Testing and requiresConfirmation
I have a RM with a table row action, that row action launches a modal with an approval action. I can get all the way up that point and it works fine in my test and will perform the approveAction, but if i add a confirmation to the approveAction, I cant seem to figure how to click the "Confirm" on the requiresConfirmation modal as it doesnt appear to have a mountAction for me to be able to call. This is wher i am so far:
21 replies
$getAction() and visibility
When using ->registerActions() on a Form or Infolist component, it seems that visible() and hidden() no longer apply when you use to place the action. That causes a log of headaches. No way for that to be respected?
6 replies
Still no way to hook into a modalCancelAction, right?
As in do something after a requiresConfirmation() modal is canceled (either by clicking the x or the close button), right? We already disabled clicking away, so thats not a concern. Basically if a user clicks the action and decides not to submit or hits the X in the corner of a modal, I need to do something. Last fall this wasnt possible from what I am reading.
3 replies
CreateAnother Retain Some Data
With the panel builder, CreateAction, how can i retain data when a user clicks the create another button? Ive seen quite a few different ways to go about it, but none of them seemed that clean or native. Right now I am not even doing a custom action() and hoping i dont have to redo that whole process.
7 replies
ViewRecord Listener Method Launch Action
I have 5 header actions that are listed in cachedActions and mountedActions is listed as empty. I can then do a $this->mountAction('action_name')? Ive even extracted the action to a public method with the name of whateverAction() that returns the Action with the same name and its never called as well. Im thinking its either because i am using a listener method to launch it or something to do with cached actions. I am obviously missing something simple as usual.
4 replies
Call to a member function isRelation() on null
I have the following createOptionAction where that I am getting that isRelation() on null error . ->record() isnt available on this form action though, so i cant use it, which appears to be the solution for the issue. The problem is that in this form, I am trying to use a select with a relationship(), which throws that error. Recommendations?
2 replies
Sorting tables by dynamic columns
I know we cant sort or search by attributes, but with certain fields that need to be calculated on the fly (lets say a match score that is relative to the ownerRecord() on an RM), how should we go about sorting such columns? Most of the time I simply dont sort an attribute column like so, but in this particular case, its integral to be able to do so.
2 replies
userMenuItems Action?
I want to add an Action to the user menu in the panel builder so that it launches a modal. Seems like MenuItem is just for urls(). Any suggestions? Also, while were on it, can we also adjust the positioning of the theme-switcher. Seem to be in the middle of the user menu items.
6 replies
Phone Attribute and sendPasswordReset notification voodoo
I have this on my user model, this is super weird. In all cases, the user is created just fine, but if i try modify the phone number, the password reset email fails to send. As mentioned, in all cases, the user is created fine.
15 replies
ImportColumn, relationship(), and lifecycle hooks
When using ->relationship() on an ImportColumn, at what point is relationship resolved? it it accessible in beforeSave()? Trying to add some additional validation and would love to avoid querying that relationship again if needed. Haven't had any luck yet figuring it out though.
2 replies