How to set Value from Frame to Frame
I am having 2 Frame. Frame A and Frame B. Frame A is having a text Field and a button. When i click on the button on the Frame A, how can pass the value inside the text field of Frame A into a text Field of Frame B which already prepared. Please help !
Hi,
Seems like u r not really undertand my real problem. Below is the details of my probelm.
I have two JFrames in my application . From the first frame when
I click the "Find" Button the second frame is instantiated which
queries for the value to be found . My intention is that when I
click find on the second Frame all other Column values(from the
database) should be dispalyed in the First frame corresponding
to the value I am searching. I am calling the set method in the
first frame from the second frame to dispaly the values in the
first frame. But this is not getting displayed in the first
frame even though i am able to get the result printed in the
console window.
Hope you can be more understand and help me to solve the problem.
Similar Messages
-
How to set value from one view to other view's context node attr b4 save
HI all,
My requirement is as below:
There are two views in component BP_CONT.
BP_CONT/ContactDetails IMPL class
BP_CONT/SalesEmployee SALESEMPLOYEE STRUCT.SALESEMPLOYEE
I want to set value from first view to second view's context node's attribute.
i get Sales Employee BP number in ContactDetails view, from here i want to set that value in to STRUCT.SALESEMPLOYEE
of second view in the same component.
please send me code snippet for doing the same.
Thanks in advance.
seemaHi Seema
You can access the fields from different views by either using custom controllers or by using component controllers, in your case you can access the Sales employee BP number from the Component controller.
first access the component controller as below in BP_CONT/SalesEmployee (in do_prepare_output method) or in (specific setter method)
lv_compcontroller type ref to CL_BP_CONT_BSPWDCOMPONENT_IMPL,
lv_partner type ref to cl_crm_bol_entity,
lv_role type string,
lv_partner_no type string.
lv_employee TYPE REF TO if_bol_bo_property_access,
lv_compcontroller = me->COMP_CONTROLLER.
lv_partner ?= lv_compcontroller ->typed_context->-partner->collection_wrapper->get_current( ).
lv_role = lv_partner->get_property( iv_attr_name = 'BP_ROLE' )
IF LV_ROLE = 'SALESEMPLOYEE'
lv_partner_no ?= lv_current->get_property( iv_attr_name = 'BP_NUMBER' ).
endif.
now set the value
lv_employee ?= me->typed_context->salesemployee->collection_wrapper->get_current( )
CHECK lv_employee IS BOUND.
lv_employee->set_property( iv_attr_name = 'SALESEMPLOYEE' iv_value = lv_partner_no )
Thanks & Regards
Raj -
How to set Value from 1 frame to another ?
I am having 2 Frame. Frame A and Frame B. Frame A is having a text Field and a button. When i click on the button on the Frame A, how can p*** the value inside the text field of Frame A into a text Field of Frame B which already prepared. Please help !
Hi,
Use a hidden field and assign the value to this field rather than a variable so that the value could be retained on the page submission and in the AM assign the value to the DB where ever you need it and ignore the value from the actual field, Hope it helps!
Regards,
Yuvaraj -
How to set value from LOV only as a default reference not enforce validate check?
In jdev 11.1.2.3,
By creating List of Value(LOV) for an attribute of a VO, I can get default value for the current VO's attribute from the lookup table, but it will also enforce a validate check for that value.
If I input a value which is not in the lookup table, then errors will raised.
Now I hope I can get default value from LOV, and can also input some new value (and this new value can be insert into the lookup table by a database trigger) for the attribute/field without failure to pass the check.
Any one can help?
Thanks!Hi, Arun
Your suggestion let me get to know how to create a new record in the customeActions facet of inputComboBoxListOfValues, which I donot know before. It's great. and thank you very much.
However, my current issue is a different requirement, let me describe it clearly as:
I have a formlayout to input a field value which can be from a lookup table, or if this value is not in the lookup table then it can also be input without raising value validation check failure.and this new value can be added to the lookup table at the same time.
for example, there is a FK attribute deptno in the EMP table, in a form for editing EMP attributes, user can input deptno value which is already in the DEPT lookup table by selecting from a LOV. also can input some new value which cannot be selected from the LOV, and this new deptno value will be posted to database both in EMP and DEPT table.
The issue is, after create a LOV for deptno attribute in EMP VO, there will be a enforced value validation check, so new values cannot be input in EMP unless it is input into DEPT first.
(http://docs.oracle.com/cd/E37975_01/web.111240/e16182/lists.htm#BABBJFBB)
List of values are designed to return valid values only. As a result, validation rules defined on data source view object attributes will be suppressed.
My question is: how to disable this enforced value validation for a LOV-enabled field?
(There is other means to ensure user will input valid value for this field, for example ask him to double input.)
Thanks again!
bao -
How to set value in combox by code
how to set value in combox by code
Dear
You can use the following code to set the values in combobox by a query
strQuery = "select ItemCode,ItemName from OITM"
oRecSet = Me.SBO_Company.GetBusinessObject(BoObjectTypes.BoRecordset)
oRecSet.DoQuery(strQuery)
oCombo = Me.oForm.Items.Item(encontrolName.colEmpType).Specific
If oRecset.Fields.Count > 0 Then
While oRecset.EoF = False
oCombo.ValidValues.Add(oRecset.Fields.Item(0).Value, oRecset.Fields.Item(1).Value)
oRecset.MoveNext()
End While
End If
Regards
Rupinder -
How to set value for trim and bleed using jsx script?
I have tried using bleedoffsetRect but somehow it is not working. Can anybody please help me on how to set value for trim and bleed using jsx script? Any example will be highly appreciated.
Following is the code I am trying with:
var _saveName = new File ( root_path +_strFileName+".pdf");
var _saveOpts = new PDFSaveOptions();
_saveOpts.printerResolution = 300;
var bleedarray = new Array();
bleedarray[0] =9.00;
bleedarray[1]=9.00;
bleedarray[2]=9.00;
bleedarray[3]=9.00;
_saveOpts.bleedOffsetRect = bleedarray;I would expect although I've not actually tried this for the bleed off set box to be larger than the artbaord and the first two values to be negative or 0…
var bleedarray = new Array(-9,-9,artboard.width+9,artboard.height+9);
Where 'artboard.width' & 'artboard.height' you will have calculated from your file. An Array(9,9,9,9); would not constitute any boxes bounds. -
How to set value to dimension1,2,3 column in AP Invoice?
Dear All,
I have a problem when creating AP Invoice using SAP B1 2005 B DI/API. The problem is when i can not find dimension1, dimension2, and dimension3 properties in oDraft.Lines. (oDraft is my variable for object oPurchaseInvoices).
How to set value to dimension1,2,3 column in AP Invoice using DI/API ?
Regards,
Herfin J.Hi! Yatsea,
I am working with 2007B, In the order reference of B1WS, I found only CostingCode and COGSCostingCode provided:
OrdersService.DocumentDocumentLine.CostingCode() As String
OrdersService.DocumentDocumentLine.COGSCostingCode() As String
Where are the rest 4 dimensions for both of them?
Plus, I also got the XML from DI server, with only one CostingCode exposed.
Thanks
Constantine -
How to set value for radio button in sap crm survey suite
Hi ,
I created a survey in CRM Service, in which I added a question with answer as '10 Selection Button Group ('radio button'). And answer has 11 answer options (which means 11 radio buttions). Now when we test the survey, the value for the radio buttons is appearing like 'id_0050569b03091ee480a29d8ee61e953c'. But i want to set a specific value for each radion button (from 1 to 11). So, how to set value for radio button in sap crm survey suite???.
Thanks & Regards,
SeshuHi,
I found solution myself. Click on Goto -> Editing Mode -> Expert Mode. Now you can set value for radio button.
Regards,
Seshu -
How to set value on MRU insert Tabular Form
This post refers to the forum article found How to set value on MRU insert Tabular Form
I have included the problem and proposed solution below. My problem follows
Problem
Hi,
I am using a Tabular Form. I used the wizard and it created all of the items (Cancel, Submit, Add, Multidelete buttons, etc.). I have a table that is like an FK table. For instance, we could have a customer table, and then a customer address table. Each customer could have multiple addresses. In the address table, the first ID column is the customer ID. So in using the tabular form for the addresses, I need to make the first column the same when I insert. But when I choose add row, everything works fine except it tries to insert a null into customer id. The uniqueness of the row is determined by customer ID and address string.
Any time I make it to this screen, all new rows will have the same ID with I have in a variable that I can reference from the page called :P0_ITM_CUST_ID.
How do I set the first value for all inserts? My guess is I need to do this in Computations. I'm also guessing I need to do this with a replace statement. I'm just not sure how to reference the first column of the new row.
Thanks!
Tim
Solution
The way to do this is by using the "Default" value for that Column. Go to
Home>Application Builder>Application xxx>Page yyy>Report Attributes>Column Attributes
Set the default value for newly added rows as in
http://img237.imageshack.us/img237/5758/screenshot012di2.jpg
Hope this helps.
Un-resolved problem
have also tried to do this but the fields I see are not the same.
Please see screenshot=http://krisjones.freewebspace.com/apex.JPG
I am using the Oracle hosted environment, so 2.2.1.
To my knowledge I have done the same as the user in the first post. Am I doing something incorrectly or should I have created the tabular form differently?
Many thanks. KrisKristian - You see a different version of the form depending on whether the selected column is the primary key column or not.
Scott -
How to read values from DMM4040
Hi,
I am using DMM4040, NI PXI 6509 device.
I need to make some port pins high which i have already done and now i have to read value captured by DMM then i have to make my port pins low if my value is within limits.
Can u suggest me how to read values from DMM and then by notification i ll make my port pins low.
'' A professional is someone who can do his best work when he doesn't feel like it''...........What language are you using? If using LabVIEW, you use the NI-DMM API to communicate with the 4040. Just take your reading, do your limit comparison, and set your lines based on the comparison results.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
How to retrieve value from xml file
hi all,
can somebody pls tell me how to retrieve value from xml file using SAXParser.
I want to retrieve value of only one tag and have to perform some validation with that value.
it's urgent .
pls help me out
thnx in adv.
rituhi shanu,
the pbm is solved, now i m able to access XXX no. in action class & i m able to validate it. The only thing which i want to know is it ok to declare static ArrayList as i have done in this code. i mean will it affect the performance or functionality of the system.
pls have a look at the following code snippet.
public class XMLValidator {
static ArrayList strXXX = new ArrayList();
public void validate(){
factory.setValidating(true);
parser = factory.newSAXParser();
//all factory code is here only
parser.parse(xmlURI, new XMLErrorHandler());
public void setXXX(String pstrXXX){
strUpn.add(pstrXXX);
public ArrayList getXXX(){
return strXXX;
class XMLErrorHandler extends DefaultHandler {
String tagName = "";
String tagValue = "";
String applicationRefNo = "";
String XXXValue ="";
String XXXNo = "";
XMLValidator objXmlValidator = new XMLValidator();
public void startElement(String uri, String name, String qName, Attributes atts) {
tagName = qName;
public void characters(char ch[], int start, int length) {
if ("Reference".equals(tagName)) {
tagValue = new String(ch, start, length).trim();
if (tagValue.length() > 0) {
RefNo = new String(ch, start, length);
if ("XXX".equals(tagName)) {
XXXValue = new String(ch, start, length).trim();
if (XXXValue.length() > 0) {
XXXNo = new String(ch, start, length);
public void endElement(String uri, String localName, String qName) throws SAXException {
if(qName.equalsIgnoreCase("XXX")) {
objXmlValidator.setXXX(XXXNo);
thnx & Regards,
ritu -
How to get value from list item
Hi all,
How to get value from list item?
I have a problem with the List Item object
in the Oracle forms.
How can I retrieve the selected item from
a list ?
I didn't find any function like 'list.GET_
SELECTED_ITEM()'...
thanks
BalaHello,
You get the value as for any other Forms item:
:value := :block.list_tem ;Francois -
How to set value in selectOnemenu using binding
hi all.
i have bind htmlSelectOneMenu. it contains some value. I want to set or display a value after a process.
How to change value
i have tried using setValue method of both binding property and value property of htmlSelectOneMenu.
Same issue is with InputTextArea. how to set value in it via code(RowSelectionListener of icefaces)Balaji wrote:
hi all.
i have bind htmlSelectOneMenu. it contains some value. I want to set or display a value after a process.
How to change value
i have tried using setValue method of both binding property and value property of htmlSelectOneMenu.
Same issue is with InputTextArea. how to set value in it via code(RowSelectionListener of icefaces)The html SelectOneMenu is bound to a value of a backing bean. You have to change the value of that backing bean, not the JSF component directly. JSF takes care of updating the model, you shouldn't be touching it unless you know what you are doing. -
How to set value of a column in report region
Hi,
I have a report region based on a query.In this my first column is selectlist "select row" having to values "yes" & "No".
I have two buttons on top of the region "Check all" and "uncheck all".
My requirement is when I click check all button all rows corresponding to "select row" column gets selected to Yes and when I click No all rows gets selected to "No".
Thanks
VikramActully I want to set the value of a column in report region.
There are replies in the forum but in those the item is in form but not in the report region.
I am generating report region by using htmldb_item.selectlist and i dont know how to set value in these type of items. -
How to set values to the structure containing a node with cardinality 0..n
Hello.
I 'm trying to set values for the node with cardinality 0..n. The node type is "Fields".
<xsd:complexType name="Field">
<xsd:sequence>
<xsd:element name="fieldCode" type="xsd:string"></xsd:element>
<xsd:element name="displayValue" type="xsd:string" minOccurs="0"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Fields">
<xsd:sequence>
<xsd:element name="field" type="tns:Field" minOccurs="0" maxOccurs="unbounded"></xsd:element>
</xsd:sequence>
</xsd:complexType>
I need to set several values for the element "fieldCode" but it has cardinality 0..1 and BPM does not allow it but I did not find any option about how to set values for the structure of type "Fields". Could you help me?
Best regards,
Timur SemenchukHi Marcus,
If there is no way you could change the cardinality of the node, and thus it can contain 0..n items, I think you should create-and-add a new element programmatically.
Since the collection can contain zero elements, I would add a 'new' button, which upon clicking adds one new element via:
IYourNodeElement yourNodeElem = wdContext.nodeYourNode().createYourNodeElement();
wdContext.nodeYourNode().addElement(yourNodeElem);
Hope this explains a bit!
Best,
Robin van het Hof
Maybe you are looking for
-
Nota Fiscal Eletrônica de Importação
Pessoal, Estamos implantando a NFe no cliente que possui processo de importação, porém, estamos com dificuldades no seguinte problema: Para os casos que a empresa realizar uma importação onde a emissão da Nota Fiscal seja no último dia do mês, a merc
-
My home network has an Airport Extreme w/Time Capsule as the base and then an Airport Express and a second Airport Extreme to reach different areas of the house. Is there a way to use the second Airport Extreme for file storage on this network? Net
-
Hi All, We are having a problem in starting the adapter engine after the XI3.0 istallation. The start/stop option for Adapter Framework and Adapters is not enabled in the J2EE visual tool. Can someone help me on this. And can i re-deploy the a
-
Can I make a professional e-newsletter using Pages?
I am trying to make a professional e-newsletter to send to my clients using the Pages program. I do not want to send as PDF files. I want the page/newsletter to be directly read in the body of the e-mail. I was wondering if I could just send an HTML
-
Cocoon question XML 2 HTML translation
I have an xml string like String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><html><body>OK</body></html>"; I want to get a simple HTML! The same! Is it possible? I even don't want complex translations, etc:) BUT I always get an XML(!) output. T