How to update a column in BI publisher based on certain condition










0















I am new in BI publisher. I want to update rtf template Amount column based on certain conditions. Suppose in Rtf template we have Amount field, the sign of amount field will change based on value of another column like 'DR/CR' column. So, if we have 'C' in 'DR/CR' column, then amount will be multiplied by -1, else we keep the amount as it is. Any help will be greatly appreciated.



Thanks,
Debo










share|improve this question






















  • Stack overflow is for improving code. It is kind of bad form to supply no code with a question. Even if it doesn't work you'd be well served to include some code you have tried instead of asking others to write it for you.

    – Nick Ellis
    Nov 13 '18 at 16:13











  • Well said, mate !

    – Ranjith R
    Nov 13 '18 at 22:12















0















I am new in BI publisher. I want to update rtf template Amount column based on certain conditions. Suppose in Rtf template we have Amount field, the sign of amount field will change based on value of another column like 'DR/CR' column. So, if we have 'C' in 'DR/CR' column, then amount will be multiplied by -1, else we keep the amount as it is. Any help will be greatly appreciated.



Thanks,
Debo










share|improve this question






















  • Stack overflow is for improving code. It is kind of bad form to supply no code with a question. Even if it doesn't work you'd be well served to include some code you have tried instead of asking others to write it for you.

    – Nick Ellis
    Nov 13 '18 at 16:13











  • Well said, mate !

    – Ranjith R
    Nov 13 '18 at 22:12













0












0








0








I am new in BI publisher. I want to update rtf template Amount column based on certain conditions. Suppose in Rtf template we have Amount field, the sign of amount field will change based on value of another column like 'DR/CR' column. So, if we have 'C' in 'DR/CR' column, then amount will be multiplied by -1, else we keep the amount as it is. Any help will be greatly appreciated.



Thanks,
Debo










share|improve this question














I am new in BI publisher. I want to update rtf template Amount column based on certain conditions. Suppose in Rtf template we have Amount field, the sign of amount field will change based on value of another column like 'DR/CR' column. So, if we have 'C' in 'DR/CR' column, then amount will be multiplied by -1, else we keep the amount as it is. Any help will be greatly appreciated.



Thanks,
Debo







rtf bi-publisher






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 13 '18 at 16:10









DeboDebo

1




1












  • Stack overflow is for improving code. It is kind of bad form to supply no code with a question. Even if it doesn't work you'd be well served to include some code you have tried instead of asking others to write it for you.

    – Nick Ellis
    Nov 13 '18 at 16:13











  • Well said, mate !

    – Ranjith R
    Nov 13 '18 at 22:12

















  • Stack overflow is for improving code. It is kind of bad form to supply no code with a question. Even if it doesn't work you'd be well served to include some code you have tried instead of asking others to write it for you.

    – Nick Ellis
    Nov 13 '18 at 16:13











  • Well said, mate !

    – Ranjith R
    Nov 13 '18 at 22:12
















Stack overflow is for improving code. It is kind of bad form to supply no code with a question. Even if it doesn't work you'd be well served to include some code you have tried instead of asking others to write it for you.

– Nick Ellis
Nov 13 '18 at 16:13





Stack overflow is for improving code. It is kind of bad form to supply no code with a question. Even if it doesn't work you'd be well served to include some code you have tried instead of asking others to write it for you.

– Nick Ellis
Nov 13 '18 at 16:13













Well said, mate !

– Ranjith R
Nov 13 '18 at 22:12





Well said, mate !

– Ranjith R
Nov 13 '18 at 22:12












2 Answers
2






active

oldest

votes


















0














This looks like a very beginner-level question, and is answered in both Oracle's documentation, and elsewhere online. Since there is no code posted, you could look at the default sample RTF templates provided by Oracle during installation. If BI Publisher is installed on your system, go down to the sample folder. On my system, this is at



C:Program Files (x86)OracleBI PublisherBI Publisher DesktopTemplate Builder for WordsamplesRTF templates


The advanced folder has more complex examples.



C:Program Files (x86)OracleBI PublisherBI Publisher DesktopTemplate Builder for WordsamplesRTF templatesAdvanced





