4 Replies Latest reply on Nov 18, 2014 2:09 PM by Kirk_1

    IWP

    Kirk_1

      Title

      IWP

      Post

      I'm using pro 12.

      One of my IWP scripts has developed a bad habit of showing the layouts its going to.

      I can run the script on my client and it works the way its supposed to. It has to go to other layouts for information. On the IWP log on when i'm on the web browser and i run the same script from there, it goes to and shows the 1st layout, then stops. 

      I have as a beginning script step, freeze window.

      It did not do it before, I've looked over my new script steps, all of them are after going to this 1st layout. So i can't see how they would affect it.

      Any ideas?

        • 1. Re: IWP
          philmodjunk

          The Freeze window script step is not compatible with IWP. When an incompatible script step is executed in IWP, it is my recollection, that this immediately halts the script.

          • 2. Re: IWP
            Kirk_1

            I checked for that...

            It goes to this layout performs the find and stops there.

            • 3. Re: IWP
              philmodjunk

              And what is the first step of your script? With the window scrolled like this, your screen shot does not show the initial script step and you earlier stated:

              I have as a beginning script step, freeze window.

              • 4. Re: IWP
                Kirk_1

                I finally got FM to create the report... it crashed each time i tried to do it.

                This is the script

                       
                • If [ not PatternCount ( Get ( ApplicationVersion ) ; "Server" ) ]
                •      
                • If [ Get ( AccountPrivilegeSetName ) ≠ "[Full Access]" ]
                •      
                • Allow User Abort [ Off ]
                •      
                • End If
                •      
                • If [ PatternCount ( ( Get ( ApplicationVersion ) ) ; "web" ) ]
                •      
                • Show/Hide Toolbars [ Lock; Hide ]
                •      
                • Else
                •      
                • Freeze Window
                •      
                • End If
                •      
                • #
                •      
                • End If
                •      
                • #
                •      
                • Set Error Capture [ On ]
                •      
                • If [ not IsEmpty ( Rates Display::RD_PKID ) ]
                •      
                • #Truck Load email
                •      
                • If [ Quote::QTLTL_TK = "TK" ]
                •      
                • Send Mail [ Send via E-mail Client; To: "cservice@flgsi.com"; Subject: "Rate and Availability Request"; Message: Quote::QTInfoField_iwp ]
                •      
                • Exit Script [ ]
                •      
                • End If
                •      
                • #Rates already exist
                •      
                • If [ 1 ]
                •      
                • Set Variable [ $portalCount; Value:Count ( Rates Display::RD_PKID ) ]
                •      
                • Go to Related Record [ From table: “Rates Display”; Using layout: “web_rates_display” (Rates Display) ] [ Show only related records ]
                •      
                • If [ Get ( FoundCount ) ≠ $portalCount or Get ( LastError ) ]
                •      
                • Exit Script [ ]
                •      
                • End If
                •      
                • Delete All Records [ No dialog ]
                •      
                • Go to Layout [ original layout ]
                •      
                • Else
                •      
                • End If
                •      
                • End If
                •      
                • Go to Layout [ “FrontierLogistics” (FrontierLogistics) ]
                •      
                • Set Variable [ $fsc; Value:FrontierLogistics::FL_FSC ]
                •      
                • Go to Layout [ “IWP_Quote” (Quote) ]
                •      
                • Set Variable [ $class1; Value:Quote Description::DTClass ]
                •      
                • Set Variable [ $class2; Value:Quote Description 2::DTClass ]
                •      
                • Set Variable [ $class3; Value:Quote Description 3::DTClass ]
                •      
                • Set Variable [ $weight1; Value:Quote::QTWeight1 ]
                •      
                • Set Variable [ $weight2; Value:Quote::QTWeight2 ]
                •      
                • Set Variable [ $weight3; Value:Quote::QTWeight3 ]
                •      
                • Set Variable [ $ozip; Value:Quote::QTOriginZip ]
                •      
                • Set Variable [ $shipstate_intra; Value:Quote::QTShipperState ]
                •      
                • Set Variable [ $shipstate; Value:Case ( PatternCount ( "AZ CA CO ID MT NV NM OR UT WA WY";Quote::QTShipperState); "~W"; PatternCount ( "IL IN IA KY MI OH WV WI AR KS LA MO OK TX MN NE ND SD " ; Quote::QTShipperState) ; "~MW"; PatternCount ( "CT DE DC MA ME MD MS NH NJ NY PA RI VT AL FL GA MS NC SC TN VA" ;Quote::QTShipperState ) ; "~E" ; ) ]
                •      
                • Set Variable [ $constate_intra; Value:Quote::QTConsigneeState ]
                •      
                • Set Variable [ $constate; Value:Case ( PatternCount ( "AZ CA CO ID MT NV NM OR UT WA WY"; Quote::QTConsigneeState); "~W"; PatternCount ( "IL IN IA KY MI OH WV WI AR KS LA MO OK TX MN NE ND SD " ;Quote::QTConsigneeState) ; "~MW"; PatternCount ( "CT DE DC ME MA MD MS NH NJ NY PA RI VT AL FL GA MS NC SC TN VA" ; Quote::QTConsigneeState ) ; "~E" ; ) ]
                •      
                • Set Variable [ $dzip; Value:Quote::QTDestinationZip ]
                •      
                • Set Variable [ $custid; Value:Quote::QT_FKCustomer ]
                •      
                • Go to Layout [ “Discounts FAK and Assessorial ” (Customer) ]
                •      
                • Enter Find Mode [ ]
                •      
                • Set Field [ Customer::CS__PKCustomerID; $custid ]
                •      
                • Perform Find [ ]
                •      
                • If [ Get ( FoundCount ) and not Get ( LastError ) ]
                •      
                • Go to Portal Row [ Select; First ]
                •      
                • Loop
                •      
                • Exit Loop If [ IsEmpty ( Discounts::D_FKVendor ) ]
                •      
                • Set Variable [ $portalRow; Value:Get ( ActivePortalRowNumber ) ]
                •      
                • Set Variable [ $carrier; Value:Vendor::VNName ]
                •      
                • Set Variable [ $LimitedAccess; Value:Discounts::DCLimited Access ]