Submit Your Suggestions for Vista

Ideaspace topics with the most votes have been moved into the Suggestion Box. If there is a topic missing, please re-enter. Our product team reviews the Suggestion Box items regularly and will provide updates as to status and incorporation into upcoming releases.

Custom Form Buttons: Add "Type" URL

Being able to create a button to launch a URL with arguments from parameters would be awesome!

Addition to VA Custom Form Buttons [Info]

  • Add "URL-Get" to Type dropdown

Setup in [Info] tab

  • Action field would contain BASE URL (www.google.com)

Setup in [Parameters] tab

  • For each row, the Name would be the name of the parameter (q)

  • ...The 'Default Value' would be the value passed to the parameter.

How it would work

  • User clicks custom button in a form

  • Viewpoint CREATES URL by

    • Starting with the BASE URL in the action field

    • Optionally appending a / if not present at end of action field.

    • appending a ?

    • appending the Name data

    • appending a =

    • appending the DefaultValue data

    • If more rows exist, then append & and repeat last three steps for each row

    • (Example: www.google.com/?q=something)

  • Viewpoint CREATES windows command by

    • Starting with the word start

    • appending a space

    • appending the URL created above

  • Viewpoint the RUNS the command. This will open a browser window at the URL.

  • Bonus points if Viewpoint can ESCAPE the 'DefaultValue' into a URL compatible string (I'm pretty sure .Net has a function for that).

This feels weird using Autoit to do something so basic in 2020.

Viewpoint, any chance of expanding your custom form buttons to do the above?

  • Nathan Sutherland
  • Sep 14 2020
Company Cutting Edge Plumbing
Job Title / Role Developer
I need it... Yesterday...Come on already
  • Attach files
  • Glenn Gnabasik commented
    June 30, 2022 18:47

    Passing base url via the Parameters doesn't work based on limit of 30 characters for a fixed value.

  • Nathan Sutherland commented
    September 14, 2020 19:24

    Alright, for anyone who wants to make a small AutoIt v3 script, use this code, compile, then create a custom button in Viewpoint that runs an application, and select the compiled EXE.

    Next, set the PARAMETERS in viewpoint so that the FIRST parameter is the BASE URL (no parameter name). Then the following parameters should have the NAME and VALUE bits. See attachment for example.

    Here's my AutoIt code:

    #include <Array.au3>

    ; Arguments should be like

    ; [1] BASE_URL

    ; [2] firstParameter=firstValue

    ; [3] nextParam=nextVal

    ; OUTPUT will be BASEURL?firstParameter=firstValue&nextParam=nextVal

    ; No arguments?

    If $CmdLine[0] = 0 Then

    MsgBox(64, "Result", "No parameter was entered!")

    Exit

    EndIf

    Local $sFullURL = $CmdLine[1]

    ; What do they look like?

    ; _ArrayDisplay($CmdLine)

    ; Create full URL

    For $i = 2 To $CmdLine[0] Step 1

    ; append a ? or & symbol

    If $i = 2 Then

    $sFullURL = $sFullURL & "?"

    Else

    $sFullURL = $sFullURL & "&"

    EndIf

    ; Append the name and value of the argument

    $sFullURL = $sFullURL & $CmdLine[$i]

    Next

    ; Display result if you'd like to debug.

    ; MsgBox(64, "Result", $sFullURL)

    ; Open Browser

    ShellExecute($sFullURL)

    See attachment for sample PARAMETERS tab setup.

Dear Viewpoint Suggestion Box contributor;

We at Viewpoint sincerely thank you for your contribution to Suggestion Box on how we can improve Viewpoint products. While we can’t do everything at once, we rely upon your feedback to help guide the prioritization of our product improvements, and Suggestion Box is a critical tool for us to understand and prioritize our customers’ needs. Viewpoint reviews Suggestion Box regularly for all of our products and updates statuses, adds comments, and performs various house-keeping (including deleting) as needed to ensure that Suggestion Box is maintained as a productive environment for product enhancements requests.

1515 SE Water Avenue, Suite 300, Portland, OR 97214 |  800.333.3197  | Contact Us | Terms of Use | Privacy | Support Policies

© 2023 Trimble Inc. All Rights Reserved. Viewpoint®, Vista™, Spectrum®, ProContractor™, Jobpac Connect™, Viewpoint Team™, Viewpoint Analytics™, Viewpoint Field View™, Viewpoint Estimating™, Viewpoint For Projects™, Viewpoint HR Management™, Viewpoint Field Management™, Viewpoint Financial Controls™, Vista Field Service™, Spectrum Service Tech™, ViewpointOne™, ProjectSight® and Trimble Construction One™ are trademarks or registered trademarks of Trimble Inc. or its affiliates in the United States and other countries. Other names and brands may be claimed as the property of others.