Upload Wizard Add-in inquire first?

Sort:
You are not authorized to post a reply.
Author
Messages


Seth











Basic Member



Posts: 4




Basic Member



    Is there a way to generate an "inquire" action from the spreadsheet?

    Scenario:
    Trying to add lines to an agreement using PO25.6

    Results of "Add first, then change" are I | 12345 (item number)

    Manually entering information from form returns "Must inquire before using that function" in portal

    Used formdef to find "key" to this form and included it on spreadsheet

    Thanks for any help.


    John Henley











    Senior Member



    Posts: 3348




    Senior Member



      Seth, The addins automatically do an implicit Inquire when you do a Change action via the addins. Since you tried the 'Add then Change option', it looks like you need to just do the Change only.

      I haven't uploaded to that particular form, but you should be able to as long as you are populating all of the appropriate fields.

      One way to verify is to capture the AGS call when you are doing this in Portal, and then match up the _f* fields from the AGS call to your addins upload ...
      Thanks for using the LawsonGuru.com forums!
      John


      Seth











      Basic Member



      Posts: 4




      Basic Member



        Thanks for you help and for clarifying about the implicit Inquire.

        Unfortunately, I am still unable to Upload... the last few line of the AGS call give me this:
        <FldNbr>_f1</FldNbr>
        <MsgNbr>127</MsgNbr>
        <Message>Field is required</Message>

        From near the top:
        <_f0>PO25.6</_f0>
        <_f1 />
        -OR-
        <TC>PO25.6</TC>
        <FC />

        I would interpret that _f1/FC field to be "Function Code," but that doesn't make sense since each row can have it's own function (theoretically).

        The more important issue, is that my Add-in doesnt' seem to have a mapping to _f1, unless its "Left Column Check." My map listing goes directly from the hidden _f0 to _f2.

        The more "normal" way for me to access 25.6 is to go through 25.1 and click "lines." When I try this then go to the Transaction XML (through ctrl-alt-a) and try to Perform Query, Lawson returns a message about the query string being over 2000 characters. I can at that point see that the _f1 field is populated with "I."

        ***Edit
        I see this in formdev:
        Field("_f1","Fc",01,"fldnm=FC","row=00","col=09","edit=upper","req=true","value=I","select=true" );
        sV("+","PageDown");
        sV("-","PageUp");
        sV("C","Change");
        sV("I","Inquire");
        but I don't know how it may apply to this situation
        /Edit***
        Again, thanks for your help.


        John Henley











        Senior Member



        Posts: 3348




        Senior Member



          Don't confuse FC (form function code) with LINE-FC (line function code).
          The Addins query wizard option (Add, Add then Change, Delete) fills the FC.
          What you're probably missing is that you need to map to the LINE-FC (_f17 / LINE-FC1).
          Remember how it works with Portal and LID: You're doing an ADD on the LINE, but a CHANGE on the FORM.
          Thanks for using the LawsonGuru.com forums!
          John


          Seth











          Basic Member



          Posts: 4




          Basic Member



            Too right!

            I did confuse those.

            I think I'm all mapped correctly now, but I don't know how to interpret the response from the upload. Lawson returns the item number.

            When I check the form through portal, the add has not been completed, so something is not right. I want to see "Change Complete - Continue." Just to get it done, I may go manually at this point (ugh).

            You are the MASTER, John. Thanks for your help!


            Seth











            Basic Member



            Posts: 4




            Basic Member



              A-ha!

              When uploading to PO25.6 one needs to include _f21 PVN-VEN-ITEM even though it's not required when editing through the portal.

              I had preivously uploaded PO13 information, so didn't expect to need the Vendor Item on this form / upload.

              A note when adding No Charge, Cost Option 2 items to PO25.6:

              I got an error saying that I couldn't add a cost when using Cost Option 2, which was interesting since I didn't even map that column. I went back and included a cost column, albeit zero, and the upload worked.

              The records that returned the item number on this upload (2 of 120) turned out not to have a PO13 record built for the vendor associated with this Agreement.

              John, thanks again for your help on this.

              Seth
              You are not authorized to post a reply.