Set different default values for table built using subforms
I'm using Designer 7.1 and need to have tables with a fixed number of rows, where the first column is readonly and displays a set of distinct values. For example
Body System Normal Abnormal Comments
Head
Neck
Respiratory
etc.
I'm constrained to building the table using subforms. I'd love to do it using the new table feature but this will not interface with our software.
I'm trying to put Javascript code in the Initialize section of the body subform that puts a different value in each row. I'm not finding a way to distinguish one row from the other. If I simply say
this.body_system.rawValue = 'Head'
Then all of the rows will have 'Head' in the first column.
I've tried the following but it doesn't work:
this.body_system.rawValue[0] = 'Head'
this.body_system.rawValue[1] = 'Neck'
Thanks for your help!
Peter
That worked perfectly. I'd love to have figured that out myself but it must be buried in the help somewhere. Is there a good reference document for LiveCycle Designer Javascript? I've scoured around but could only find bits and pieces.
BTW here's the code that worked:
xfa.datasets.data.resolveNode("form1.TableParent.TableBodyRow[0].body_system").value = 'Head;
xfa.datasets.data.resolveNode("form1.TableParent.TableBodyRow[1].body_system").value = 'Neck';
etc.
Thanks so much!
Peter
Similar Messages
-
SRM 4.0- How to set the default values for product type (01) only for SC
The radio button Service should not be visible.
Also for search help (e.g. search for internal products) where a search should only be possible for product type 01 (goods). The system should not display the product type and internally always search for goods only.
How to set the default values for product type (01) only for SC
We needs to use Search help BBPH_PRODUCT which having parameter PRODUCT_TYPE
Here we can set defalut value 01 but it is not correct one since same search help is using several places.
We need to limit the search help results only for SC.
Kindly help out me ASAP.The easiest way to set defautl values is to edit the batch class.
Goto the characteiristic and go to update values.
In here you probably have something like 0 - 100 as a spec range.
On the next line enter the default value within this range. At the end of the line, click in the box in the column labelled "D". This indicates the defautl value for the characteristic.
If you need to you can do this in the material classification view as well.
Just to be clear, these values will only show up in the batch record. You can not have defautl values in resutls recording screens.
FF -
How to set a default value for particular field in SRM PO Portal
Dear Gurus,
Im desparetly need a help in web dynpro on how to set a default value for a field(flag) in PO header tab in portal.
My requirement is whenever the user press the edit button in PO screen,automatically a flag field should be set as abap_false.
I dont think this will handle in check badi or change badi. i tried this part in onbuttonpressed overwriteexit in CNR_VIEW views,i can get the function EDIT in debugging mode,but dont know how to proceed further.....
Many of them suggested to go with get attribute and set attribute for changing any particular field in web dynpro,but im not very familiar in using those get and set attributes.I request you people can give me sample code on how to identify my target field in the node and set the values while pressing EDIT Button.
Thanks in advance...
Regards,
SathishDear Laurent,
Thanks for your response,
But i searched in enhancement spot of WD_BADI, but couldnt get the exact way to change the coding,
My real requirement is, that particular flag should be enable and disable dynamically by checking a condition in my header values.So in that case i dont know how to proceed further to handle in the PO screen.
Kinly guide me how to get the particular node of field in the Purchase order screen.
Thanks you in advance,
Sorry for the inconvenience if any
Regards,
sathish -
Set a default value for a radio button populated with a List of value
Hi,
I am using jdeveloper 11.1.1.3.0. I need to set a default value for a radio button populated with a List of value(Yes/No). Here's the selectonechoice code.
<af:selectOneRadio value="#{bindings.Code.inputValue}"
label="#{bindings.Code.label}"
required="#{bindings.Code.hints.mandatory}"
shortDesc="#{bindings.Code.hints.tooltip}"
id="sor1" autoSubmit="true"
valuePassThru="true" layout="horizontal">
<f:selectItems value="#{bindings.Code.items}" id="si1"/>
</af:selectOneRadio>
I want to have the selectonechoice set to No by default. In the previous versions, I set the default value in the base attribute VO. But it is not working in the new version.
ThanksHi,
this should work in JDeveloper 11.1.1.3 the same as in 11.1.1.2. If it doesn't then it is better to file a bug than to work around it
Frank -
Can we set a default value for the container variable in BPM?
Can we set a default value for the container variable.?
Suppose if i have a loop step and i have given a container variable i=5 as end condition.What value will it take during its first execution?Can we set the value for container before a recieve step?Hi
Define Container Variable of Type integer and Category Simple Type .Use Condtion in Loop.
In Container Operation Step Assign value and Use Expression to
Increase or Decrease Valus according to your operation.
look Pattern 4 in this blog to understand Container Operation
/people/sharathchandra.girmaji/blog/2008/09/11/bpm-with-patterns-explained-part-1 -
How to set the Default values for Info Objects in Data Selection of InfoPac
Hi All,
Flat file Extracion:
How to set the Default values for Info Objects in Data Selection Tab for Info Package
ex: Fiscal Year Variant Info Object having values 'K4' 'Y2' etc in Flat file
Initially default value(not constant) for this info Object value should be 'K4' in Info Package
If I set data selection value for this info object K4 it will retreive records with this selection only? how to handle
Rgds,
CVHi,
suppose as your ex. if you are having fiscalyear variant in the dataselection tab then specify K4 in the from column, again the ficalyearvariant row and click on insert duplicate row at the bottom . you will get another row . In that enter Y2 in the from column. now you can extract K4, y2 values .
haritha -
How to set the default values for print options
Hi all,
We can set the default value for print options, just like Logical destination、numbers of messages、print immediately and so on, so where we should to maintain these default?Hi Sandy,
This can be done by an abaper by making changes in the driver program. The Driver program feeds all the data which u have mentioned for printing.
if the driver program is standard. copy to an z type and make modification on printer settings on the driver program code.
this will surely solve the issue.
Regards
Gunaseelan -
Setting up default value for POV in Financial Reporting Studio
hello
We need to Set up default value for POV in Financial Reporting Studio. For example, we need period to pick up Sep as default value when we run the report.
Is there any way we could do this???
Regards
NehaHi Neha,
Yes, there is a way to setup of your grid POV. Take a look at this: http://download.oracle.com/docs/cd/E12825_01/epm.111/fr_user/127.html
Cheers,
Mehmet
p.s. Please mark the answers helpful or correct, if they've helped you or answered your question. Thanks! -
Set of default values for Select-Options
Hi Gurus,
I have a requirement where I need to set default values for select options
ex: SELECT-OPTIONS: S_MTART FOR MARA-MTART
default values must be ERSA - HIBE- FHMI - DIEN - GEST
Please tell me how to do it.
Effective replies will be rewarded with full points
KarthikHi,
For each SELECT-OPTION, you can only specify one DEFAULT.
You must specify the default value g in its internal format, e.g. "SELECT-OPTIONS DATE FOR SY-DATUM DEFAULT '19931224'", not "... DEFAULT '24.12.1993'".
The default value g should normally be a literal because, at runtime when you use SUBMIT, it is transferred to the selection options table sel so early that no value can be assigned to the field g. System fields like SY-DATUM are an exception here because the system usually assigns values to them as soon as the report processing starts.
When you use user-defined selection screens in your programs that you do not call using SUBMIT, the DEFAULT value is transfered when the selection screen is first called. In this case, therefore, you can use other fields g.
regards,
sowjanya
Message was edited by: sowjanya suggula -
Hello Everyone
I have two drop downs. Both are coming from look up fields from two lists. i want to set a default value(first list item) for the first drop down list box and then apply cascading based on the default value for the next drop down list box. I found one article(http://www.bizsupportonline.net/infopath2010/display-first-item-drop-down-list-box-infopath-2010.htm)
where in i can set a default value but i can't apply cascading based on that default value. Any suggestions would be highly appreciated.
Thanks
Ramanjulu Naidu NHey Ramanjulu,
Take a look at the below article which I believe will answer your question.
http://basquang.wordpress.com/2010/03/29/cascading-drop-down-list-in-sharepoint-2010-using-infopath-2010/
Daniel Christian (MCTS) -
How to set a default value for a page item
I am working with a facility table that has name and address information. The user can add contact name information on a separate page. Since the address for the facility and contact is usually the same, I want to add a default value for the contact address. The facility page is on 201 and the link to add a new contact row is on page 202. I showed in the default value :P201_street for the contact's address. But, when I run the page, the contact address field shows the :P201_street, not the actual facility address. What am I leaving out? Must be something obvious?!
Thanks very much.
JudyIn the default value, I showed: v('P201_STREET1') with the default value type of: PL/SQL Expression and received the following oracle error ==> Item default is not a PL/SQL expression. Use &ITEM syntax. The v('ITEM') syntax is not valid for item defaults. So I changed it to: &P201_STREET1 and got another oracle error , ERR-9132 error in PLSQL expression for item default code, item=P202_STREET1.
Any more suggestions? Thx.
Judy -
How to set a default value in my DropDown using the key ?
Hello All,
Can someone advose how I can achieve the above ? I will like to know how to select a default value for the dropdown by key using the key value instead of description.
The reason why I need to do so instead o fusing description is because my application will populate the dropdown using web services based on the language selection. Hence, if I were to set the default value using description, den other languages will not work anymore.
Any help will be greatly appreciated. Thank you !!
from
KWok WeiKwok,
Assuming that:
1. You have a node NodeX, where attribute TargetAttr defined
2. You have a DropDownByKey UI control, its property selectedKey bound to NodeX.TargetAttr attribute
Then:
Place in your code:
wdContext.currentNodeXElement().setTargetAttr("yourKey");
VS
P.S. This topic was raised several times, and forum search works good enough to find an answer -
Tax codes - can you set up default value for rows and freight? HELP!
Hello - I have two issues with tax codes:
1. When adding a sales order if any of the rows do not have a value for "Tax Code" I will get an error "Row without tax was found".
- How can I get all rows on my sales orders, documents, etc to default to a specific tax code? Or will users ALWAYS have to enter the tax code?
2. When addring a sales order with Freight, if the order is added without adding a tax code to the freight I will get an error "Expense with tax was found"
- How can I get the tax code have a default value? We always use the same tax code, so it is redundant to have to enter this information.
Any suggestions?Hi Jhon,
this is the simplest and best way to make a Tax Code default is Go to
Answer for Question 1
Administration -> Setup -> Financial -> Tax -> Tax Code Determination (Click on this)
in that screen you can set a default tax code for both sales as well as Purchase.
If you want to set Tax Code based on Vendors or Customers or Items separately then you can use the Key Fields.
Answer for Question 2
Once you enter the Tax Code in the freight i think it takes the Tax Code itself, I'm not so sure about this one though.
Hope this helps you out
regards,
Shreyas -
Setting a default value for SQL based LOV
Hi There,
Is there a way to set the default value in an LOV. Like lets say the LOV gets distinct to_Char(date_field,'YYYY') from a table. I want that the highest year is the default value. Currently, since I have the null option also, when the page loads, the lov is always null. I need to change it manually.
Thanks,
SunYou can easily set the dynamic item defaults
http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/bldapp_item.htm#HTMDB28287
for example select the default type as PL/SQL Function Body and enter the following code
declare
v_return date;
begin
select max(date_field) into v_return from your_table;
return to_Char(v_return,'YYYY');
exception when others then
return null;
end; -
Setting a default value for DropDownByIndex UI
I have a drop down by index UI element which gets its values from a table. i need to set the default value to 'Select a State' or something like that. How do i do it?
Thanks,
LathikaHi Lathika,
Please follow these links:
To set default value as blank in drop down by index
and
Re: Value of RFC in Dropdownbykey
Also, try this solution:
that means you have to set at design time,
to set default drop down value you will have to set the value for particular attribute (which is linked to the dropdown element) in the context
like
wdContext.currentContext<nodeName>Element.set<FieldName>(<default value>)
This generally done in Initialization method of the controller
Thanks,
Raj.
Message was edited by: Raj
Maybe you are looking for
-
i can t seem to run or move it from the itune app section.
-
Login error when publishing OWA 2010 through TMG 2010
Its configuration publish OWA 2010 with TMG 2010 but when logged through the internet must enter the correct net name: domain.com\administrator and password to login. administrator login name or login [email protected] not login. And all the other ma
-
What is Data Management?
All SAP Gurus, What is Data Management in SAP? Is there any special module for Data Management? Regards,
-
Where is the antenna located in the Style 9670?
Hello I do not own a BB yet but thinking of buying a Style 9670 soon. It is still available in India and the phones here are not tied up to the service provider. My phone usage is minimal since it causes ear pain whenever I talk on a GSM/CDMA phone.
-
Link between a business partner and a device installed on a device location
Hi everyone, Please guide me about the linkage between a BP and device location. Please guide me with table field wise linkage. Which table is being used for 'Device Location' and 'Premise' information. Please guide. It will be a great help. Thanks a