Loading...

Can Source be included in a Custom Action Toolbar Button?

Can Source be included in a Custom Action Toolbar Button?

Home Forums QuickApps Forum Can Source be included in a Custom Action Toolbar Button?

  • This topic is empty.
Viewing 5 reply threads
  • Author
    Posts
    • #6974
      Anonymous
      Anonymous
      Participant

      Hi ,

      n

      The ‘SourceURL’ only can work if the URL carry with a ‘Source’ parameter. if I understand your case correctly, you can try to replace the OOB listform with qListFrom. Because in the edit page URL, there contains the ‘Source’ parameter. you can try to right click the item in qListView, click ‘Edit Properties’, the edit page of this list will be opened with a dialog. At this time, right click the dialog, click the ‘properties’, you can see the ‘Actions(URL)’, this is the edit page URL of this list. copy it, remove the ‘Dlg’ parameter, then you can replace the OOB listform to qListForm(Close or hidden it). After that, you edit the item every time, the URL will carry the ‘Source’ parameter, so qListForm can consume this ‘SourceURL’ in GoToURL custom action.

      n

    • #7400
      Anonymous
      Anonymous
      Participant

      Hi ,

      n

      The complication here is that when I jump from the qListView (on ListA), the qListForm I want to go to is on ListB.  So the right-click/Edit Properties on qListView/ListA will not work.

      n

      I want to continue (Continue Custom Action) from qListView (ListA) to qListForm (List B).  That works fine except for the fact that I cannot find a way to tell the qListForm the Source.  I am trying to add a parameter to the Continue Custom Action that sends the Source.

      n

      Does that make sense?

      n

      Thanks for you help.

      n

    • #7401
      Anonymous
      Anonymous
      Participant

      Hi ,

      n

      Yes, you can specify the ‘Source’ parameter in the GoToURL action in qListView, but this parameter should be hardcoded, something like the qlistform.aspx. I mean if you click the ‘GoToSource’ action in qListForm, that cannot carry any parameter when jump to qListView. if that match your business, that would be great. On the other hand, I mentioned that you can just create a GoToURL action in qListFrom in the other post, doesn’t work for you? that can carry the parameter in HTTP request.

      n

      According to your description, I would like to mention that you can hide the ‘Cancel’ button in Toolbar setting in qListForm, to avoid user click the ‘Cancel’ button which will bring user to a ‘incorrect’ URL.

      n

    • #7476
      Anonymous
      Anonymous
      Participant

      ,

      n

      Yes, hiding the system-generated Cancel button and creating my own Cancel button (which includes the http parameter) on the qListForm does work.

      n

      But now I'm trying to understand if it's possible to include a Source (which has an http parameter) in a Custom Action.  As you said, I can hardcode the Source into the URL of the Custom Action.  But what if the Source contains an http parameter?  If I include the http parameter in the Source it doesn't work.  If I include it as a parameter it belongs to the URL, not the Source.  If I include 2 http parameters it appears that both belong to the URL. 

      n

      Here is the scenario:

      n

      qListView (on TableA) DisplayA.aspx?InvID=12

      n

      Continue Custom Action links to qListForm (on ListB) UpdateB.aspx?InvID=12

      n

      Can I provide the Source (DisplayA.aspx?InvID=12) to UpdateB.aspx in the Custom Action?

      n

      Thanks.

      n

    • #4647
      Anonymous
      Anonymous
      Participant

      Hello again,

      n

      (Yes,  I’m full of questions today!)

      n

      I am using SharePoint 2010, QuickApps version 6.3.

      n

      I have a qListView for which I’ve defined a Custom Action Toolbar Button named Continue.  Clicking this button will take the user to a qListForm.

      n

      One action is defined in the Custom Action, GoToURL.  One parameter has been added so far, which appends the Invoice ID to the URL, thus telling the qListForm which row to update.  This is working as expected.

      n

      I am trying to figure out how to append Source to the URL as well.  Once the user gets to the qListForm, he/she should be able to cancel out of it and return to the qListView.

      n

      I have tried adding another parameter to the action but haven’t been able to figure out how to make it work for Source. 

      n

      How can I accomplish this?

      n

      (I tried setting the Cancel button on the qListForm to GoToGoBackUrl instead of GoToSource, but then ran into issues using a http parameter in the Go Back Url.  That was my previously posted question.)

      n

      Thank you for any help you may be able to provide.

      n

      n

       

    • #7403
      Anonymous
      Anonymous
      Participant

      Hi ,

      n

      I am sorry, cannot support it.

      n

      You can try to use ‘Dialog’ way setting in ‘GoToURL’. As you said, the page URL of qListView contains a parameter, and you configure a custom action in qListView which navigate to qListForm with a http parameter. I think you can try to change the ‘Open URL’ setting to ‘Dialog’ in qListView(default is ‘CurrentWindow’). Then you click the ‘Continue’ button, qListForm will be shown in a dialog. In qListForm, change the custom action type to ‘CloseDialog’. After that, you click the ‘CloseDialog’ custom action in qListForm, the dialog will be closed, and the qListView page still keep the URL parameter.

      n

Viewing 5 reply threads

You must be logged in to reply to this topic.