How to update a column in BI publisher based on certain condition
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
add a comment |
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
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
add a comment |
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
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
rtf bi-publisher
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
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
add a comment |
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
answered Nov 13 '18 at 22:17
Ranjith RRanjith R
1,3311810
1,3311810
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Nov 14 '18 at 13:44
Peter PaffPeter Paff
13410
13410
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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