How to default value in collection after intial collection field entered
Hi there,
Am working on gettting to know collections but not really had much to do with them so far.
I have a multi row data entry screen that works great using a collection. Now the boss has decided that the new records require a default value that the users can overwrite if required.
The value i need to default is the second field in the collection but i only want to populate the value after the first field in the collection has been entered.
Could anyone talk me through how i do this please or point me to any relevant documents.
Cheers
Lisa
Hi Lisa,
If you want to default value only after user enters data in another row column, you ll have to write a javascript code that executes after the column is entered
If you have jQuery(already included in apex 4.0) it would make the task of accessing that other column easy.
Otherwise its much more harder work to get I can think of setting the ID's using the pitem_id_* while rendering the editable fields(set it for both the columns..say as COL1_ROWNUM , COL2_ROWNUM ) using APEX_ITEM. Then add an onblur event(using the html attributes parameter of APEX_ITEM api) call a JS function with the rownumber(to identify the row). You can then write the logic for default value inside the function and set the corresponding column with the value.
If you can update about your version and/or if you use any JS libraries, it would be easier to help you any further.
Similar Messages
-
Hi,
I have created a page in which I have two different LOVs. My requirement is to default some value in the First LOV i.e. "ALL"
and the second LOV which is dependent on the first LOV will gets populated with the values based on the first one on the page load itself.
Both the LOVs have "autoSubmit" and "partialTriggers"realtion between them.
The problem I am facing is that I am able to set some default value to the first LOV with value as "ALL" by using "setSubmiitedValue" on LOV from backing bean on the page load but the second LOV popup (dependent LOV) is coming blank on page load.
But if i select same value "ALL" form the first LOV popup after page load then second LOV popup gets populated with values based on first LOV
Please provide some urgent help that how to default any LOV with some value and based on that second LOV gets populated on the page load itself.
Thanks in Advance
Kanika DhamijaHi,
Can you please explain a bit more the ' ... is to default some value.. ' part?
When exactly do you want to set a default Value?
Depending on your case, there is always the declarative way to consider through BC
some approaches on different cases:
How to set a default value in an ADF table when adding a new row
http://www.youtube.com/watch?v=9WQ0SDVVWtE
http://adfcodebits.blogspot.co.uk/2010/04/bit-13-overriding-create-to-set-default.html
cascading LOVs
http://andrejusb.blogspot.co.uk/2012/11/cascading-lovs-in-jdeveloper-111230.html
hope this helps
Regards,
Dimitrios. -
How to default value on bet01 based on ansal
Dear Freinds
i would like to know how to default the value for bet01 based on the
calculated on ansal
i want is
q0008-bet01 = p0008-ansal /100.
Can i default the value using the user exit ZXPADU01 or ZXPADU02. . As my ueser exit is not triggering without me entering to bet01 .
how can i do defaulting the value on bet01 ,
regards
shantiDear Chritisn
in my code i have done same thing what you have said as follows
i have written the coding in ZXPADU02 as below
data : wa_p0008 like p0008,
i0008 like p0008,
l_v_ANSAL type ANSAL_15,
l_v_amount type PAD_AMT7S.
CASE innnn-infty.
when '0008'.
MOVE-CORRESPONDING innnn to wa_p0008.
if wa_p0008-lga01 = 'MFPY'.
l_v_ansal = wa_p0008-ansal.
l_v_amount = l_v_ansal / 100.
if l_v_amount ne wa_p0008-bet01.
move l_v_amount to wa_p0008-bet01.
MOVE-CORRESPONDING wa_p0008 to innnn.------ at this point
endif.
when others.
endcase.
I have used move corresponding because i am getting the error as the strucutr eof INNNN to that WA_P0008 is different (unicode compatability error) ...
now i can see the data in wa_p0008 and when i have move into innnn ..... i can see all the data in debuggin except the bet01 value as below
in wa_p0008 the data in debugin is as follows
PERNR N 8 00000004
INFTY C 4 0008
SUBTY C 4 0
OBJPS C 2
SPRPS C 1
ENDDA D 8 99991231
BEGDA D 8 20070716
SEQNR N 3 000
AEDTM D 8 00000000
UNAME C 12
HISTO C 1
ITXEX C 1
REFEX C 1
ORDEX C 1
ITBLD C 2
PREAS C 2
FLAG1 C 1
FLAG2 C 1
FLAG3 C 1
FLAG4 C 1
RESE1 C 2
RESE2 C 2
GRPVL C 4
TRFAR C 2 01
TRFGB C 2 01
TRFGR C 8 E1
TRFST C 2 08
STVOR D 8 00000000
ORZST C 2
PARTN C 2 WAERS C 5 HKD
VGLTA C 2
VGLGB C 2
VGLGR C 8
VGLST C 2
VGLSV D 8 00000000
BSGRD P 3 100.00
DIVGV P 3 165.00
ANSAL P 8 1000.00 -
value entered on the screen
FALGK C 10
FALGR C 6
LGA01 C 4 MFPY
BET01 P 7 10.00 ---after calculation the value(1000/10)
ANZ01 P 4 0.00
EIN01 C 3
innn structure in debuggin as follows:
PERNR N 8 00000004
INFTY C 4 0008
SUBTY C 4 0
OBJPS C 2
SPRPS C 1
ENDDA D 8 99991231
BEGDA D 8 20070716
SEQNR N 3 000
AEDTM D 8 00000000
UNAME C 12
HISTO C 1
ITXEX C 1
REFEX C 1
ORDEX C 1
PREAS C 2
FLAG1 C 1
FLAG2 C 1
FLAG3 C 1
FLAG4 C 1
RESE1 C 2
RESE2 C 2
GRPVL C 4
DATA1 C 250 0101E1 0800000000 HKD 00000000#ᘌ౐###ఀ MFPY###### ###### ###### ######
DATA2 C 250
we can see in the debuggin for the DATA1 it is having the MFPY value but i dont find the value for bet01 ..........
and iam not getting the value on the screen in PA30 for the bet01.
please let me know what i have to do , and let me know where i went wrong.
regards
shanti -
How to default value from popup page to main page.
Hi,
Requirement:
I have a create page with table region of 10 lines.I have an icon for every line and on click of this icon, a popup window will be opened.
In the popup window i have quantity field with a table region. User is allowed to select the quantity. Also i have a ADD button on the popup page.
Now On selecting the quantity and click on add button, the quantity should be added and the sum quantity should be defaulted to quantity field in the main page.
For this requirement what i have done is
I have added the quantity on click of the Add button.and the total quantity i set to the quantity attribute that has been attached to main page.
But the quantity didnt get reflect to the main page. i think the focus is not retured o main page.
Please suggest me how can i do this requirement.
Thanks in Advance,
Thanks,
Mallika
Edited by: user12216727 on Nov 21, 2009 4:29 AMHi,
As per my analysis for the issue, the control is returning to processRequest of the controller and when i set the attribute value, the value is being set and I am able to get the value and print it.
But the value is not displayed on the page.Here I am using Advanced Table Region, and I am not able to shoe the value.
I also created one view attribute and tried to set the readonly property to TRUE for the same field. I did in the same way, the value is being set and the field is made readonly.
The problem is I am not able to show value to the user, even the value is present in the view attribute.
Any pointers to this are really helpful.
Thanks,
--Mallika -
How to compare value before and after
hi,
one of the queried Values is the number of defective frames.Here, this value is compared with a previously sampled value
If now (after 10 s) this value is bigger than previous one ,then It saves new value otherwise loop will be continue.If again after (10s) the new value is bigger than previous new value then again saves this new point.how can i comapre value before and after?thanks.
TadhikaDo you know what a shift register is? It preserves a value from one loop iteration to the next. Please read the LabVIEW Help on shift registers. There's is also a simple example that ships with LabVIEW that will give you the basic idea (Help -> Find Examples).
You can also use a Feedback Node in lieu of a shift register. Same concept, different implementation. -
How set default value in field of new infotype
Hi experts!!
We have created a new infotype 9002. This infotype has two mandatories fields, one with the amount and another with the currency.
The currency always will be 'EUR', for this reason we would like to assign the default value for this field and the user only should fill the amount field.
How we should assing the default value to the field we have created in a new infotype 9002?
Kind regards,
JulianHawk,
Another option here will be to enhance infotype 9002 screen 2000 PBO logic. Add a PBO module with the following logic:
Begda hat sich vielleicht geändert.
PERFORM re500c(sapfp50m) USING psyst-land p9002-begda. "K35729
IF p9002-waers IS INITIAL. "QNUK110803
IF t500c-waers IS INITIAL. "QNOK034099
MOVE t001-waers TO p0015-waers. "QNOK034099
ELSE. "QNOK034099
MOVE t500c-waers TO p9002-waers. "QNOK129756
ENDIF. "QNOK034099
ENDIF.
This is standard code extracted from infotype 0015 PBO logic. It default currency according to your country. -
How to default values on screen using FREE_SELECTIONS_INIT
Hi Experts,
I have the following requirement :
We have developed a screen on which there is a button. On click of the button, a dynamic selection screen is generated using the functions FREE_SELECTIONS_INIT and FREE_SELECTIONS_DIALOG.
I want when the selection screen is generated for the first time, the fields on it contains some default values taken from a table.
e.g. If Screen has fields MARA-MATNR, MARA-MTART, MARA-MEINS then MARA-MEINS should be defaulted with a value 'EA'.
I have tried a lot but could not find a solution to it.
Kindly help me out as this is very urgent.
Points are guaranteed..
Thanks in advance.
Regards,
HimanshuSELCTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK BLOCK_1 WITH FRAME TITLE TEXT-001.
PARAMETERS : P_RADLOC RADIOBUTTON GROUP GRP1 USER-COMMAND USER .
SELECTION-SCREEN BEGIN OF BLOCK SUB1_BLOCK WITH FRAME TITLE TEXT-002 NO INTERVALS.
PARAMETERS : P_LOCNO TYPE /SAPAPO/LOCNO MODIF ID ABC default 'Specify the default value here.
SELECTION-SCREEN END OF BLOCK SUB1_BLOCK.
SELECTION-SCREEN SKIP .
PARAMETERS : P_RADRES RADIOBUTTON GROUP GRP1 DEFAULT 'X'.
SELECTION-SCREEN BEGIN OF BLOCK SUB2_BLOCK WITH FRAME TITLE TEXT-003 NO INTERVALS.
PARAMETERS : P_RESNM TYPE /SAPAPO/RES_HEAD-NAME MODIF ID XYZ.
PARAMETERS : P_NOB TYPE /SAPAPO/CRES_NOINDIVRES MODIF ID XYZ.
SELECTION-SCREEN END OF BLOCK SUB2_BLOCK.
SELECTION-SCREEN END OF BLOCK BLOCK_1.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF P_RADLOC = WL_SPACE .
IF SCREEN-GROUP1 = WL_ABC.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ELSEIF P_RADRES = WL_SPACE .
IF SCREEN-GROUP1 = WL_XYZ.
CLEAR : P_RESNM, P_NOB.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ELSE.
SCREEN-ACTIVE = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP. -
How to see values (null, 0) instead of blank fields
Hi.
I search the forum but only found messages about users who want to show fields blank, when value is null.
I have the problem other way around. I work with DevSuite 10g and have a xml-Report.
I have fields and for some the query returns null (no value). Than the report shows nothing for this fields. Neither a blank line nor a value like 0.
The problem is, that the other values afterwards the blank ones, slip above.
For Example:
field 1
field 2
field 3
field 4
The Query returns null for field 2 and 3.
Then on the report I see:
field 1
field 4
But what I want to see is:
field 1
field 4
or:
field 1
0
0
field 4
But all I tested doesn´t work. I set a value for "when null" in the attribute inspector and the horizontal elasticity of "fix" (I thought it maybe it "slip together" so it is not shown).
Has anyone a idea how I can show a (blank or 0 value) instead of nothing, so that fields afterwards doesn´t slips up?
Thanks for your suggestions
Message was edited by:
ulfkHej MLA.
I think it was from query, but it is anyway if it is from query or from form (it´s not from column).
@Brad
Thanks for your suggestion.
We solve this problem in a similar way.
We put a field under/over the other. We give the field we want to show a white background. So it is "sitting" over the other and the underlaying one is not shown (because the overlaying one has a white background).
If the overlaying one is blank it is not shown (so it can´t has a white background) and we see the underlaying field.
But to use triggers is a better solution.
I solve it on the same way as explained above but using triggers also.
But I have to leave a statement about Oracles Report Builder. Sorry but it is more than horrible program. I never have seen such a (also new and) bad programmed program. It is more than hard to work with it ... it cost me every hour I use it more and more power to stay quite ...
Here are the things I really wish to change at reports bulder directly:
- more than one step back (undo)
- there is a difference between the output in reports bulder on the paper output, what is shown when you print it on a paper (from reports bulder) and from what is shown in a PDF file produced with a reports server (that is really annoying, you never now if it is correct what you see in reports builder!)
- better editing and better selectable of the text-boxes and fields
- a way to hierarchically objects that are on the same layer (frame) so that you can really bank on it, that one object is ever behind another one
- not only moving and scaling of fields and boxes on a fix gutter (free transforming and moving would be great) because sometimes a text or a box with line around is not on the right place (out of order; above another object/text a.s.o.) and when it is (why I don´t really know) is not on the right place and the distance to the other object is less than the fix gutter-distance you can´t move it in such a way, that the two objects are flush with/on a fix line/place. It´s because the fix gutter. The distance is lower than the gutter, if you move it, it is not makeable to move it this less-than-the-gutter-distance to be flush with the other object. You can only move it in the fix gutter-distance and than it can´t be flush with the other objects.
It looked really bad and amateurish!
- a tool (a button or something) where you can marked object to flush all together on the same line, so that all objects for example are flush together on one start-line or ends (horizontal or vertical flush).
It would be great and would the work so really easier and better. -
How make default values in the selection criteria of BEx query????
Hi all
I have to create a brand new query, in the selection criteria(Prompts) I have two prompts. one prompt should show current budget year and second prompt should show next budget year, both prompts are mandatory and default.
Can any one please let me know how to obtain current and next budget year??? do I need to write any customer exit or do i need to create a offset???
Two prompts are using same infoobject 0fiscper which is mapped to ECC Table MBEW and field is LFGJA.
ThanksHI sathiyaa,
so you want to show user with two prompts one will show current year and the other next year value by default.
//tell me that if you user change the current year value for ex: it will show 2011 by default.. and user changed it to 2009.
you want to show 2009 year results or 2011 even though he changed the prompt.
Here i'm considering that even though user changed current year to some other year still you want to show the current year results.
Create a customer exit variable for calyear with ready for input (checked).
customer exit code in CMOD :
when ' customer exit var for cal year'
IF I_step = 1.
clear l_S_range.
l_S_range-low = sy-datum+0(4).
l_s_range-sign = 'I'.
L_s_RANGE-opt = 'EQ'.
ENDIF.
if i_step = 2.
data: zyear(4) type c.
zyear = sy-datum+0(4).
ex: l_s_range-sign = 'I',
l_s_range-opt = 'EQ'.
L_s_range-low = zyear.
appen l_s_range to e_t_range.
after this create a variable offset
create a new selection in the structure, drag the KF and calyear restricted by current year variable . Copy the same selection and insert it as a new selection, go back to the calyear restriction, right clik on the variable. specify variable offset and enter + 1.
or search in sdn how to create variable offset it will help you
Regards,
Ranganath. -
How to default value in hr report category
Hi all,
I have create a hr report category in my abap report.
However, i need to default the Reporting Period field to value 'Today'.
Please find the below screen.
How can i do that?
Thanks & Regards,
Sujatha sahu.Hi Sujaha,
I guess u used logic database PNPCE,
so use below source code FYA.
You can add the other values in the list. Now I added two only. (“D” and "Y")
NODES peras.
TABLES: pernr. " Standard Selections for HR Master Data Reporting FOR THE DEFAULT SCREEN.
AT SELECTION-SCREEN OUTPUT.
PERFORM set_date.
START-OF-SELECTION.
GET peras.
*& Form set_date
* set_date
FORM set_date .
DATA: lv_vrm_id TYPE vrm_id,
lt_vrm_values TYPE STANDARD TABLE OF vrm_value,
lwa_vrm_values TYPE vrm_value.
lwa_vrm_values-key = 'D'.
lwa_vrm_values-text = 'Today.Good day'.
APPEND lwa_vrm_values TO lt_vrm_values.
lwa_vrm_values-key = 'Y'.
lwa_vrm_values-text = 'Current Year. Horse Year'.
APPEND lwa_vrm_values TO lt_vrm_values.
lv_vrm_id = 'PNPTIMED'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = lv_vrm_id
values = lt_vrm_values
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
ENDFORM. "set_date -
AP Form Personalization - How to default Values.
Hi All,
I am trying to Personalize the *"Payment Batch"* Form in AP Super User.
(Navigation : Payments > Entry> Payment Batches.)
My Requirement is:
*"Once the Bank Account(LOV) is selected, the Pay Group(LOV) should get defaulted."*
There is a ONE-TO-ONE Relationship with the Bank Account and Pay Group given by the user.
1. How can I default the Pay Group corresponding to a Bank Account.
2. Is there any table which links Bank Account and Pay Group to accomplish the same.
3. Can i do it by creating LOOK-UPS
Please help me start with this personalization.
Thanks a TON in Advance.Please post your question in the [EBS General Discussion|http://forums.oracle.com/forums/forum.jspa?forumID=475] forum as this forum is dedicated to NON-EBS Forms development.
Craig... -
How do I add items to a collection after the collection has been created?
I can't figure this out. I click on the gear icon next to my collection name but I don't see the feed you initially see when you create the collection?
+1
Join this issue! -
Hi all,
I have a Form which has text_field columns as below , created from table RECEIVED_FORM_15G. This table is blank.
1) CUST_CODE with 1 line item. (Number of Items displayed=1)
2) ACCT_FD_NO with 10 line items. (Number of Items displayed=10)
There are more than 1 ACCT_FD_NO for 1 CUST_CODE.
When i enter the CUST_CODE and press tab, all the values of ACCT_FD_NO must get displayed. I am taking ACCT_FD_NO values from another table called KEC_FDACCT_MSTR
and want to display ACCT_FD_NO, one below other (line item). So i put in the following code:
BEGIN
FIRST_RECORD;
FOR CUR_R IN (SELECT ACCT_FD_NO FROM KEC_FDACCT_MSTR WHERE STAUS='E' AND ACCT_CUST_CODE=:CUST_CODE)
LOOP
NEXT_RECORD;
:ACCT_FD_NO :=CUR_R.ACCT_FD_NO;
END LOOP;
END;
But the problem is i'm not able to display the captured value in next consecutive line items.
It is getting displayed in first & second line item only.
The first value gets displayed in first line item, then the cursor moves from first line item to second line item,
the second value gets displayed in the second line item, (this is because of NEXT_RECORD in my code)
later all the values are getting displayed in the second line item only. (I checked it using message call.)
I want it to display one below the other.
The problem is the cursor is not moving to third line item after the second line item.
So the remaining values gets displayed in the second line item only.
So what is wrong in my code??
Where should i place the next_record to make the cursor move from one line item to next line item i.e from second line item to third line item
& third line item to fourth line item & so on.... Please let me know.
Thank You.
Oracle Forms Builder 6i
Oracle 9i.The above code is right..
The only mistake was In the property palette of CUST_CODE, "required" was not set to "Yes" .
So after setting required to 'YES' , it worked perfectly fine. -
How to add values of checkboxs to a numeric field?
I have 5 checkbox which I assigned values to: Excellent 5 , Satisfactory 4, Needs Improvement 3 , and so on. When I check a check box , lets say the Excellent one, I want it to put the value 5 in another numeric field. How do I do this?
Hi,
For the checkboxes you can set the On value and the Off value. See the Object > Binding palette. You would just set the Excellent check box to an On value of 5. Then it is just a matter of adding the checkboxes together.
See a few examples here: http://assure.ly/omsURE, http://assure.ly/uiKS6f and http://assure.ly/iitzNJ.
Niall -
How to assign value of one filed to another field in reports
Hi..
How we can copy the One field value to another field nd how to use group by in query to generate reports.
Reply...
Thanks
Neetu
Edited by: Philip Eller on Jun 27, 2008 9:49 AM
Edited by: Rui Pereira on Jul 8, 2008 5:26 PMDear Neetu,
If you would like to assignt he value of one field to another in PLD, you can try the following.
1. You can link the two fields by using the property Link
2. In the fomula field for one of the fields, just mention the name of the other field.
For example
You have two fields F_118 and F_180
Scenario 1 :
In the "Link" property of the field F_180, choose F_118
Scenario 2:
In the "Formula" for the field F_180, write "F_118"
For using group by in query, Once you have created a query with the "Query Generator" you can create the reports based on query through the "query manager".
REgards
Arshdeep
Maybe you are looking for
-
what does this error mean? There was an error in the App Store. Please try again later. (100)
-
Why won't my iPod charge or play music on my ipod dock?
My sister pushed on the iPod plugging it in really hard, and it did play the music and charge it. When she let go it stopped working. I've tried it on two docks and it doesn't work with them anymore. Both docks are compatible. the first dock worked f
-
Safari missing images in Gmail
Hi guys, Since yesterday I've got really weird problem - safari isn't displaying any images in Gmail, or open Google Drive site. If I copy out the url, it simply looks like Safari can't connect to ssl.gstatic.com - it says "Safari can't open the page
-
I have an hp 8440 and i would like to know if it is capable of being designted as an email printer
i have an hp mfc 8440 and i would like to know if it is capable of being designted as an email printer
-
Hello Forum Friends Just when I thought I had made progress on my affliction, FCPX and Motion generators are failing me again. Trying to render a project with lots of Motion-generator bumpers - found that FCPX crashed consistently at the same instanc