Af:query for transients attribute in VC and NO DATA after RowMatch
Hi,
I have a VO having two transient attributes (example, JoinDate, DeptName) out of which DeptName defined as LOV. I have a VC VC which run on 'database' mode and DeptName present in this VC and having default value like 'Computer'. VC configured to run automatically so that on page load data should display.
Next, I have a af:query from this VC on jasff page. Before page load programatically we define query criteria and on page load query runs fine and data display on UI.
Issue here is,
When we add one more transient attribute JoinDate from 'Add Fields' (without adding any data) and click on submit we don't get data even if page load query is same as this query. Change is only a new attribute added from Add Fields and it not having any value.
The changes observed in log is that, when we add one more criterion attribute JoinDate OR DeptName we find below entry in the log.
VCs converted to RowMatch: ( (UPPER(DeptName) LIKE UPPER(vc_type1) ) )
This means after query execution framework doing RowMatch for transient attribute WHICH IS PRESENT IN VC. Here freamework passing vc_type1 as null. So we are not getting any rows.
I have tried like
before VO executeQuery, setRowMatch(null) but NO luck.
before VO executeQuery, setRowMatch("DeptName='Computer'") but NO luck.
So please suggest me How Can we avoid RowMatch execution after execute query ?
If not, how to get data which we got from executeQuery ?
Please suggest.
Similar Messages
-
Visible property for transient attribute.
Hi,
I am using J developer 11g Release 2.In my page i need to set the visible property for the transient attribute(conform password) because the transient attribute needs to be disable for some condition.I have tried but the property was working only when the attribute is not transient.Can we set the property for transient attribute?
Help me on this..
Thanks,
Suganya.
Edited by: Suganya on Feb 27, 2012 1:40 AMDisabling the visbile property:
<af:inputText autoSubmit="true" id="it6" label="Table Attr"> </af:inputText>
<af:inputText partialTriggers="it6" visible="#{bindings.AphdBe.inputValue eq null? 'false' : 'true'} " id="it2" label="Trans Attr"> </af:inputText>like this you should h'd.
normally we use transiet term in vo's while coming to part ui.
it will consider as attribute. no thing difference bwtn those attribute as timo says.
--edited lately. -
Initial vale in a Query for Transient Query
I need to set the value of a transient attribute of my view object when when query execute. PorDesc = 1-(NewPrice/OldPrice*100).
how can i do it? how can i set value in a query execution of the viewObject?
my jdeveloper version is 11.1.2.3
<ViewAttribute
Name="ProdNum"
PrecisionRule="true"
EntityAttrName="ProdNum"
EntityUsage="eoProductos"
AliasName="PROD_NUM"/>
<ViewAttribute
Name="OldPrice"
PrecisionRule="true"
EntityAttrName="OldPrice"
EntityUsage="ListaPrecioDetalle"
AliasName="OLD_PRICE">
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="model.vo.voListaPrecioDetalle.PrecioLista_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="NewPrice"
PrecisionRule="true"
EntityAttrName="NewPrice"
EntityUsage="ListaPrecioDetalle"
AliasName="NEWPRICE">
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="model.vo.voListaPrecioDetalle.Precio_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="PorDesc"
IsQueriable="false"
IsPersistent="false"
PrecisionRule="true"
EntityAttrName="PorDesc"
EntityUsage="PrecioDetalle"
AliasName="$none$">
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="model.vo.voListaPrecioDetalle.PorDesc_LABEL"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>Hi.
In the VO editor, click on your transient attribute. In the « details » tab, go to the « default value » section and select the « expression » radio button. Click the pen icon, and type 1-(NewPrice/OldPrice*100) as the expression (NewPrice and OldPrice must be the attribute names). At the bottom of the dialog, select NewPrice and OldPrice as the dependent attributes, which will ensure proper integrity for the value of the transient attribute.
Best Regards,
Frédéric. -
Dirty check for transient attributes in view object
Hi,
I am using JDeveloper 11.1.1.4 and ADF BC in my project.
In one of my view objects,I have a transient attribute added for some business logic.
I am doing dirty check in my project as below.
boolean dirty = false;
boolean amDirty = false;
// check application module
ApplicationModule am =
getBindingContainer().getDataControl().getApplicationModule();
amDirty = am.getTransaction().isDirty();
//Check if datacontrol is dirty
BindingContext bctx =
oracle.adf.controller.binding.BindingUtils.getBindingContext();
dirty =
bctx.findDataControlFrame(bctx.getCurrentDataControlFrame()).isTransactionDirty();
return amDirty || dirty;
My requirement is that,I dont want the dirty check to be applied on the transient attribute in the view object.
Is there any way to achieve this.Please advice...
Regards,
PraveenHi Frank,
Thanks for the suggestion.
I followed the link.But if a transient attribute is modified,then also ((ApplicationModule)getDataProvider()).getTransaction().isDirty() is returning true and the transaction is made dirty.
I am setting a transient attribute like this getNwOperVOIter().getCurrentRow().setAttribute("AcctNoTrans")....when I am editing a row.
Can I get explicit handle at viewobjectimpl for this transient attribute??
Regards,
Praveen -
Property not settable error - it is a bug for transient attributes
In WLI 8.1 I get the following error in Workshop on a Client Request method:
"Property <name of transient attribute> of type <Java object type> is not
settable and cannot be unmarshalled from XML."
In my opinion it is an error, because it tries to serialize and deserialize
a TRANSIENT attribute via XML, which should
NOT be serialized at all (that's why it is transient).
Regards,
Robert VargaRoam,
Thanks again for your suggestion,
"Furthermore one should always Repair Permissions both before doing a Software Update and again afterwards."
I honestly dont know anything about this "Repair Permissions" from the name, i though it is a verification of authentication to repair OS or some kind of credential issue, and since i m admin user then there is no point to verify it, i should be allowed to do so. Again it is my first time to do this thing in 3 - 4 years of using panther, every time i update software i never ever do this! If this step is essential for every update and installation why dont apple put them as one of TODO step during the processes (as licensing agreement) instead of keep them as an option (just my thought) Anyway, I m glad u tell me about it, and i will give it a shot tonight.
"That may because you didn't have sufficient disk space. In fact running out of disk space can create all sorts of problems. Please tell me how disk space is available on your
start up drive."
That what I thought coz i have only 5.x GB left in 60 GB HD. Thats why I claimed as whining and have to scarify the lost of data by reinstall panther in order to get my mac back to work
"So are you saying it is a bug or it is a hacker, I don't believe it is either"
Please see second update info about password, and i m not impose anyone to believe, thats why the topic is a questioning sentence "Is this a bug.."
"This Discussion site is not Applecare. The people here give their time voluntarily to those who are receptive to help."
Thats why i ask for "mac expert" not "apple authority/technician" and always appreciate any suggestion.
Anyway, that great to hear from you and i have learned new thing from your suggestion. I will let u know when i have tried it. -
Transient attribute in viewobject and entity object
i added a transient attribute to an entity object . Then, for the view object based on that entity object, i added this transient attribute. The attribute name is Department Description. When i display the record(s) from this view object, everything is cool. But, when i try to create/insert a new record, i get error:
JBO-27019: Get method for attribute "DepartmentDescription" could not be resolved. What is going on here and what do i need to change to create/insert a new entity row which has a transient attribute?
As well as i added trasient attribute in view object also ....same erroe is comming ..................
Thanks inadvanceHello Siva,
have you already solved your problem?
I have a very similar error.
Thanks.
Peter -
Migration issue on default value for transient attribute in 11.1.2
Experts,
I migrated my JDev 11.1.1.5 project to JDev 11.1.2. After successful migration i began to run the project and it ran without issue. In the application however when i clicked on any link or button i get the following exception
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=Cannot get property 'saleType' on null object
Caused by: java.lang.NullPointerException: Cannot get property 'saleType' on null object
at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:56)
at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:154)
at org.codehaus.groovy.runtime.callsite.NullCallSite.getProperty(NullCallSite.java:29)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:237)
at bc4j_com_xxx_portal_model_uiView_SaleVO_SaleTypeTransient_null_gs.run(bc4j_com_xxx_portal_model_uiView_SaleVO_SaleTypeTransient_null_gs.groovy:1)
at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:1200)
In my SaleVO i have a transient attribute whos value is set as
adf.userSession.userData.saleType == 'ORGANIZATION' ?
'LOV_PartyTypeOrg' : 'LOV_PartyType'When i print the value from user session i am getting a value there, so a bit confused about the NPE here.
Please advice
Jdev 11.1.2Hi,
this is something you should report to customer support to have them looking at this and helping you out
Frank -
Query for Customer site Phone number and Fax number in Oracle Apps
Dear All,
Can anyone guide me how to write qurey for Customer site phone number and Fax number for Acive customers.
Thanks in advance.
Best Regards
NRCHi Team,
This is a shipping report in header level we have the customer information with site address. The requirement is along with site address we need to show the phone number and Fax number .For this we need to write the formula column.Thes are the comes through HZ parties only. I have no idea how to achieve this.
Best Regards
NRC -
ABAP User Roles and Query for accessing particular T- codes and Reports
dear Gurus
I have one problem, i want to know about ABAP User Query ,i have one requirement my user wants to Lock all the HR Std versus Customized reports in T- code SQ01,other department peoples also see the Payslips and Hr personal reports which is harmfull to the dept so i want to Lock all the reports in Std T- code in SQ01 and i have created one Customized User Roles or Query in which the T-codes and Reports are assigned only those particular user can access the T-codes and Std reports .how can it be possible i dont have any idea about user roles and Queries .
kindly help me out or send me some documents related to user roles and queries
regards ritesh sharmaHi Ritesh,
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/103cafc2-7a64-2b10-14b3-eddb7d324561
Regards,
Flavya -
SAP query for asset report with retirement and depreciation retirement
Hi Expert,
Can anyone tell me in table ADA which filed is holding the figure of retirement and retirement depreciation?
Thank oyuHi,
Max.
For your question you can check the tables ANEP for asset transactions line items and for asset value fields you can check out ANLC.
I hope this may help you.
If you have any doubts feel free to ask.
Regards,
Pankaj A Bhalerao. -
To get first date and end date after entering any month and year
Hi,
I need to to get first date and end date of a month and year in yyyyMMdd format. I am reading month and year from a properties file. But I don't know how to get the first date and End date in given format. The properties file gives me just text. But I don't know how to get the date format using this. I need this urgently. Can anyone help me to get code for this?
I am reading the fields as,
Properties props = new Properties();
props.load(new FileInputStream("AnyMonthVolume.properties"));
String date_month = props.getProperty("date_month");
String date_year = props.getProperty("date_year");
Thanks.I know this has been posted a while ago but incase someone looking for it, here is the code to get the end of current month date.
Calendar cal = Calendar.getInstance();
cal.setTime(new java.util.Date());
cal.set(Calendar.DATE, 1); //set the date to start of month
cal.add(Calendar.MONTH,1);
cal.add(Calendar.DATE,-1);
System.out.println(cal.getTime()); -
Need help regarding complex calculation using Max value and limiting data after Max date in MDX
I am working on a bit complex calculated measure in SSAS cube script mode.
Scenario /Data Set
Date
A
B
C
A+B
5/29/2014
Null
34
Null
34
6/30/2014
Null
23
45
68
7/15/2014
25
-25
Null
0
8/20/2014
-34
Null
Null
-34
9/30/2014
25
Null
60
25
10/15/2014
45
-45
Null
0
11/20/2014
7
8
Null
15
a) Need to capture latest non-null value of Column C based on date
with above example it should be 60 as of 9/30/2014
b) Need to capture column A+B for all dates.
c) Add values from column (A+B) only after latest date which is after 9/30/2014.
with above example it's last 2 rows and sum is 15
d) Finally add value from step a and step c. which means the calc measure value should be = 75
I need to perform all this logic in MDX. I was able to successfully get step a and b in separate calc measure, however i am not sure how to limit the scope based on certain date criteria. In this case it's, date> Max date(9/30/2014) . Also how should
i add calculated members and regular members?
I was able to get max value of C based on date and max date to limit the scope.
CREATE MEMBER CURRENTCUBE.[Measures].[LatestC] AS
TAIL(
NONEMPTY(
[Date].[Date].CHILDREN*[Measures].[C]),1).ITEM(0) ,visible=1;
CREATE MEMBER CURRENTCUBE.[Measures].[MaxDateofC] AS
TAIL(
NONEMPTY(
[Date].[Date].CHILDREN,[Measures].[C]),1).ITEM(0).MemberValue ,visible=1;
Please help with Scope statement to limit the aggregation of A+B for dates > MaxDateofC? Also further how to add this aggregation value to LatestC calc measure?
Thank YouHi Peddi,
I gave TRUNC to both of the dates. But still the same issue. I think the problem is in returning the BolbDomain.
return blobDomain;
} catch (XDOException xdoe) {
System.out.println("Exception in XDO :");
throw new OAException("Exception in XDO : "+xdoe.getMessage());
catch (SQLException sqle) {
System.out.println("Exception in SQL :");
throw new OAException("SQL Exception : "+sqle.getMessage());
catch (OAException e) {
System.out.println("Exception in OA :");
throw new OAException("Unexpected Error :: " +e.getMessage());
Thanks and Regards,
Myvizhi -
How to query for XML-attribute with XPATH
Hi,
Isn't there somebody, who can tell me how to query an Attribut of an XML-element correctly ?
All my trials lead to empty rows. What's worng in my XPATH-expresion ?
XML-file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<xmlexport>
<itsystem guid="e51b91d1-ab0f-11db-2cd7-001641105333">
<field fieldidentifier="currentVersion" />
<field fieldidentifier="marketdatacosts">0</field>
I can query fine the elements and sub-elements, but not attribute 'guid' of /xmlexport/itsystem. Here some trials, all lead
SELECT t.* FROM CORIA."xmlexport156_TAB", xmltable ('/xmlexport/itsystem ' passing object_value COLUMNS
GUID VARCHAR2(1000) path '[@guid=*]') t
various versions for Xpath:
path '[@guid="*"]'
path '/[@guid=*]'
path '[@guid=*]'
xmltable ('/xmlexport' ...
path '/itsystem/[@guid=*]'
... combinations of part 1 and 2
thanks for any hint, LaoDeYou can either get them directly, or fetch the attribute in your xquery and put them in returning xml fragment, then get them like normal element.
Method #1:
path '@guid'
Method #2:
xmltable(
let $is := /xmlexport/itsystem
return <r><guid>{$is/@guid}</guid></r>
passing object_value
columns guid varchar2(1000) path '/r/guid') -
SAP Query-for Reporting how to create and use it
Hi SAP Gurus,
i need your help. in my project, client is asking to create queries to generate reports, i am not familiar with queries, so would appreciate it if any one can guide me and tell me the procedure for writing and creating queries soon.
also if you have any study material on steps on How to write and create queries for PP module
thank you very muchHi
Please refer below document
http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Introduction.asp
Also refer below
How to Create Infoset Query (SAP Query)
Steps on how to proceed to create a Query:
ADHOC QUERY
A query can be created to extract information from master records i.e Infotypes. For example, by creating a query , the data relating to an employee contained in various Infotypes can be extracted.
Proceedure :
Decide on the various Infotypes we want to make the query. Decide on the area where we want to query i.e Global area or Standard area. Standard area is client specific and globel area will include all clients.
Menu : HR PM Admn - Information System - Adhoc Query
Select area standard and select the user group already created
Creation of new query :
TC SQ03 - Select Environment Select Standard Area - Enter -- If new user group is to be created, enter name of the user group, click on create and enter necessary information and exit after saving
TC SQ02 - Enter name of the Infoset Create enter name of Infoset - Data source -- > Table join by basis table give name of table e.g pa0000 - Enter - Click on insert table if we want to include more tables give name of table one by one and after finishing, place cursor on the joining lines and right click to delete unwanted relationships - check - and go back - field groups - include all table fields - click on generate button - go out
TC SQ03 - Select user group - eg. Payroll
Infoset - Enter name of newly created Infoset
Assign users and Infosets - Assign infosets - put tick on payroll - save and go back
TC PAAH - Expand the nodes and put tick on relevant fields depending upon necessity
Save the query by giving the same name as infoset for easyness..
For executing a query which is already created
1. Go to SQ01 transaction
2. Go to Environment menu->query areas->std areas
3. Then choose the user group where the query is created
4. It will display all the queries created for the group.choose the query you want to executeand click execute.
5. will take to the initial screen
6. Enter the required parameters and execute
Regards
Ranga
Message was edited by:
Ranganathan Srinivasamurthy -
How to write a query for grouping them the columns and give the sequence order to each group/
Hi i have table that contains country columns .
India,USA,UK like these when ever the group changed into the differt country i make a group and arrange them the sequence into those Countries
like below
1)India
2)India
1)USA
2)USA
like these to write a query ..........pls help me for this queryAssuming you're using SQL Server you can ask here:
http://www.sqlteam.com/forums/forum.asp?FORUM_ID=23
Otherwise, please ask in the relevant forum for the type of technology you're using.
Basically it's either:
select *
from [table name]
order by country
If you want to do something with groups do something like:
select (max) income, country
from [table name]
group by country
Kind regards,
Margriet Bruggeman
Lois & Clark IT Services
web site: http://www.loisandclark.eu
blog: http://www.sharepointdragons.com
Maybe you are looking for
-
Home network printing problem from Windows 8
I have 3 PCs on my home network: 1. Windows XP desktop (Pro SP3) with HP 6500 E709a USB printer. 2. Windows 7 desktop (Ultimate SP1 64 bit) with HP 1018 USB printer. 3. Windows 8 (64 bit) laptop. Both printers are NOT Ethernet printers. All
-
I need a form that allows the creation of multiple records
I have a form that is a daily timesheet. It's essentially a table with repeating rows, each row showing a record of time worked. Is this possible to produce in Form Central? I can't find any options relating to adding records.
-
Download Accelerator Plus for Mac OS
I am an old time windows user, and i am used to having my downloads accelerated as well as organized well. DAP is only available for mac os 1.0.3 not for anything latet than that. Does anyone have any software tips, like download managers I can use w
-
STORAGE OF PDF IN A TABLE, AND ALSO WAY TO DISPLAY THROUGH THE REPORT
Hello All, Kindly help me out if possible, I have a table, lets say table1. Kindly guide me that if I want to store a PDF under a column of table1 then how can I store it? What the datatype should I use to store this pdf. Also Kindly give me the way
-
Problems in running j2sdk1.4.2_04
The compiler works and creates .class file but running the java.exe shows Exception in main( ) ClassDefNotFoundError. The environment variable in winXP is sourcefile/bin. Do i need to set up more pathS???? I tried a number of options but none worked.