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.

Allow us to create VA Inquiries of type "Form"

So we can write a query to show up in a tab anywhere we want!

Issue

If you select "Form" from the Query Type dropdown (and save), it gives an error about "New Form queries are not allowed".

Workaround

UPDATE [Viewpoint].[dbo].[vVPGridQueriesc] SET QueryType=2 WHERE QueryName='YourQueryName'

In fact I'm adding a button to the VA Inquiries board to run the above query for the current VA Inquiry. Tired of fighting it.

  • Nathan Sutherland
  • Dec 14 2018
Company Cutting Edge Plumbing
Job Title / Role Development
I need it... Yesterday...Come on already
  • Attach files
  • Nathan Sutherland commented
    December 14, 2018 19:43

    Instructions on Adding Button:

    Create procedure

    CREATE procedure [dbo].[uspVPGridQueryType] /** User Defined Validation Procedure **/
    (@QueryName varchar(50), @Type int, @ReturnMessage varchar(max) output)
    AS
    DECLARE @rcode int
    SELECT @rcode = 0
    UPDATE [Viewpoint].[dbo].[vVPGridQueriesc]
    SET QueryType=@Type, IsAssignableInWorkCenter='N'
    WHERE QueryName=@QueryName AND IsStandard='N'
    IF @@ROWCOUNT = 0
    SELECT @ReturnMessage = Concat(@QueryName,' not updated. Perhaps it does not exist, or is a standard VP query?'), @rcode = 1
    ELSE
    SET @ReturnMessage = Concat(@QueryName,' type updated.')
    return @rcode

    and set it's permissions so it can be used. (or create it using VP's UD User Validation, and the permissions will be set automatically)

     

    Create button

     

    • Use VA Custom Form Buttons to add a button to VAQueries.
    • Label it like Set Type to "Form"
    • Set Type to Stored Procedure
    • In Action put "uspVPGridQueryType"
    • Set Button Refresh to Refresh Record.

    Switch to Parameters tab

    • Set up the parameters like so, each row as below (ParameterID, Name, DefaultType, DefaultValue)
      • 1, @QueryName, 3-Form Input Value, 5
      • 2, @Type, 0-Fixed value, 2
      • 3, @ReturnMessage, 0-Fixed value, 0
    • Close VA Custom Form Button form.
    • Close VA Inquiries if open, and open it again.
    • Move/ resize the button to where you want it.

     

    USAGE

    IN VA Inquiries, move to your query and go to the Info tab. Now you can tap the custom button to set it to 'Form', and thus be used in a custom tab anywhere you like!

    Notes

    • Still only useful if the main form has a VA Inquery setup for it so you can link to it.

    Viewpoint, How about letting us set up parameters in the custom tabs based on a query area?

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.