Skip to main content

UF error parsing single quotation marks

Comments

2 comments

  • Paul Mills

    Hi Geoff - are you trying to pull the CardCode dynamically from somewhere? or hard coding in the actual value V10511?

  • Geoff Booth

    I hard coded the value for testing.

    I'm trying to paste the value from the Business Partner Master record as per below (@STORE3)

    I know Rasmus doesn't like SendKeys but at least it's working for now

    ClearAllStoreValues();
    @STORE1 = $[$5.0.0]; -- Store the Vendor CardCode
    @STORE2 = $[$BOYX_6.0.NUMBER]; -- Store the New vendor lead time
    @STORE3 = 'WHERE OITM.CardCode = ';  -- Build the where clause
    --@STORE3 = 'WHERE OITM.CardCode = ''' + $[OCRD.CardCode] + '''; -- Build the where clause
    StatusBar(@STORE3|S);
    Activate(BOY_81_ITMMDM);
    Activate();
    Set($[$BOY_6.0.0]|@STORE3); -- Set the "Where"  clause
    Click($[$BOY_18_6.0.0]); -- Activate Planning Tab 
    Set($[$BOY_62.0.NUMBER]|@STORE2); -- Set new lead time
    Click($[$BOY_93.0.0]); -- Set the checkbox to 'Y'
    Click($[$BOY_6.0.0]);
    SendKeys({END});
    SendKeys(    ); -- Can't send a space either - this fails
    SendKeys(');
    SendKeys(@STORE1);
    SendKeys(');
    Click(BOY_5); -- Find 
    AutoPressNextPopup(BOY_14); -- Auto-Click Yes on Popup after the Execute
    Click(BOY_14); -- Execute

     

Please sign in to leave a comment.