How to set a value in a field with condition in a report?
HelloIn my report, I want to change a value of a field when it checks certain conditions.
How can I realize this process?
Help.
Regardly.
Hello
You can use the internal commands SRW. SET_FIELD_NUM or SRW. SET_FIELD_DATE or SRW. SET_FIELD_CHAR in the trigger of Format:
Examples can be found here:
SRW. SET_FIELD_NUM:
http://www.Oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/PLSQL/builtins/SRW/srw_set_field_num.htm
SRW. SET_FIELD_DATE:
http://www.Oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/PLSQL/builtins/SRW/srw_set_field_date.htm
SRW. SET_FIELD_CHAR:
http://www.Oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/PLSQL/builtins/SRW/srw_set_field_char.htm
Concerning
Tags: Oracle Development
Similar Questions
-
How to set the value of a field from the LOV of another field.
I'm trying to figure out how to set the value of a field (P_PROGRAM) to the value of another field of based lov (P_STATE).
The P_PROGRAM field is a hidden field. The P_STATE field is a required field and is based on a list of values for the State Codes.
When a user selects the State to P_STATE, the field of the P_PROGRAM should be set to this value, as well.
I tried different ways to get there via a function call on the post for the calculation of the field P_STATE, defining the source P_PROGRAM to the value of the page item P_STATE put varialbles, creating a process before SENDING, and they all still come back as having a NULL value for P_PROGRAM, therefore impossible to create the file in the db as the PROGRAM is a mandatory field in the table.
Can you please help? Thank you, LauraLaura,
It is always helpful if you provide information about the Apex version you are using. The Apex 4 you can use Dynamic Actions to achieve this. In earlier versions is possible using processes to submit or javacsripts, as well.
Heres how you do in 3.x with treatment to submit, to make it work in 4.0 as well.
1 do the P_STATE ' select list submits the Page.
2. Add a calculation on the point P_PROGRAM, or write to him assign a value based on a process. The treatment should be OnLoad after the header
3. If the page does not have an unconditional branch that loops on itself, add a. NOTE: The direction must be the last branch (larger sequence number) and should have checked "Save Session State".This is what will happen
a. when the State is selected Page will be submitted
(b) it will take the unconditional branch to himself and save the value of P_STATE
c. the calculation process / fills the value of the P_PROGRAM element when the page reloadsKind regards
-
How to set the value of a * APPLICATION * with apex.server.process?
If I have a page named point P1_MY_PAGE_ITEM, I could put its value in the session by doing this:
$s('P1_MY_PAGE_ITEM', 'I Like Pie!'); apex.server.process( 'dummy' , { pageItems: "#P1_MY_PAGE_ITEM" } , { dataType: "text", async: false, complete: function( ajaxResponse ) { var ignoredReturn = ajaxResponse.responseText; } });
Which works very well. If you check the session, the P1_MY_PAGE_ITEM will now have the value: I like pie!
However, if I have an Application element (not a page element!) named MY_APP_ITEM, how could I do the same thing? How can I use apex.server.process to set the value of MY_APP_ITEM in the session? I wouldn't be able to use "pageItems" because MY_APP_ITEM is not a page element, it is a part of the application.
What is the correct syntax to do this?
Thank you
-Joe
Hey Joe,
Returning to that thread you made a couple of months ago, the answer is here:
Post adjustment Application items in the apex.server.process for a * process application *.
Defining a point of application is as easy as providing the name of the application element to p_arg_names Bay and set a corresponding value in the p_arg_values table.
For example, in an application with article SOME_ITEM of the application, I can put the value as follows:
(function(){ var arrNames = [], arrValues = []; arrNames.push("SOME_ITEM"); arrValues.push('some value'); apex.server.process( 'dummy' , { p_arg_names: arrNames, p_arg_values: arrValues } , { dataType: "text" }); })()
Any required application process. Should the item be free that you set it from the browser.
-
How to set the value of the field a comboBox selection
Hello
It is probably a simple question apparent, but what should I do to achieve this:
var a = this.getField("comboBox").value;
If (a == 'Test') {}
setField ("textField") "1".
}What is the syntax for the realization of this (pseudo) code?
Thanks for your time.
var a = this.getField("comboBox").value;
If (a == 'Test') {}
this.getField("textField").value = "1";
}
-
How to set the values of dependent choice list fields
Jin
I create a drop-down list in my page.
This list of choices has values. (coming from the vo)
What value I chose from the drop-down list that display certain fields value.
for this I take the value of the drop-down list and set this values to these fields.
its working fine.
but my doubt is, at the time of the loading page, these fields (list selection dependent fiedls) defaulitly contains a value
(this is one of the value of the vo)
But I don't want to see any value at the time of the loading of the page
Here, contains values null or empty fields at the time of the loading of the page.Hello
Instead of linking these text fields display attributes... create transient attributes in VO and link these transitional
the attributes of these text fields.Now you load the page set the transient attribute ' ' using row.setAttribute("Attribute","");
In addition, as the Pickist value is changed, and then also, you can set the value as you wish...
This will allow to permanently solve the issue.
Thank you
Gerard -
How to read the values of the field of LOV disabled?
Hi all
I have a requirement, based on values that we entered one of the LOV fields, then we are arising from the new values based on the value that we entered this field of LOV. And then I must by default new LOV values derived in a two other fields of LOV and then disable them. Once the fields are disabled, then I'm not able to read the values using the pagecontext.getparameter... I get nothing when I tried to read using the pagecontext.getparameter.
Pointers on how to read the values of disabled field/LOV?
Thank you
Clarriiza1. you already have values, and that's what you set in the LOV before turning off, right? So why do you need to recover again from the LOV.
2. are you disabling or making it readonly? I think that if it is disabled, you might still be able to get the value using pageContext.getParameter.
3 have you tried to get the handle to the LOV bean and get the value using lovBean.getValue (pageContext)?
4. another Option is to combine the value of a FormValue Bean also (as well as the LOV bean) and retrieve it from FormValue.
5 BTW, why are, why you're seen LOV if you disable it? Can't you just a TextBox?
See you soon
AJ
-
How to set the alignment of the field in a table in jdev 11.1.2.3?
Hello
How to set the alignment of the field in a table in jdev 11.1.2.3?
for example: to display a body of numbers in a table as right aligned.
I tried to put field (amount) VO UI Hint Format Type: Number; Format: 0000.00
and jspx, flowing, but it doesnot work.
Thank you.
Bao
< af:column sortProperty = "#{bindings." VO1.hints.amount.name}.
sortable = "true".
headerText = "#{bindings." VO1.hints.amount.label}.
ID = "c44" width = "60".
Align = "center" >
< af:inputText value = "#{row.bindings.Amount.inputValue} '"
label = "#{bindings." VO1.hints.amount.label}.
required = "#{bindings." VO1.hints.amount.mandatory}.
columns = "#{bindings." VO1.hints.amount.DisplayWidth}.
maximumLength = "#{bindings." VO1.hints.amount.precision}.
shortDesc = "#{bindings." VO1.hints.amount.ToolTip}.
ID = "it58.
secret = "false".
inlineStyle = "" text-decoration: overline; ">"
< f: validator binding="#{row.bindings.Amount.validator}"/ >
< / af:inputText >
< / af:column >Hello
To set a field right alignment in a table:
It doesnot work when InlineStyle-> text-align: right;
It works when ContentStyle-> text-align: right; -
Set the value to the field on another Page
Hello
I'm still a little new to this, through forums, that I managed to learn a lot of things. But I met another difficulty. I have
I created a form in LiveCycle with two pages. On page 1, the fees are calculated by multiplying Field1 * Field2 and by adding the value of another. I managed to accomplish this with the following code:
This.rawValue = Field3.rawValue + (Field1.rawValue * Field2.rawValue)
As I said, that seems to work.
To Page 2, I have a drop down list with five options. In the object > value tab I checked specify point values but has not changed a thing. If the value of the option range from 1 to 5.
When option 5 is selected I want to set a value for a field that is Page 1. I tried with the following script:
If (this.rawValue = 5) {}
Page1.positionedSubform.field3.rawValue = 149;
} else {}
Page1.positionedSubform. Field3.rawValue = 0;
}
I'm now writer at all, but it seems to work somehow. Not that I want to :-).
When I saw the PDF that it auto sets the value of Field3 and the drop to 149 field.
I want to first Field3 on page 1 to 0 by default (entered in the object > field value tab 3) and set it to 149 if you have selected the option with the value of 5 in the drop down list on page 2.
Any ideas?
(Sorry for the bad explanation, don't know how to explain it better is if)
Hello
Did you use the calculate event in the drop-down list? If so, move the script to the output of the dropdown event.
Niall
-
How to set the value of something in a component of the main application?
Hello
Maybe I've worked on it too long, but I can't understand how to set the value of the text property of a text entry field in my main application component in a block of mx:Script. I have a component called Login in the components folder, and I need to set the text value of empNum. In my statement of mxml up there, I said these components such as xmlns = "components.*" so, logically, the property, I'm putting a c.Login.empNum.text. I can't understand the correct syntax to make this work, and I've tried everything I can think of. Does anyone have any suggestions? I think this should be easy, and there is just something missing me.
Thank you!
HolliHave you tried to give him an id?
If later you can make the loginScreen. empNum.text = "my text".
Laurent,
-
How get/set the value of the DataObject object in the task of the API?
How get/set the value of the DataObject object in the task of the API?
Are there examples of code availible?
Hello
You are here: http://docs.oracle.com/cd/E23943_01/dev.1111/e10224/bp_worklistcust.htm
Antonis
-
How to set the value of QUERY using PL/SQL process?
Hello
I use APEX 4.2...
How to set the value of the REQUEST using process of PL/SQL which lies before the header - where the value of the REQUEST should appear on the URL?
Kind regards
FatehYou cannot set a value of demand in a PL/SQL block. You can run a PL/SQL block on a request which is the id of a button for example.
Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Apress.com/9781430235125
http://Apex.Oracle.com/pls/Apex/f?p=31517:1
http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
------------------------------------------------------------------- -
How to get the value of a field of flex?
Hello
I have a page of the OFA, where flexfield is on the 2nd tab of the page.
When the page loads, 1 tab loaded. At this point, I want to enter the value in the flex of the 2nd tab type?
I added this element Flex type using customization on the 2nd tab...
How to get the value in the field?Values Flexfield
How to get the value Flexfield OAF page Runtime
Re: Get flexfield value during execution
Requirement DescritiveFlexFieldThank you
-Anil -
How I set the value of a dynamic text field row
I have a repeated line form that contains a button and several text fields. There is a text field (input field) above with some information I want to place in the table and several buttons that I want to read the value of and defined on the table. Excuse me there are several questions I have and I use pseudocode to describe.
Top shape resembles
InputField
| ButtonX1 | ButtonY1 | DescriptionX1 (read the text only field)
...
| ButtonXn | ButtonY1 | DescriptionXn
OutputRow looks like
| ButtonOutput | OutputField1 | OutputField2 | OutputField3 |
So, I want to do
ButtonX1.click
{
OutputTable.OutputRow.addInstance (true) //this works - everything I have questions on
OutputTable.OutputRow.OutputField1.rawValue = DescriptionX1.rawValue
/*
Question 1
How should I address the location of each table to set a value
Question 2
How can I get the value of the description field in the same row as button and table
I would like to say something to the effect of the OutputTable.OutputRow [?]. OutputField1.rawValue = this.parent.DescriptionX
*/
OutputTable.OutputRow.OutputField2 = InputField.rawValue
/*
Same question as above - how can I specify a dynamic line - it's the syntax appropriate for obtaining the value of the input field?
*/
OutputTable.OutputRow.OutputField3 is this. ButtonLabel
/*
Question 3
How can I get the value of the label of the button to set the field
There should be a lot of these buttons and buttons will be added - I'd rather set the value based on the label of the button to facilitate value - not requiring only not to change the code
*/
Issue 4--unrelated to those at the top.
Is it possible to build the first table
| ButtonX | ButtonY | Description |
from a XML file. I've seen examples showing how to build if it's just data, but XML can be pushed into a form with the code to perform the above actions?
Glad you figured it out... nothing wrong with doing it this way.
Normally XML contains data and no default legends these xml files are bouond to the rawValue property. You can enable the dynamic linking and other properties of the object will be bindable (they appear as links) in the user interface. If you click on the link to legend an Assistant appears allowing you to bind the node in the XML file.
Paul
-
How to set a value in a numeric field based on a checkbox field?
I try to get a numeric field to return to a certain numerical value according to the response from the user for a checkbox control. Here is my code:
If (CheckBox1 .rawValue [0] == 1) then $.rawValue == 969.00 else $.rawValue == "" endif
When the form is displayed, the value of the numeric field poster in the form $1,00 and if I check the box it changes $ 0.00 - but I want him back $969,00 if checked and be empty when not checked.
Can someone help me understand this?
Hello
FormCalc syntax, so make sure that you have set the language in the script in FormCalc Editor.
Also, you are right when you test equal to use the double equal sign ==. However, when you set a value, you use a single equal sign.
FormCalc does not need the .rawValue.
Make sure you have set the 'specify values' tab of object/link check box and on = 1. [0] in your script also indicates that there is more than one occurrence of CheckBox1. I'd be inclined to objects of unique name, as it makes it easier to script.
So it should work in the case of calculating the numeric field:
if (CheckBox1 == 1) then $ = 969.00 else $ = 0.00 endif
Configures the model of the numeric field for monetary symbols, etc.
Good luck
Niall
PS you can put figs in quotes. Also having the calculate event script will automatically make the calculated - read only field. You can, but if you do not you can change it in the tab/value of the object. On the other hand, you can have a script similar to the output of the box event.
-
I have a simple test form that contains a cftree and some fields of seizure/hidden. Whenever a tree node is selected, I want to change the values of the fields of entry/hidden to some node is selected. Pretty simple, but I can not understand how to change the values of the hidden fields.
Load the form, select "ItemA" and click on submit. Do not change the values of the hidden form fields. They are always "not defined". What is the correct syntax to change the value of the hidden field?
The correct syntax is
myForm.theID = 'theID = "+ valueString;
Ken
Maybe you are looking for
-
help with the new option of memories
Sorry for my English Please help me with the new option of memories no memories option appears me I have an iphone with IOS 10.02 5
-
After closure, mac opened my account instead of open the screen of welcome with other accounts. How can I fix?
-
Configuration required to use the fingerprint reader
I have a dv6tQE delivered later this week and I'm looking into how to configure the fingerprint reader. I'm interested the FR for projecting my fingerprint with the plethora of passwords that I now keep in a Word document hyperlink. Too much memori
-
HP C5230: Scanner does not see memory cards
I have a HP C5230 scanner, copier, printer. It worked fine, but suddenly, it no longer reads any type of memory card. Unfortunately, you have the scan to a memory card, so now the scanner does not work. Anyone have any ideas? It's like memory c
-
"Invalid Operating System" error when you try to load McAfee
I try to load the McAfee virus scan, but I get an error message "Invalid Operating System". OS is XP Pro comes with the system and the current version is 5.1 service pack 3. It would not have automatically updated from Microsoft if the OS was not leg