Records under a given component
Hi There,
Could anyone help me in finding the Records under a given component in PeopleSoft through SQL(thru backend)...not through App Designer...
Thanks,
Hi,
You can try using the query, probably a refined form
SELECT DISTINCT PNLNAME,RECNAME FROM PSPNLFIELD WHERE PNLNAME IN (SELECT PNLNAME FROM PSPNLGROUP WHERE PNLGRPNAME LIKE 'PURCHASE_ORDER')
However, If there are records that are updated as part of the SavePostChange event, safest idea would be run a PC/SQL trace and then segregate the DELETE, INSERT, UPDATE and SELECT statements using PSTraceAnalyzer.
Prashant
Similar Messages
-
Is it possible to find a base record for a given component using a SQL qry
Is it possible to find a base record for a given component through a SQL query ?
Ex:
1. VOUCHER for VCHR_EXPRESS
2. VENDOR for VNDR_ID
The below query gives multiple rows, I want it to restrict results to just one row
SELECT DISTINCT A.PNLGRPNAME AS COMPONENT, A.DESCR, A.ADDSRCHRECNAME, A.SEARCHRECNAME, D.RECNAME AS TableName
FROM PSPNLGRPDEFN A, PSPNLGROUP B, PSPNLDEFN C, PSPNLFIELD D, PSRECDEFN E
WHERE A.PNLGRPNAME = B.PNLGRPNAME
AND A.MARKET = B.MARKET
AND B.PNLNAME = C.PNLNAME
AND C.PNLNAME = D.PNLNAME
AND A.PNLGRPNAME = 'VNDR_ID' -- Component Name
AND E.RECNAME = D.RECNAME
AND E.RECTYPE =0
AND D.FIELDUSE =0
AND D.OCCURSLEVEL = 0
AND B.HIDDEN = 0
Thanks in Advance..For the given examples, the problem is that there are pages in these components that contain subpages with record names specified. The SubPage field type appears to be at level 0, but if you view the SubPage definition, the records are at level 1. This is because the scroll area is contained within the subpage.
In theory, the situation is complicated by the fact that you can have subpages within subpages, which would force you to use a recursive query to fully expand the subpages. In practice, there probably aren't many, if any, pages where a scroll area is buried several subpages deep.
An alternative might be to compare the primary keys of the level 0 records to the primary keys of the add or search record keys. They should only match for the base record. Even this option is not trivial, though.
Regards,
Bob -
Hi - I think I have different apple devices recorded under different apple IDs. Now I would like to consolidate all the devices under one Apple-ID. I have tried to do this going through the manage accoung like, but it timed out - could somebody help, pls
Purchases of multple Apple ID accounts cannot be merged as noted here > Frequently asked questions about Apple ID
-
Hello folks,
Many times we need to retrieve records for given lists of PKs (or FKs), as:
p_pk_list := '11,22,33';
We work in 10g
A co-worker of mine had a good idea (I thought) to "help" the optimizer and build a recordset in the FROM clause and use it later in WHERE
SELECT ...
FROM tableName a,
(SELECT REGEXP_SUBSTR(p_pk_list, '[^,]+',1,ROWNUM) p_pk_id
FROM dual
CONNECT BY ROWNUM <= LENGTH(p_pk_list ) - LENGTH(REPLACE(p_pk_list ,','))) d_pk
WHERE
a.ID=d_pk.p_pk_id; -- (1)
The tragedy is that it takes 4 seconds to retrieve 5 records from the table (no other joins). The table has about 40 columns though and there are about 51000 records. With the SELECT REGEXP_SUBSTR in the WHERE clause, it's a bit worse.
If (1) is replaced by:
a.ID IN (11,22,33,44,55);
the execution takes 0.04 seconds.
My questions are:
1. Is this a bad idea to select records for a given list of PKs or FKs? Should one just go for one PK/FK instead?
2. Why the stiff performance penalty?
3. Ideally, it would be nice if this would work:
a.ID IN (p_array);
where p_array would be an array of integers
Any elegant sollutions?
Thanks a lot.
DanCheck the explain plan for both statements.
I would wager that the overhead you experience is due to the fact that you are comparing apples to oranges here.
(SELECT REGEXP_SUBSTR(p_pk_list, '[^,]+',1,ROWNUM) p_pk_id
FROM dual
CONNECT BY ROWNUM <= LENGTH(p_pk_list ) - LENGTH(REPLACE(p_pk_list ,','))) d_pkreturns a string.
a.ID IN (11,22,33,44,55);Is a list of numbers.
If you check the explain plan for the regexp version, you should see an implicit conversion being done for you (converting the number column into a string for comparison) which means you can't use any indexes defined on a.id.
If you want to use an array of numbers here's an approach using a built in array of numbers.
declare
v_number_list sys.odcinumberlist default sys.odcinumberlist();
begin
v_number_list.extend;
v_number_list(v_number_list.count) := 100;
v_number_list.extend;
v_number_list(v_number_list.count) := 200;
for vals in
select *
from all_objects
where object_id in
select column_value
from table(cast(v_number_list as sys.odcinumberlist))
loop
dbms_output.put_line(vals.object_name);
end loop;
end;
25 /
I_TYPED_VIEW1
I_NTAB2
PL/SQL procedure successfully completed.
ME_XE?Otherwise do an explicit TO_NUMBER on the regexp query so that you can use any indexes defined on the table in question. -
How to see results for surveys in CIC Interaction record under script prfl?
Dear Experts,
In Interaction Record>Under Script tab> I have filled a survey-> upon entering all answers and saving->System showing a message, that survey has been sucessfully saved.
But I dont know where these surveys are getting stored. and I could not find the created survey or results next time when I opened the same Interaction record.
Kindly tell me where can we find the survey results, which is created under Script tab in Interaction Record.
Your suggestions will be highly appreciated
Best regards
Raghu ramHello,
Have you found solution to this case?
BR
Piotr -
Personnel numbers under a given payroll area
can anyone let me know any macros/ fm / utility that gets the personnel numbers given a payroll area , begin date and end date ?
How to get the personnel numbers under a given payroll area , is it okay if simply by looking in table PA0001 ?
Thanks!
UmaPlease read this -:)
<a href="/people/alvaro.tejadagalindo/blog/2006/02/19/how-to-deal-with-hr-payroll-reports to deal with HR Payroll reports</a>
Greetings,
Blag. -
Fetch records under 20 seconds in my view with sysdate
hi all
I want a query in my view that it returns records under 20 seconds and
after 20 seconds my query do not show any records
my query is :
select * from cnfenterexit
where cnf06date > sysdate - (1/86400000)
but it didn't work.
when I used following query whit this numbers ,
it is OK and show records under 56 seconds
select * from cnfenterexit
where cnf06date > sysdate - (3/1440)
please explain how to get under 20 seconds in me query?or
select *
from cnfenterexit
where cnf06date > sysdate -TO_DSINTERVAL('0 00:0:20')TO_DSINTERVAL('0 00:0:20') = 0 days, 0 hours, 0 minutes, 20 seconds
Timo -
I am setting up MX records for email encryption and they require a subdomain to do it. I tried an A Record but it does not behave the same as it did on Network Solutions
I do not want to move the DNS records as our web guy takes care of it mostly
I have to have a subdomain of zixvpm.easicomply.com
and put 2 records for zixvpm01.datbusiness.com
and zixvpm02.datbusiness.com
Any ideas on how to accomplish this?
On other registrars you create a subdomain and and set up mx records UNDER it.Hi,
You can try using the query, probably a refined form
SELECT DISTINCT PNLNAME,RECNAME FROM PSPNLFIELD WHERE PNLNAME IN (SELECT PNLNAME FROM PSPNLGROUP WHERE PNLGRPNAME LIKE 'PURCHASE_ORDER')
However, If there are records that are updated as part of the SavePostChange event, safest idea would be run a PC/SQL trace and then segregate the DELETE, INSERT, UPDATE and SELECT statements using PSTraceAnalyzer.
Prashant -
Need a query to list all the personalized objects under a given path
Hello Gurus,
Can you help me with a query that will give me a list of all personalized objects that are under a given path like /oracle/apps/per/...
Thanks,
VinodHi Vinod,
You can get the details from Functional Administrator responsibility, personalization tab, enter the "Document Path" like /oracle/apps/per
and check the "Personalized" checkbox. And you can import the personalization to the file system also. More details check the Note
The query
begin
jdr_utils.listcustomizations('/oracle/apps/pon/award/completion/webui/ponCompleteAward2PG');
end;
Will give the details for only one page.
Thanks.
With Regards,
Kali.
OSSi. -
Linux installtion file for Creative MediaSource Player & Audio Stream Recorder under GPL licen
I have Sound Blaster Audigy 2 sound card are where any Linux installtion file for Creative MediaSource Player & Audio Stream Recorder under GPL licens ?
I don't think so. Creative's product CD installation seems to support Windows OS only.
-
Getting no file found under the given path- VNX-Family Monitoring and Reporting
Server- Windows-2012 R2
Using v21 of setup-vnx-mr-v21-win64
Using NAVCLI-Win-32-x86-en_US-7.33.6.0.96-1
Installed VNX-Family Monitoring and Reporting w/o any issues. Set user permissions.getting
Attempting to add VNX5400
I am using direct IP address: 10.X.X.X, Getting no file found under the given path error.
Any suggestions?
An using correct permissions
Thanks
This topic first appeared in the Spiceworks CommunityServer- Windows-2012 R2
Using v21 of setup-vnx-mr-v21-win64
Using NAVCLI-Win-32-x86-en_US-7.33.6.0.96-1
Installed VNX-Family Monitoring and Reporting w/o any issues. Set user permissions.getting
Attempting to add VNX5400
I am using direct IP address: 10.X.X.X, Getting no file found under the given path error.
Any suggestions?
An using correct permissions
Thanks
This topic first appeared in the Spiceworks Community -
How to avoid editing a deleted record in a Table component
Hi! Everyon,
I am building a prototype using JSC. In Page1.jsp, I have a table displaying the records. On column one there are buttons that allow the user to edit the record, including deleting it. My problem is: when somebody else deleted a record and if the current user tries to edit the same record by clicking the edit button on the corresponding row he will get the next record. Could somebody tell me how to solve this problem? Thanks in advance.
By the way, I do not access database directly from the Web part. Instead, I dropped a session bean's method on the Table compoment. In the edit button's event handler, I use
TableRowDataProvider row = (TableRowDataProvider )getBean("currentRow");However, since that record was deleted already I always get the next record.
With best regards,
DanielThank you very much for your help. And sorry for not explaining clearly.
I have a session bean that has getCities(), getCity(String code) and other methods. getCities() returns an array of CityDO objects and getCity(String) returns a CityDO object. class CityDO basically is a JavaBean containing city code, city name and other information. When I designed the web part using Java Studio Creator, I dropped a Table component to the design view first, then dropped the EJB method getCities() onto that Table component. Up to now, it is very similar to http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/ejb.html and everything worked fine.
In order to edit a CityDO record, I added a column containg "edit" buttons into the Table component. If the user clicks the edit button we will show the CityDO in another page called editPage.jsp. In editPage.jsp, the user can update the city or simply delete it. Here is the major part of the event handler of the edit button in Page1,
public String editCity_action() {
TableRowDataProvider row = (TableRowDataProvider)getBean("currentRow");
String code = (String)row.getValue("code"); // "code" is a field in CityDO
CityDO city = null;
try {
city = cityClient1.getCity(code);
} catch (Exception ex) {
ex.printStackTrace();
return null;
getSessionBean1().setCity(city); // pass the city to editPage
return "editPage";
}Usually, the above logic is good. However, if somebody else deleted one city and the current user tries to edit that deleted city (it is still in his table), he gets the next city. The real problem is in editCity_action(),
row.getValue("code") returns an updated value, but I only need the old one.
You memtioned ArrayList. That could be a good solution. Suppose I have an ArryList containing the CityDO objects, if I can bind the table to my ArrayList that will solve my problem. Could you tell me how to do the binding in that case?
Thank you again.
With best regards,
Daniel
By the way, I do not access database directly from
the Web part. I do not understand what you mean by the above
statement.
Instead, I dropped a session bean's
method on the Table compoment. Can you explain further. What method did you drop on
the Table component?
In the edit button's
event handler, I use
TableRowDataProvider row =
(TableRowDataProvider
)getBean("currentRow");However, since that
record was deleted already I always get the next
record.Here is the delete code from
http://developers.sun.com/prodtech/javatools/jscreator
/learning/tutorials/2/inserts_updates_deletes.html.
As is is working on the rowkey in the page bean's
table, that should not be affected by other users in
other sessions, the rowkey should not change, even if
the underlying record has changed.
public String delete_action() {
form1.discardSubmittedValues("save");
try {
RowKey rk = tableRowGroup1.getRowKey();
if (rk != null) {
tripDataProvider.removeRow(rk);
tripDataProvider.commitChanges();
tripDataProvider.refresh();}
(Exception ex) {
log("ErrorDescription", ex);
error(ex.getMessage());
return null;
}What is the underlying structure for the table's
data. Is it a row cache from a query? Is it an
ArrayList? -
Finding the complete hierarchy of all child records for a given root
Hi,
We need to find the hierarchy starting from a given root by exploding the hierarchy of each child present in the hierarchy.
Consider a data as given below.
Seq_no denotes a primary key.
Child_id denotes the child node in the hierarchy
Parent_id indicates the immediate parent of the child record
Root_id denotes the starting point of the hierarchy.
Within a given hierarchy the root_id will remain the same and parent_id will keep on changing as required.
Seq_No Child_id Parent_id Root_id
101 1 NULL 1
102 2 1 1
103 3 2 1
104 4 1 1
105 5 3 1
106 4 NULL 4
107 7 4 4
108 8 4 4
109 9 7 4
110 3 NULL 3
111 4 3 3
112 5 3 3
The requirement is to pull the hierarchy starting from a given root traversing down the path by exploding the hierarchy of each and every child present in that hierarchy. It is explained using below example.
For root_id value as 4, the expected o/p is
child_id path
7 /7
9 /7/9
8 /8
For root_id value as 3, the expected o/p is
child_id path
4 /4
7 /4/7 ---> Hierarchy with root_id 4 gets exploded
8 /4/8
9 /4/7/9
5 /5
For root_id value as 1, the expected o/p is
child_id path
2 /2
3 /2/3 ---> Hierarchy with root_id 3 gets exploded
4 /2/3/4 ---> Hierarchy with root_id 4 gets exploded
7 /2/3/4/7
9 /2/3/4/7/9
8 /2/3/4/8
5 /2/3/5
4 /4
7 /4/7
8 /4/8
9 /4/7/9
5 /5
5 /2/3/5
Also, additionally, if there exist any cyclic child records in the hierarchy, the exploding should stop there itself.
CREATE TABLE xyz
SEQ_NO NUMBER,
ITEM_ID NUMBER,
PARENT_ITEM_ID NUMBER,
ROOT_ITEM_ID NUMBER
Insert into xyz
(SEQ_NO, ITEM_ID, ROOT_ITEM_ID)
Values
(1, 1, 1);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(2, 2, 1, 1);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(3, 3, 1, 1);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(4, 4, 2, 1);
Insert into xyz
(SEQ_NO, ITEM_ID, ROOT_ITEM_ID)
Values
(8, 3, 3);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(9, 10, 3, 3);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(10, 11, 10, 3);
Insert into xyz
(SEQ_NO, ITEM_ID, ROOT_ITEM_ID)
Values
(12, 10, 10);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(13, 12, 10, 10);
Insert into xyz
(SEQ_NO, ITEM_ID, ROOT_ITEM_ID)
Values
(14, 11, 11);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(15, 13, 11, 11);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(16, 14, 11, 11);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(21, 23, 13, 11);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(104, 16, 91, 14);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(19, 16, 12, 10);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(20, 17, 16, 10);
Insert into xyz
(SEQ_NO, ITEM_ID, ROOT_ITEM_ID)
Values
(101, 110, 110);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(102, 111, 110, 110);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(103, 17, 110, 110);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(29, 31, 17, 10);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(30, 32, 17, 10);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(31, 33, 16, 10);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(35, 49, 23, 11);
Insert into xyz
(SEQ_NO, ITEM_ID, ROOT_ITEM_ID)
Values
(41, 14, 14);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(42, 91, 14, 14);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(43, 92, 91, 14);
COMMIT;
Pl advise.
Thanks,
- Ajit
Edited by: 952105 on Aug 10, 2012 10:44 AMMy application tracks the product master that stores a product configuration along with its all child/sub-child records. There exists many such configurations for various parts.
There can exist only one configuration for a given product at any point in time. But, at the same time, this product can be a part of other product configurations too (i.e. it can exist as a child in other hierarchies).
Now, the business requirement is to pull the hierachy starting from a given product (as a root). This should also pull the hierarchy of each child/subchild existing under its hieararchy, if there exist a separate configuration for those child/subchild products.
SET DEFINE OFF;
CREATE TABLE XYZ
ITEM_ID NUMBER,
PARENT_ITEM_ID NUMBER,
ROOT_ITEM_ID NUMBER,
QUANTITY NUMBER,
LINE_ID VARCHAR2(10 BYTE)
Here, root_item_id denotes the product for which the configuration has been defined. All its child/sub-child records gets stored under this root_item_id itself. The parent_item_id column will get stored appropriately based on the immediate parent of the product under that hierarchy.
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(2, 1, 1, 5, '1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(3, 1, 1, 5, '1.2');
Insert into XYZ
(ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(1, 1, 1, '1.0');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(4, 2, 1, 6, '1.1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(10, 3, 3, 4, '1.1');
Insert into XYZ
(ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(3, 3, 4, '1.0');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(11, 10, 3, 15, '1.1.1');
Insert into XYZ
(ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(10, 10, 7, '1.0');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(12, 10, 10, 9, '1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(16, 12, 10, 99, '1.1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(17, 16, 10, 77, '1.1.1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(31, 17, 10, 2, '1.1.1.1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(33, 16, 10, 5, '1.1.1.2');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(32, 17, 10, 3, '1.1.1.1.2');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(14, 11, 11, 10, '1.2');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(13, 11, 11, 9, '1.1');
Insert into XYZ
(ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(11, 11, 8, '1.0');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(23, 13, 11, 77, '1.1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(49, 23, 11, 5, '1.1.1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(16, 91, 14, 56, '1.1.2');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(92, 91, 14, 10, '1.1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(91, 14, 14, 8, '1.1');
Insert into XYZ
(ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(14, 14, 6, '1.0');
Insert into XYZ
(ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(110, 110, 1, '1.0');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(17, 110, 110, 1, '1.2');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(111, 110, 110, 1, '1.1');
COMMIT;
The expected result for product with root_item_id as 14
item_id hierarchy_path
11 /11
13 /11/13
23 /11/13/23
49 /11/13/23/49
14 /11/14 -- it should explode the hierarchy of product with id 14
91 /11/14/91 as there exists a configuration for this product as a root
16 /11/14/91/16
92 /11/14/91/92
In above example, it should explode the hierarachy of other products too (item_id 13,23 etc) if there exists a product configuration (starting with root_item_id as 13 or 23 etc.) for them in the table.
Thanks,
- Ajit -
How to Print multiple Records under one level in Etext templates.
Hi,
I am working on the Etext templates and customizing the standard template “US NACHA PPD FORMAT”.
This standard template don’t have a addenda record.. I have modified and it is working for single Addenda records. But when I have multiple ADDENDA records to be printed in one particular *<outboundpayment>* level, it is not printing.
How do I modify the template so that Multiple Addenda records get printed?
Note: I have multiple *<MyPayables>* tags under *<OutboundPayment>* tags.
Please help me in understanding this…
Regards
Pradeep GWhat you probably need to do is generate each bio
individually with the
<cfdocument...> tag just the way you want them. And
then use some of
the advanced <cfpdf...> functionality that allows you
to append two or
more individual PDF's into a single large PDF.
Here are some resources that describe some of the
<cfpdf...> functionality.
http://www.coldfusionjedi.com/index.cfm/2007/7/9/ColdFusion-8-Working-with-PDFs-Part-1
http://www.coldfusionjedi.com/index.cfm/2007/7/10/ColdFusion-8-Working-with-PDFs-Part-2
http://cfpdf.blogspot.com/
http://cfpdf.blogspot.com/2007/06/cfpdf-action-merge_27.html
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=cfpdf_02.html -
Error while recording process using a component with a custom data type
Hello,
I created a component that returns a CheckAttachmentResult object. This object contains an int named resultCode and a String named resultMessage. In the CheckAttachmentResult class, I do have a getter and a setter function for both values.
When I use the component, I can retrieve the CheckAttachmentResult object, see the values that are set (i.e. resultMessage and resultCode) and work on them (for instance build a condition on the resultCode).
However when the current process goes into a subprocess after having used this component, I get the following error:
Failed evaluating outgoing routes for action=template:ReceptionDtpBriefingV2/branch:main-branch/pool:POOL/swimlane:Extraction du DTP/action:Check DTP attachments: java.lang.NullPointerException at com.adobe.idp.auditworkflow.dsc.service.storage.ProcessRecordingStorageImpl.persistDocume ntVariables(ProcessRecordingStorageImpl.java:409)
at com.adobe.idp.auditworkflow.dsc.service.storage.ProcessRecordingStorageImpl.serialize(Pro cessRecordingStorageImpl.java:390)
at com.adobe.idp.auditworkflow.dsc.service.storage.ProcessRecordingStorageImpl.persist(Proce ssRecordingStorageImpl.java:151)
at com.adobe.idp.auditworkflow.dsc.service.AuditWorkflowServiceImpl.auditEvent(AuditWorkflow ServiceImpl.java:62)
at sun.reflect.GeneratedMethodAccessor1278.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:118)
at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:140)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionInterceptor.java:74)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTr ansactionCMTAdapterBean.java:342)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doRequiresNew (EjbTransactionCMTAdapterBean.java:284)
at sun.reflect.GeneratedMethodAccessor236.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:214)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:154)
at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor. java:54)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:389)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
at org.jboss.ejb.Container.invoke(Container.java:873)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)
at $Proxy169.doRequiresNew(Unknown Source)
at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:143)
at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java:72)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStra tegyInterceptor.java:55)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:109)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:115)
at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:118)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessage Receiver.java:91)
at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:21 5)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:57)
at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
at com.adobe.workflow.audit.WorkflowAudit.invokeCallback(WorkflowAudit.java:471)
at com.adobe.workflow.audit.WorkflowAudit.breakpointRouteEvaluationCompleted(WorkflowAudit.j ava:268)
at com.adobe.workflow.engine.PEUtil.evaluateRules(PEUtil.java:425)
at com.adobe.workflow.engine.SynchronousBranch.getNextActionOrStallOnFailure(SynchronousBran ch.java:801)
at com.adobe.workflow.engine.SynchronousBranch.updateBranchInstanceStatus(SynchronousBranch. java:649)
at com.adobe.workflow.engine.SynchronousBranch.execute(SynchronousBranch.java:887)
at com.adobe.workflow.engine.ProcessEngineBMTBean.continueBranchAtAction(ProcessEngineBMTBea n.java:2773)
at com.adobe.workflow.engine.ProcessEngineBMTBean.asyncInvokeProcessCommand(ProcessEngineBMT Bean.java:704)
at sun.reflect.GeneratedMethodAccessor503.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:214)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor. java:54)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:1 58)
at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:154)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
at org.jboss.ejb.Container.invoke(Container.java:873)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)
at $Proxy202.asyncInvokeProcessCommand(Unknown Source)
at com.adobe.workflow.engine.ProcessCommandControllerBean.doOnMessage(ProcessCommandControll erBean.java:156)
at com.adobe.workflow.engine.ProcessCommandControllerBean.onMessage(ProcessCommandController Bean.java:99)
at sun.reflect.GeneratedMethodAccessor457.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.j ava:475)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterc eptor.java:101)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:94)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:389)
at org.jboss.ejb.Container.invoke(Container.java:873)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:1077)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerI nvoker.java:1379)
at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:256)
at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904 )
at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:160)
at org.jboss.mq.SpySession.run(SpySession.java:333)
at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
at java.lang.Thread.run(Thread.java:595)
It turns out that this error is related to the recording of the process. When I stop the recording, this error disappears. Do you have any idea on what goes wrong ? Did I miss something or made something wrong ?
I attached the component.xml file of the component to this post.
Thank you in advance
SteveThis seems to be recorded in CAR#405941. The whole thing is a bit strange but I will try to go over the potential workarounds as best as I can. I tested a lot of these myself and here is what I found.
1. Make sure the custom control you have made was created in LabVIEW 2012 or you save it to a previous version. If you save it to a previous version you might also need to open the .ctl in LabVIEW 2012 and resave it (I needed to do this). I tried creating my own control in 2012 as well as saving the control to a previous version, both worked but I did not end up with the same result (I don't understand this but I wanted to mention it so that you knew).
2. It seems that you are able to make the shared variable programmatically by modifying the community example to fit your needs. If you do not need to create many variables this may be the best option if it works for you.
I would also try adding the variable from the LabVIEW project you are working on. This was not a direct troubleshooting step but there are multiple ways to do things in LabVIEW and sometimes one of them works while the other does not.
Edit: Community Example is here https://decibel.ni.com/content/docs/DOC-16863
Matt J
Professional Googler and Kudo Addict
National Instruments
Maybe you are looking for
-
Can not access Adobe camera raw in PS CS5. Have a mac OS 10.9
How do i access adobe camera raw for images fro Nikon D 7100.
-
ITunes logo only showing on start up
I'm trying to turn on my iPad mini and all I get is the Apple logo and then the logo for iTunes. Nothing responds. Is my only option to restore my iPad?
-
Why is it I can't see any of my bookmarks?
Why is it I can't see any of my bookmarks? And I can't see my recent history. Because, I mentally press the shutdown button. And the PC shutdowns And when I came back, and open the browser suddenly When I type fb.com no auto complete... and when i tr
-
Using SAPRouter for multiple customer installations
Hello, can anyone point me in the right direction to find documentation on how I go about connecting all of my companies SAP installations to one central SAPRouter? At the moment we have two SAPRouters, one in Europe and the other here in the US, and
-
Standard Price in material master and MBEW
Hi We have unique problem. The currency was setup with out decimal places due to some valid reason. Due to which STANDARD PRICE in MATERIAL MASTER looks alright (lets say 1000) but in MBEW(field STPRS) it is 10. I would like use value which is in Ma