2 Replies Latest reply: Apr 22, 2013 7:41 AM by Danin RSS

    How to Invoke a Business Obkect using BPA Script

    878316
      Hi,

      I have created a BPA Script to Invoke a Business object ( FACT BO) for Action = Read.

      I want to display the schema elements of the BO as the output when we execute the BPA Script.

      How to achieve this? Does this depend upon the primary key of the BO i.e the FACT_ID, should we mention it somewhere?

      Please help me.
        • 1. Re: How to Invoke a Business Obkect using BPA Script
          934494
          Yes, you need to provide the fact Id inroder to read the fact BO instance in read mode. Additionally, if you need to display the schema for debugging purpose you can make use of % and + operators in script. Refer script tips (View a list of edit data step type commands) for details.
          sample code to read the fact BO instance

          declareBO "factBOName_Xpath" as 'fact_schema';
          move ".../factId" to "fact_schema/factId";
          invokeBO "factBO_Xpath" using "fact_schema" for read;
          • 2. Re: How to Invoke a Business Obkect using BPA Script
            Danin
            After you have included the edit data step to your BPA as Dan has correctly mentioned, you can include another 'Display Text' type of step where you can write syntax as

            %+MyBoName+%

            This will make the BO schema visible with all its data in BPA dialogue box.