module_data - field = 'attributes', returning null
No idea why this appears 'attributes': null, what other data is returned. Attributes have been added.
Is this a bug or am I missing something.
{module_data resource = 'products' version = 'v3' fields = "id, name, smallImage, attributes, custom1, canonicalUrl" Skip = "0" limit = "10" order = 'id' where = "\ {"createDate": {"$lt"\:'2015-10-01T23:00:00'\}} \" collection = "firstData"} "}
'firstData': {}
"ModuleName": "data."
'moduleDescriptor': {}
'templatePath': null,
«'settings': ' resources =------"products\", version =------"v3\", fields =------'id, name, smallImage, attributes, custom1, cano nicalUrl\', skip =------'0', limit =------"10", order =------"id\", where =------"------{"createDate":------{'$lt':'2015 - 10-01 T 23: 00:00'------}------} \",collection=\"firstData\"»»
"apiEndpoint": "/ api/v3/data."
"objectType":-1,.
'objectId':-1.
'adminUrl ':
},
"items":]
{
"id": 9570356,
"name': 'Protection earmuffs."
"smallImage": "/ Images/store/KCP9VOMBE3/ProtectiveEarmuff_Black_01_v1.jpg"
"attributes ': null,
"custom1:" ","
"canonicalUrl": "/ store/boys/protection-hearing protection.
},
{
"id": 9818505,
"name': 'Mini sleeves earmuffs."
"smallImage": "/ Images/store/S85YLGVVT4/MiniMuffsEarmuff_Lilac_01_v1.jpg"
'attributes': null,
"custom1:" ","
"canonicalUrl": "/ store/boys/resulting-earmuffs.
}
At soon Daniel
Hello
The attribute 'attributes' is obsolete and has the value null , but with the arrival of the attributes product | Developers of enterprise catalyst
You can access the data you need.
I'll update the documentation and push it live soon about this deprecated attribute.
Thank you
Mihai
Tags: Business Catalyst
Similar Questions
-
transient vo attribute binding returns null
I have a form with several components of text entry I created by dropping a collection on the page.
now, I want to add more fields that are transient and read-only.
I added two transient attributes in VO with Never Updatable and queryable true, I don't have the logic yet the expression is empty. I created a label using the control button.
now, I have created two links of value to attribute to these new fields.
I created two text entry fields and used these connections to their label, the value properties. I set readonly and disabled the two true for these text entry fields.
If I hard code the label properties, and the value of input text, it works, if I use for them binding expressions, it throws an error saying not found link for transitional fileds or thery returns null.
Should what steps I use to add a transitional field to an editable form.
jdev 11.1.1.5.0Put the transitional attributes in the underlying OS, refresh the vo and add the attributes of the OT to the vo. Now, they work like any other attribute.
Timo
-
ViewObject get attribute always returns null
Hi guys,.
I need your help, I'm going crazy.
I'm just trying to browse a ViewObject as I did a thousand times but despite getEstimatedRowCount return 1 and the Row inside the SENTENCE object is not null, getattribute always returns null, does not care if I call getAttribute (String) or getAttribut (int)
This is the last code I tested:
AppMod = (PeopleFinderAppModuleImpl) this.getApplicationModule () PeopleFinderAppModuleImpl;
PfUserGetInfoImpl pf_Info = (PfUserGetInfoImpl) appMod.getPfUserGetInfo1 ();
pf_Info.setp_userid (UserID);
pf_Info.executeQuery ();
System.out.println ("# view getEstimatedRowCount:" + pf_Info.getEstimatedRowCount ());
PfUserGetInfoRowImpl r = null;
RowSetIterator rsIterator = pf_Info.createRowSetIterator (null);
While (rsIterator.hasNext ()) {}
r = (PfUserGetInfoRowImpl) rsIterator.next ();
System.out.println ("# AttributeCount:" + r.getAttributeCount ());
String [] uploading = r.getAttributeNames ();
for (int i = 0; i < attrs.length; i ++) {}
System.out.println (I + "" + uploading [i] + "=" + r.getAttributeValues () [i]);
}
}
rsIterator.closeRowSetIterator ();
The output is:
# userid: EPETRANG
# Discovers getEstimatedRowCount: 1
# AttributeCount: 13
0 Userid = null
1 name = null
2 Givenname = null
3 family name = null
4 title = null
5 Dn = null
6 mail = null
7 company = null
8 Department = null
9 Telephonenumber = null
Mobile 10 = null
11 Ipphone = null
Manager of 12 = null
My Env record:
Build JDEVADF_11.1.1.7.0_GENERIC_130226.1400.6493
1.6.0_45 64-bit JVM
Of course, the query returns 1 row SQLDeveloper and ApplicationModule compressiometre is as well.
You see something wrong in the code? I tried to delete and re-create the ViewObject without a bit of luck.
Hi guys,.
Thanks to you all.
This morning I just tried to delete and recreate the Weblogic JDev field and now everything works fine. Looks like that integrated weblogic has been screwed
Thanks again.
-
% ROWCOUNT SQL return null after Forms_DDL on a dynamic SQL
Hello
I'm new to PL/SQL coding and is currently working on the development of some application in Oracle Forms as a result of the 10 g developer.
I'm having a problem getting a number of lines (number of rows affected by the last command dml) to register after using forms_ddl
I tried to replace the global variable with a string 1 potential SQL hard coded, I changed L_rowcount to digital, attempted to directly display rowcount % SQL via dbms_output.put_line... L_rowcount is just empty during the pop-up alert.PROCEDURE P_SQL_UPDATE IS L_string1 VARCHAR2(250); L_string2 VARCHAR2(250); L_string3 VARCHAR2(250); L_string4 VARCHAR2(250); L_rowcount Pls_integer; L_count NUMBER; L_alert NUMBER; BEGIN L_string1 := 'UPDATE ' || :global.G_table_nam || ' SET '; L_string2 := NULL; L_string3 := ' WHERE '; L_string4 := NULL; ... ... building strings 2 and 3 ... :global.final_sql := L_string1 || L_string2 || L_string3 || L_string4; FORMS_DDL(:global.final_sql); L_rowcount := SQL%ROWCOUNT; if FORM_SUCCESS then set_alert_property('ALT_COMMIT_ROLLBACK',ALERT_MESSAGE_TEXT, 'The # of rows affected: ' || L_rowcount || CHR(10) || 'Commit or Rollback?'); L_alert := show_alert('ALT_COMMIT_ROLLBACK'); if L_alert = ALERT_BUTTON1 then commit; else rollback; end if; else set_alert_property('ALT_INFO',ALERT_MESSAGE_TEXT, 'Error: ' || DBMS_ERROR_CODE || ' - ' ||DBMS_ERROR_TEXT); L_alert := show_alert('ALT_INFO'); end if; END;
Another solution has been L_rowcount: = DBMS_SQL. LAST_ROW_COUNT; ... This gives a slightly different result in the alert window, instead of being white, it returns 0. If something is definitely not right. Another is that in doing so, he always returned null/one field blank on the alert popup.
I have run tests on SQL % number of lines in the editor of TOAD and got results, but during the actual shape that l_rowcount is always null after the execution of the procedure (with the exception of being 0 using the dbms_sql.last_row_count).
I want to emphasize that change is not introduced without the additional validation in the FORM_SUCCESS at the end... I had read that the Forms_DDL is an implicit validation and committing the SQL without anything else happening... This seemed a little odd as well.
Before forms_ddl, I tried to use execute, exec, or run immediately on the SQL, but nothing helped. I think of one other option would be to pass this SQL to a datablock again together and use to execute query on this block? Don't know how to go about it.
The purpose of this form is intended for users to enter values in a generic form and when he meets the validation in the field triggers, they will support on submit and ideally before the update is committed I want users to be notified of the # of lines that would be affected by their proposed... change so if the # is huge they will know that they did something wrong before they affect the entire database.
Any input would be appreciated,
TravisTravis,
The built-in function Forms_DDL() emits an implicit VALIDATION because the transaction is issued as DDL no DML. Therefore, given that the VALIDATION is the last command issued by the call of Forms_DDL, the attributes of the cursor of the implicit cursor (SQL) will all be set to NULL. If you absolutely must have the number of LINES of the documents concerned, you can create a database program unit that you can spend your dynamic statement too and have it return zero (failure) or the number of affected records (success).In addition, since Forms_DDL() emits an implicit VALIDATION, you must create a BACKUP point before calling Forms_DDL() If you want the ability to RESTORE any changes made in the call to Forms_DDL().
Hope this helps,
Craig B-)If someone useful or appropriate, please mark accordingly.
Published by: Silvere July 26, 2011 09:29
-
Need help with ics. SQL return null
Hi experts WCS.
I have this ics. SQL statement that returns an IList as null and nothing in the errStr in debugging print.
IList rsATypes is ics. SQL (, sqlATypes, listName, limit, bCache errStr);
The code is in one of my jsp. He ran very well in my local JSK (HyperSQL Db), but returns NULL in the case of Test (Oracle DB, if this is another).
I got the sql statement println during execution and run it directly in Oracle DB (same instance) it returns the expected result set.
The code snippet:
System.out.println("## ics.GetSSVar(\"pubid\") : " + ics.GetSSVar("pubid")); // Get Attribute Types String sqlATypes = "SELECT DISTINCT assetpublication.assettype " + "FROM assetpublication " + "LEFT JOIN approvedassets " + " ON assetpublication.assetid = approvedassets.assetid " + "WHERE pubid = '" + ics.GetSSVar("pubid") + "' " + "AND (tstate is null OR tstate <> 'A') " + "AND (voided is null OR voided <> 'T') " + "ORDER BY assettype; "; System.out.println("##0126 sqlATypes : " + sqlATypes); String from = "AssetPublication, ApprovedAssets"; // String listName = null; String listName = "ATypesList"; int limit = -1; // boolean bCache = true; boolean bCache = false; StringBuffer errStr = new StringBuffer(""); ics.ClearErrno(); IList rsATypes = ics.SQL(from, sqlATypes, listName, limit, bCache, errStr); System.out.println("## rsATypes : " + rsATypes); if (rsATypes == null) { System.out.println("## NO DATA in rsATypes! errStr : " + errStr.toString());
}
The journal:
## ics.GetSSVar("pubid") : 1374097570685 ## sqlATypes : SELECT DISTINCT assetpublication.assettype FROM assetpublication LEFT JOIN approvedassets ON assetpublication.assetid = approvedassets.assetid WHERE pubid = '1374097570685' AND (tstate is null OR tstate <> 'A') AND (voided is null OR voided <> 'T') ORDER BY assettype; ## rsATypes : null ## NO DATA in rsATypes! errStr :
I got enclosing try catch block, who did not take any exception.
The funny thing is, in the same piece of code, an ics. Casea used already worked (which I noticed outside because there was not enough for what I want to do):
StringBuffer errSB = new StringBuffer(""); ics.SetVar("assetid", id); IList approvedAsset = ics.SelectTo("ApprovedAssets", "state,voided,tstate,locked,reason,treason", "assetid", null, -1, null, true, errSB);
Any help/ideas from anyone would be really appreciated.
Thanks Guddu1223, I discovered why.
The SQL statement cannot end with a semicolon (see line 11 of my original above codes). Delete who had back all the records provided for in my resultset in the IList.
The reason why it works in my local, but not stable instance that I guess is my local JSK + HyperSQL, in WCS + Oracle DB instance trying...
-
OAMessageStyledTextBean getText() or GetValue returns null
Description of the problem
---------------------------------------------------
Hello
I try to retrieve a value from the field messagestyledText on the standard page R12.
When I use the code below in the extended controller, it returns null. However a code works fine in another page.
Please, advise.
Thank you.
' Public Sub processFormRequest (OAPageContext oapagecontext, OAWebBean oawebbean)
{
OAMessageStyledTextBean oamessagestyledtextbean = (OAMessageStyledTextBean) oawebbean.findChildRecursive ("SubmitComments");
String s1 = oamessagestyledtextbean.getText (oapagecontext);
String s2 = (String) oamessagestyledtextbean.getValue (oapagecontext);
String message = "s1 =" "s1 + s2 plus" + s2;
throw new OAException (message, OAException.WARNING);
}
Thank you... Yes, in fact, he was placed by one of the oapagecontext.getTransactionValue... problem solved. I am able to get a value of oapagecontext.getTransactionValue now
-
How can I run my validations after confirming that a specific field is not NULL?
Hello
How can I run my validations after confirming that a specific field is not NULL?
One of my validation needs to ensure that a specific page element is not NULL, then I use the option 'required value' of the page element, but it seems that the validation is performed before the option "required value.
I know I could create 2 different validations for each case, but I think it would be nicer if I could work through the only validation and leave the APEX to manage the field validation is NOT NULL
Best regards and thanks for reading
According to my experience, it appears that the APEX is going through all THE postings...
IE, if a "failure" of Validation continues.
It's actually beneficial for the end user, because it will get ALL the errors in the form he or she made... not just a first.
workaround solution:
- Remove the 'required' on the element value (.. but keep the "required" model)
- Add the NOT NULL check to your personal validation process.
Very probably, the 2nd one will be in a PL/SQL function return error text.
MK
-
iter.getRowSetIterator () .getPixel (key) always returns null
Hello
I use jdev 11.1.2.2.
I'm trying to get the rank of an iterator to view using the key object
No idea why this is happening?for (int i = 0; i < selectedCategory.size(); i++) { Key key; Object[] keyValues = new Object[2]; keyValues[0] = getCurrentAssetCategoryId(); keyValues[1] = getSelectedCategory().get(i); key = new Key(keyValues); Row row = iter.getRowSetIterator().getRow(key);// Keeps returning null even though the value is present in the view object row.setAttribute("Attribute", "value");
Thanks in advance,
RakeshHi Rakesh,
Hope this link will help you.
http://samuris.com/forum/index.php/topic/22-find-row-key-ADF
Thank you
Yohanna. -
FND_PROFILE. VALUE('ORG_ID') returns null
Hello world.
FND_PROFILE . VALUE ('ORG_ID') always returns Null when I select double as follows
SELECT FND_PROFILE. VALUE('ORG_ID')
FROM DUAL;
OR if I'm doing assignment as follows
*: V_ORG_ID: = FND_PROFILE. VALUE ('ORG_ID'); *
What is causing the problem, it's a configuration problem or what?What is your version of the application?
Please see these documents.
After the Patch 8222387 why Fnd_profile. Value('Org_id') return no value [ID 784279.1]
Conc programs using the Fnd_profile parameter. Value (Org_id) Get Apps-Fnd-01436 [ID 784489.1]
FND_PROFILE. VALUE('ORG_ID') returns-1 [1235274.1 ID]
Package Fnd_Global - Fnd_Global.Resp_Id, Fnd_Global.Form_Id, Resp_Id, $form_id, Form_Appl_Id are equal to-1 [960111.1 ID]
An incorrect value in the block: field $ $ $Profiles: Org_id [876402.1 ID]Thank you
Hussein -
Goal unattainable '<; beanInstanceName >;' returned Null
Hi all
I attend ADF of Oracle University training. Today is the last day of training. I'm having some problem with running a simple application and could not get the right answer for the sub question.
Created a Fusion WebApplication 'Test' with model and ViewController project.
Created a ManagedBean "TestBean", Taskflow 'TestFlow', page Jsff in taskflow 'TestJsff' and a 'TestJspx '.
Recorded the TestBean with Taskflow in the request scope.
Created a property String name = 'Ram' in Bean managed with the accessor of the property.
Created an outputText component the TestJsff and set the value property to "#{requestScope.TestBean.name}".
Dragged the TestJsff Taskflow and TestFlow to TestJspx.
Running the page TestJspx and I see the mistake 'Inaccessible TestBean Target returned null.'
I don't know what to do?
Thanks in advance...
RajdeepIt is a common mistake with EL.
The problem is that #{requestScope.Beanname.attribute} refers to only the objects (beans) in memory, but do not create them when they aren't there. So you get a NPE if you are referring to a bean the first time (when it is not instantiated already). This is true for all scopes in JSF (request, session and application).
Other scopes added by the life cycle of ADFrc (view, pageflow and backingbean) behave different due to the extended ADFrc controller. The controller looking for these special glasses and manages (for example to create them the object if it is not there).Frank Nimphius recorded a screen expressed about common mistakes using ADF. If you want, you can watch it here:
http://download.Oracle.com/otn_hosted_doc/JDeveloper/11gdemos/classic_api_mistakes_part2/classic_api_mistakes_part2.htmlTimo
-
I have used FieldName.rawValue several times in the past in JavaScript on my forms without any problems. But for some reason it is now return NULL in a new code that I write. I have code in the 'complete' event a field where I'm trying to access the value of the raw field:
this.xfa.form.Ultra_Form.Page2.Assistance_Phone.rawValue
.. .but every time I do anything with this property, I get NULL. I tried on the events 'full' elsewhere, but get the same result. Any ideas?
I don't think that the rawValue will be filled until you exit the field. The ful levent is perhaps too early... try the xfa.event.newText instead of the fieldName.rawValue to get what the user typed. I can't validate that I'm not at a computer that has the designer at the moment... so it's a guess.
Paul
-
getCharBoundaries returns null
Hello
I'm trying to reduce the text field for the simple letters and then make some animations on each letter. But, how can I find out where (position) the letters? I tried to use getCharBoundaries, but when she reached the 3rd line, it keeps returns null values. Someone knows why this happens? And what is perhaps the best way to cut text to the letters/words/strings fields?
Thank you
This method can not handle the paragraph characters (\n). You can expect the same problem with tabs and carriage return.
to remedy this, strip out and replace it with something that you can only detect a loop in the text of your main textfield.
-
Problem with accessing dynamically created video clips, returns null.
I hope that it's a dumb question with an easy answer, if my code is pretty simple.
I use this code snippet to create menu items, then use the variable jCount below to give the clips a like number, index in so much of (which seems to work very well):
for(var j:Number=0;j<xmlSubMenuLength;j++){ var mcSubMenuItem:mcSubMenu=new mcSubMenu(); addChild(mcSubMenuItem); jCount++; mcSubMenuItem.name = "mcSubMenuItem" + jCount; //traces out names correctly trace ("---------------------------------jCount NAME = "+ mcSubMenuItem.name); mcSubMenuItem.x=mcMenuHolder.x+20; mcSubMenuItem.y =mcMenuHolder.y; mcSubMenuItem.y+= nextBtnY; nextBtnY+=subtopicSpace; global_subi.text = String(jCount); //i see the proper count of 10 in the text field }
However, when I try to access the clips using this snippet:
for(var j:Number=0;j<Number(global_subi.text);j++)// { trace("GLOBAL SUBI = "+ String(global_subi.text)); //traces out 10, which it should var scSubMenuItem:String = "mcSubMenuItem" + j; var scSubContent:Object = this.getChildByName(scSubMenuItem); trace(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>scSubContent:Object = "+ scSubContent); //returns null! }
My last trace statement returns null. Anyone can see my mistake, or explain why I can't access my videos after they have been created?
Thanks muchly,.
~ Chipleh
You are welcome.
-
Get.get ('XML') returns Null
I use AJAX in my program to recover the city and the State of the ZIP Code entered. It used to work now it isn't and I don't know why. I have not changed at all the javascript or the application process. During the decoding of the javascript, I discovered that get.get('XML') returns NULL.
The javascript is as follows:<script language="JavaScript" type="text/javascript"> <!-- function pull_multi_value(pValue){ var get = new htmldb_Get(null,html_GetElement('pFlowId').value, 'APPLICATION_PROCESS=SET_CITY_STATE',0); if(pValue){ get.add('TEMPORARY_APPLICATION_ITEM',pValue) }else{ get.add('TEMPORARY_APPLICATION_ITEM','null') } gReturn = get.get('XML'); alert('gReturn'+gReturn); if(gReturn){ var l_Count = gReturn.getElementsByTagName("item").length; for(var i = 0;i<l_Count;i++){ var l_Opt_Xml = gReturn.getElementsByTagName("item");
var l_ID = l_Opt_Xml.getAttribute('id');
var l_El = html_GetElement(l_ID);
if(l_Opt_Xml.firstChild){
var l_Value = l_Opt_Xml.firstChild.nodeValue;
}else{
var l_Value = '';
}
if(l_El){
if(l_El.tagName == 'INPUT'){
l_El.value = l_Value;
}
else if(l_El.tagName == 'SPAN' &&
l_El.className == 'grabber'){
l_El.parentNode.innerHTML = l_Value;
l_El.parentNode.id = l_ID;
}else{
l_El.innerHTML = l_Value;
}
}
}
}
get = null;
}
//-->
</script>
DECLAREThe on-demand process is as follows:
v_county VARCHAR2 (25);
v_city VARCHAR2 (25);
v_state VARCHAR2 (2);
v_zip varchar2 (5);
CURSOR cur_c
IS
SELECT the County, city, State, zip
OF ZIP
WHERE zip = v ("TEMPORARY_APPLICATION_ITEM");
BEGIN
HTP.p (: TEMPORARY_APPLICATION_ITEM);
C BY cur_c
LOOP
v_city: = c.city;
v_state: = c.state;
v_zip: = c.zip;
v_county: = c.county;
END LOOP;
OWA_UTIL.mime_header ("text/xml", FALSE);
HTP.p ('Cache-Control: non-cache');
HTP.p ('Pragma: non-cache');
OWA_UTIL.http_header_close;
HTP.prn ("< body >");
HTP.prn ("< desc > This XML genericly defines several elements < / desc > '");
HTP.prn ("< item id ="P2_CO_CITY"> ' |") v_city | ("< / item >");
-HTP.prn ("< option id ="P2_CO_STATE"value ="' | c.state |) '">' || c.State | ("< / option >");
HTP.prn ("< item id ="P2_CO_STATE"> ' |") v_state | ("< / item >");
HTP.prn ("< item id ="P2_COUNTY"> ' |") v_county | ("< / item >");
HTP.prn ("< item id ="P2_CO_ZIP"> ' |") v_zip | ("< / item >");
HTP.prn ("< / body >");
EXCEPTION
WHILE OTHERS
THEN
OWA_UTIL.mime_header ("text/xml", FALSE);
HTP.p ('Cache-Control: non-cache');
HTP.p ('Pragma: non-cache');
OWA_UTIL.http_header_close;
HTP.prn ("< body >");
HTP.prn ("< desc > This XML genericly defines several elements < / desc > '");
HTP.prn ("< item id ="P2_CO_CITY"> ' |") SQLERRM | ("< / item >");
HTP.prn ("< / body >");
END;
onChange = "pull_multi_value (this.value); »The javascript is run when someone tabs out of P2_CO_ZIP_LOOKUP. The HTML Form Element Attributes is:
I ran the SQL statement from the On-Demand Process (ODP) in SQL Workshop and it worked fine. It doesn't work using FF or IE7 at my company but iIt works fine on APEX.ORACLE.COM. I tried using Firefox but could not find the cause of the problem. Login Credentials: Workspace: RGWORK Application: Online Certification Application Prototype (21405) User: tester Password: test123 Page : 2 (Name and Address) Can someone help me? Thanks, Robert http:\\apexjscss.blogspot.com Edited by: sect55 on Mar 24, 2010 9:52 AM
Hello:
The AJAX call that happens from a public page? If so replace the '0' in the instantiation of the 'htmldb_Get' $v ('pFlowStepId').
CITY
-
getAttribute() method of a view object returns NULL
Hello
I am currently implementing PPR in one of my OFA page and I took the following approach.
I stated the Boolean attribute transitional follwing in the VO() outside of the existing attribute 'sense '.
1 MfgEnttity
2 MfgAcct
3 MfgSubAcct
4 MfgCc
5 MfgProj
In the page I used these attributes in the property made in the form "${oa." XXR2RMfgproSegVO.MfgSubAcct}' like that.
Now, in the central, I wrote the following code.
' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)
{
super.processRequest (pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule (webBean);
am.invokeMethod ("initializeXXR2RMfgproSegVO");
}
' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
{
super.processFormRequest (pageContext, webBean);
Event string = pageContext.getParameter (EVENT_PARAM);
Source of the string = pageContext.getParameter (SOURCE_PARAM);
Am = (OAApplicationModule) pageContext.getApplicationModule (webBean) OAApplicationModule;
am.invokeMethod ("handleSegmentChangeEvent");
}
}
And the AM code is as follows:
Public Sub initializeXXR2RMfgproSegVO()
{
OAViewObject vo = getXXR2RMfgproSegVO();
If (!) VO.isPreparedForExecution ())
vo.executeQuery ();
Line = vo.createRow ();
vo.insertRow (row);
row.setNewRowState (Row.STATUS_INITIALIZED);
}
Public Sub handleSegmentChangeEvent()
{
PVO OAViewObject = (OAViewObject) findViewObject ("XXR2RMfgproSegVO");
OARow hdrRow = (OARow) pVO.getCurrentRow ();
String status = (String) hdrRow.getAttribute ("Meaning").
System.out.println ("poRow" + hdrRow.toString ());
System.out.println ("value of the State is" + status);
If ("Entity". Equals (Status))
{
hdrRow.setAttribute ("MfgEnttity", Boolean.TRUE);
hdrRow.setAttribute ("MfgAcct", Boolean.FALSE);
hdrRow.setAttribute ("MfgSubAcct", Boolean.FALSE);
hdrRow.setAttribute ("MfgCc", Boolean.FALSE);
hdrRow.setAttribute ("MfgProj", Boolean.FALSE);
} else
If ("Account". Equals (Status))
{
hdrRow.setAttribute ("MfgEnttity", Boolean.FALSE);
hdrRow.setAttribute ("MfgAcct", Boolean.TRUE);
hdrRow.setAttribute ("MfgSubAcct", Boolean.FALSE);
hdrRow.setAttribute ("MfgCc", Boolean.FALSE);
hdrRow.setAttribute ("MfgProj", Boolean.FALSE);
} else
If ("Subaccount". Equals (Status))
{
hdrRow.setAttribute ("MfgEnttity", Boolean.FALSE);
hdrRow.setAttribute ("MfgAcct", Boolean.FALSE);
hdrRow.setAttribute ("MfgSubAcct", Boolean.TRUE);
hdrRow.setAttribute ("MfgCc", Boolean.FALSE);
hdrRow.setAttribute ("MfgProj", Boolean.FALSE);
} else
If ("cost Center".equals (status))
{
hdrRow.setAttribute ("MfgEnttity", Boolean.FALSE);
hdrRow.setAttribute ("MfgAcct", Boolean.FALSE);
hdrRow.setAttribute ("MfgSubAcct", Boolean.FALSE);
hdrRow.setAttribute ("MfgCc", Boolean.TRUE);
hdrRow.setAttribute ("MfgProj", Boolean.FALSE);
} else
If ('Project'. Equals (Status))
{
hdrRow.setAttribute ("MfgEnttity", Boolean.FALSE);
hdrRow.setAttribute ("MfgAcct", Boolean.FALSE);
hdrRow.setAttribute ("MfgSubAcct", Boolean.FALSE);
hdrRow.setAttribute ("MfgCc", Boolean.FALSE);
hdrRow.setAttribute ("MfgProj", Boolean.TRUE);
}
on the other
{
hdrRow.setAttribute ("MfgEnttity", Boolean.FALSE);
hdrRow.setAttribute ("MfgAcct", Boolean.FALSE);
hdrRow.setAttribute ("MfgSubAcct", Boolean.FALSE);
hdrRow.setAttribute ("MfgCc", Boolean.FALSE);
hdrRow.setAttribute ("MfgProj", Boolean.FALSE);
}
}
}
Now when I change in the value of the attribute "Meaning" page that he can always get into the else part, which is where all the attributes are 'False'.
The two System.out.Println statements return the following values.
03/10/22 15:41:08 poRow xxr2r.oracle.apps.gl.coam.poplist.server.XXR2RMfgproSegVORowImpl@3
03/10/22 15:41:08 state value is null
Can you please why this 'status' returns NULL and how I can get the current selected line in the page?
Thank you
LucileHello
you set the attributes of PVO, based on a condition, your old code is just the question is from where you can get the status, you may get this page, but you must pass this value to AM.
thanx
Pratap
Maybe you are looking for
-
Favorites restore previously synchronized via email Firefox
HelloHow can I restore previously synchronized Favorites in Firefox to e-mail
-
Screen fades little matter what I do. TPT2
So, I want my screen to never reduce or go to sleep, when I go into power option I never do a new plan with the brightness and never put the computer to sleep. I ve also tunred off the coast of the sun light sensor auto bright. Yet through every 2 mi
-
After Reinstalling windows xp, I can't get the updates, I get Ox802490036 error it would prevent even me to help live Center of microsoft update... .Please can someone help me
-
Difficulties to download KopyMac
You just bought a Sansa Clip + 8 GB. I have a Mac (OS X10.5 with Firefox) and am having the same problem as many other people have discussed here... it's 'ghosts' files that appear in the menu song of the Clip with the. _ at the beginning of the file
-
Sync of DM of blackBerry Smartphones 'are not connected to the internet.
I have the BB Curve 8330. I HAD DM 4.3. I bought the new computer, with Windows 7, and I downloaded the latest version of the DM. Now the message says that you are not connected to the internet. I did a lot of research today, and I do not understand