share|improve this answer






























    0














    If you just need the sign change to be visual:



    <?if@inlines:DR/CR='C'?>-<?end if?><?AMOUNT?>


    If you actually need the amount to be negated, because you intend to make calculations with the value, I think you'd have to change your query to conditionally negate the value. Another option would be to assign it to a variable and make your calculations on the variable.






    share|improve this answer






















      Your Answer






      StackExchange.ifUsing("editor", function ()
      StackExchange.using("externalEditor", function ()
      StackExchange.using("snippets", function ()
      StackExchange.snippets.init();
      );
      );
      , "code-snippets");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "1"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53285064%2fhow-to-update-a-column-in-bi-publisher-based-on-certain-condition%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      This looks like a very beginner-level question, and is answered in both Oracle's documentation, and elsewhere online. Since there is no code posted, you could look at the default sample RTF templates provided by Oracle during installation. If BI Publisher is installed on your system, go down to the sample folder. On my system, this is at



      C:Program Files (x86)OracleBI PublisherBI Publisher DesktopTemplate Builder for WordsamplesRTF templates


      The advanced folder has more complex examples.



      C:Program Files (x86)OracleBI PublisherBI Publisher DesktopTemplate Builder for WordsamplesRTF templatesAdvanced





      share|improve this answer



























        0














        This looks like a very beginner-level question, and is answered in both Oracle's documentation, and elsewhere online. Since there is no code posted, you could look at the default sample RTF templates provided by Oracle during installation. If BI Publisher is installed on your system, go down to the sample folder. On my system, this is at



        C:Program Files (x86)OracleBI PublisherBI Publisher DesktopTemplate Builder for WordsamplesRTF templates


        The advanced folder has more complex examples.



        C:Program Files (x86)OracleBI PublisherBI Publisher DesktopTemplate Builder for WordsamplesRTF templatesAdvanced





        share|improve this answer

























          0












          0








          0







          This looks like a very beginner-level question, and is answered in both Oracle's documentation, and elsewhere online. Since there is no code posted, you could look at the default sample RTF templates provided by Oracle during installation. If BI Publisher is installed on your system, go down to the sample folder. On my system, this is at



          C:Program Files (x86)OracleBI PublisherBI Publisher DesktopTemplate Builder for WordsamplesRTF templates


          The advanced folder has more complex examples.



          C:Program Files (x86)OracleBI PublisherBI Publisher DesktopTemplate Builder for WordsamplesRTF templatesAdvanced





          share|improve this answer













          This looks like a very beginner-level question, and is answered in both Oracle's documentation, and elsewhere online. Since there is no code posted, you could look at the default sample RTF templates provided by Oracle during installation. If BI Publisher is installed on your system, go down to the sample folder. On my system, this is at



          C:Program Files (x86)OracleBI PublisherBI Publisher DesktopTemplate Builder for WordsamplesRTF templates


          The advanced folder has more complex examples.



          C:Program Files (x86)OracleBI PublisherBI Publisher DesktopTemplate Builder for WordsamplesRTF templatesAdvanced






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 13 '18 at 22:17









          Ranjith RRanjith R

          1,3311810




          1,3311810























              0














              If you just need the sign change to be visual:



              <?if@inlines:DR/CR='C'?>-<?end if?><?AMOUNT?>


              If you actually need the amount to be negated, because you intend to make calculations with the value, I think you'd have to change your query to conditionally negate the value. Another option would be to assign it to a variable and make your calculations on the variable.






              share|improve this answer



























                0














                If you just need the sign change to be visual:



                <?if@inlines:DR/CR='C'?>-<?end if?><?AMOUNT?>


                If you actually need the amount to be negated, because you intend to make calculations with the value, I think you'd have to change your query to conditionally negate the value. Another option would be to assign it to a variable and make your calculations on the variable.






                share|improve this answer

























                  0












                  0








                  0







                  If you just need the sign change to be visual:



                  <?if@inlines:DR/CR='C'?>-<?end if?><?AMOUNT?>


                  If you actually need the amount to be negated, because you intend to make calculations with the value, I think you'd have to change your query to conditionally negate the value. Another option would be to assign it to a variable and make your calculations on the variable.






                  share|improve this answer













                  If you just need the sign change to be visual:



                  <?if@inlines:DR/CR='C'?>-<?end if?><?AMOUNT?>


                  If you actually need the amount to be negated, because you intend to make calculations with the value, I think you'd have to change your query to conditionally negate the value. Another option would be to assign it to a variable and make your calculations on the variable.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 14 '18 at 13:44









                  Peter PaffPeter Paff

                  13410




                  13410



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53285064%2fhow-to-update-a-column-in-bi-publisher-based-on-certain-condition%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      這個網誌中的熱門文章

                      How to read a connectionString WITH PROVIDER in .NET Core?

                      In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

                      Museum of Modern and Contemporary Art of Trento and Rovereto