Cfquery dynamic return columns and fields to a table
Problem in the following code...
At first glance, the space between qryTable and the variable
is bad. So are the nested octothorps.
Plus, it's not clear what you are trying to
accomplish.
Similar Messages
-
Dynamic Work Area and field symbol
Hi All,
I'm have a big internal table like this
data: begin of data occurs 0,
Field01,
Field02,
Field03,
*bucket 1
Field04,
Field05,
Field06,
*bucket 2
Field04,
Field05,
Field06,
*bucket 3
Field04,
Field05,
Field06,
Field 1, 2 3 will be the same for pernr, first last name.
Field 4, 5, 6 are the same format but different numbers (or values ) in different buckets.
Each bucket can be shown (or not) based on the condition of a person, for example if that person live in 2 states, it will show 2 bucket with 2 address info inside each.
I will run this under get pernr to sort out each person who have many address or not.
Can I use dynamic work area and field symbol here? if I can, how?
Really appreciate your help with points...You can use the ASSIGN COMPONENT ... and than APPEND the work area to the table.
Check out this sample program:
REPORT ZTEST_NP.
DATA: BEGIN OF ITAB OCCURS 0,
F1 TYPE I,
F2 TYPE I,
F3 TYPE I,
END OF ITAB.
DATA: WA_ITAB LIKE ITAB.
DATA: L_CNT TYPE I.
FIELD-SYMBOLS: <F_FLD> TYPE ANY.
DO 10 TIMES. " I want 10 reocrds
CLEAR L_CNT.
DO 3 TIMES. " I have 3 fields
L_CNT = L_CNT + 1.
ASSIGN COMPONENT L_CNT OF STRUCTURE WA_ITAB TO <F_FLD>.
<F_FLD> = L_CNT.
ENDDO.
APPEND WA_ITAB TO ITAB.
CLEAR ITAB.
ENDDO.
LOOP AT ITAB INTO WA_ITAB.
WRITE: / WA_ITAB-F1,
WA_ITAB-F2,
WA_ITAB-F3.
ENDLOOP.
Regards,
Naimesh Patel -
Dynamic filling of input fields in a table
Hi,
There are input fields in a two tables these are to be filled parallely at run time. the no of entries depend on the entires in internal table.
If internal table has more entries, then a certain entries is filled up; say 9 times the control should be given to a new tables and the remaining entries should be filled in the input fields of other table .
I appreciate help.Hi,
Actually there is two HTML tables, each table has nine rows. if the no of entries in the internal table exceeds nine then the second table should be filled after the first HTML table has filled with all the nine entries.
Both tables contains same input fields. How to fill both tables dynamically. I think now it makes sense. -
Removing columns and fields in Workitems
Hello,
I have used a Visual Approval CO in my application...now to determine the processor of this action I have assigned it from a context parameter declared as input for the action.....now I don;t want to display this field of userid when the approver opens the workitem...since that is only used to determine the Approver and not display to him......if I make it 'Not Exposed'......then I am not able to assign it as 'filled from context parameter' for the approver...pls let me know how can I remove it from the display....
Also between the Attribute(Parameter) and the Value columns...there are 2 blank columns in between....how can I get rid of these....?
Any help would be highly appreciated.
AnilThe field of UserId is shown when the processor opens the workitem......since it is an input parameter to the action it always displays there.....along with others.....i don;t want to display it since the processor of workitem does not need to see his own userid there.....
As for the columns in the workitem they are blank for me and do not show any information such as namespace...and they appear between the Attribute and the Value....
Looking forward to your reply.
Thanks,
Anil -
Dialog return, partialTriggers and field updating
I have a form that allows a user to bring up a dialog, allows them to select an item, and then populates the item id into a field on the original form (essentially an af:selectInputText).
What I need is for other fields on the form to update now that the field has been populated. I've tried configuring partialTriggers on the fields that need to update, but they don't seem to get notified.
In the returnHandler, I set the value of the field component, but that doesn't seem to be causing the trigger to fire. Here's that code:
public void handleCallerMemberIdReturn( ReturnEvent event ) {
String id = (String)event.getReturnValue();
if( id != null ) {
getCompCallerMemberId().setSubmittedValue( null );
getCompCallerMemberId().setValue( id );
Is there something else I need to do to make the framework realize the component has changed value and cause the partialTriggers to fire? Is there another way to accomplish this?
Thanks.Ok, I've done that and I'm still seeing the same behavior. With a PhaseListener in place, I can see that the UPDATE MODEL phase is never invoked upon returning from the dialog. It goes from APPLY_REQUEST_VALUES to RENDER_RESPONSE, so none of the partialTriggers are working properly. Is there something else I need to do to make it go through the UPDATE_MODEL_VALUES phase after returning from a dialog?
Here's some debug output that shows the process:
At this point, we have just returned from the dialog with a member ID (m5 in this case) stored as the return value. On the 5th line you can see the output indicating that I've queued the ValueChangeEvent. The code for that is below the debug output.
05/02/20 11:42:49 BEFORE PHASE: RESTORE_VIEW 1
05/02/20 11:42:49 restoreView: /newReferralCase.jspx
05/02/20 11:42:49 AFTER PHASE: RESTORE_VIEW 1
05/02/20 11:42:49 BEFORE PHASE: APPLY_REQUEST_VALUES 2
05/02/20 11:42:49 QUEUE VCE for id: m5
05/02/20 11:42:49 AFTER PHASE: APPLY_REQUEST_VALUES 2
05/02/20 11:42:49 BEFORE PHASE: RENDER_RESPONSE 6
05/02/20 11:42:49 renderView: /newReferralCase.jspx
05/02/20 11:42:49 FORM: /newReferralCase.jspx ==> 'newReferralCase'
05/02/20 11:42:49 FB: com.fhm.mwb.ui.backing.NewReferralCaseForm@181
05/02/20 11:42:49 >>> configure( /newReferralCase.jspx, repost=false )
05/02/20 11:42:49 AFTER PHASE: RENDER_RESPONSE 6
here's the code for the return listener:
public void handleCallerMemberIdReturn( ReturnEvent event ) {
String id = (String)event.getReturnValue();
CoreInputText comp = getCompCallerMemberId();
Object oldValue = comp.getValue();
if( id != null ) {
comp.setSubmittedValue( null );
comp.setValue( id );
// Create and queue a ValueChangeEvent
System.out.println("QUEUE VCE for id: " + id);
ValueChangeEvent vce = new ValueChangeEvent(comp, oldValue, id );
vce.queue();
So, the basic problem is that nothing else on the page updates after the dialog return.
Thanks for any help you can provide. -
Returns delivery and field status.
Hi,
how is possible setting the screen in VL01N so that the field storage location
is a "required entry"?
Best regardsgoto SHD0 TCODE ->Put Tcode VL01N ->Enter Transaction variant (By pressing F4 u can select the same).
Enter u will get a sceen where u can do it required .
Hope this help -
How to read a XML file from BLOB column and insert in a table - PL/SQL Only
Hi,
To make data load more simple to end user instead placing file on the server and use SQL-LOADER, I came up with new idea that using oracle ebusiness suite attachment functionality. that loads a XML file from local PC to a database column(table is fnd_attachments, default data type is BLOB over here).
I tried with DBMS_LOB and didnt get around.
Please can anyone tell me how to read the BLOB column using PL/SQL and store the data in a oracle table. Here's the sample XML file and table structure FYI.
<?xml version="1.0" encoding="UTF-8"?>
<dataroot xmlns:od="urn:schemas-microsoft-com:officedata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Corporate_alloc.xsd" generated="2009-07-07T14:17:49">
<Corporate_alloc>
<PKG_CODE>BKCORP</PKG_CODE>
<PKG_NAME>Corporate Edition - Books</PKG_NAME>
<DET_CODE>B9780080543758</DET_CODE>
<DET_NAME>Waves, Tides and Shallow-Water Processes</DET_NAME>
<ALLOCATION_RATIO>0.000041</ALLOCATION_RATIO>
</Corporate_alloc>
<Corporate_alloc>
<PKG_CODE>BKCORP</PKG_CODE>
<PKG_NAME>Corporate Edition - Books</PKG_NAME>
<DET_CODE>B9780080534343</DET_CODE>
<DET_NAME>Hydrostatically Loaded Structures</DET_NAME>
<ALLOCATION_RATIO>0.000127</ALLOCATION_RATIO>
</Corporate_alloc>
</dataroot>
CREATE TABLE TEST_XML
( PKG_CODE VARCHAR2(50),
PKG_NAME VARCHAR2(100),
DET_CODE VARCHAR2(20),
DET_NAME VARCHAR2(500),
ALLOCATION_RATIO NUMBER )
Thanks
EBVIn regards to #3, use the COLUMNS functionality of XMLTable instead of using Extract. Two simple examples are
Re: XML Data - Caliculate fields
Re: Extractvalue function not recognised -
How to calculate value from perticular column and row in pivot table
Hi all,
I am having following pivot table.
Country
A
B
C
D
F
G
H
J
K
L
M
Grand Total
Canada
1
1
3
3
12
14
13
97
China
8
4
3
19
India
2
47
448
176
395
3656
1964
1360
8077
USA
1545
352
380
26
10
4
8
32
2054
1023
758
4624
UK
12
19
13
23
33
298
Grand Total
1545
352
381
29
72
474
184
427
5743
3028
2167
13114
Now I want sum of Columns A, B, C, K, M where Country = India in one field.
and sum of D, F, g in another field. and sum of remainig columns in another field.
How can i get sum of values with some where condition in pivot table.
Thanks,Hi Michael,
Following is the representation which i want
CouRntry
ROW LABLES
A
B
C
Total of
ABC
F
G
Total
Of FG
J
K
L
TOTAL
of JL
Grand
Total
Canada
1
1
3
3
12
14
13
97
China
8
4
3
19
India
2
47
448
176
395
3656
1964
1360
8077
USA
1545
352
380
26
10
4
8
32
2054
1023
758
4624
UK
12
19
13
23
33
298
Grand Total
1545
352
381
29
72
474
184
427
5743
3028
2167
1
Also if i get sum how can i add a column in between of the fields.
Thanks -
How to select and field from an table with similar value
Hi Gurus,
I got an requirement where i need to capture some values from an table whose value start with "vmr*"
could anyone tell me the syntax to be used with this?
My table contains valies like "lrt", "vmr'" nut i need only values starting with "vmr"*
RaviHi,
In where clause, you can write,
where field like 'vmr%'.
Hope this helps.
Reward if helpful.
Regards,
Sipra -
How to display 3 month columns and YTD column
Hello,
I need a help. My report layout requires to display the data in 3 dynamic month columns and one Fiscal year Year-to-date column for a period of time. For example, ending month is FEB:
Items : DEC : JAN : FEB : FY YTD
A : $10 : $11 : $12 : $100
B : $1 : $2 : $3 : $10
(Note: FY YTD is the total sum from OCT to FEB (5 months), not 3 months to be displayed)
I tried to create a query and use Matrix with group, but the report always display five (5) month columns
from OCT to FEB instead of displaying three (3) month columns. If the query is limited to display
three months as desired, then the total sum will be 3 displayed months only (instead of 5 months).
How to create a query or how to display three months and FY YTD or do anything else with Oracle Builder9i?
Thanks,You could use the DECODE function and variables
i.e. have a four column report
in your query use somthing like
, decode(period,:P_PERIOD1,1,0)* amount as period1
, decode(period,:P_PERIOD2,1,0)* amount as period2
, decode(period,:P_PERIOD3,1,0)* amount as period3
, amount as ytd
In your before report trigger poulate the variables with your required values -
What is the difference betwwen SELECT ALL Column and Select Speceific Colum
Hi All,
If the block size of the database is 8K and average row length is 2K and if we select all column of the table the I/O show that it had read more blocks then compare to
specific column of the same table. Why is this?
Secondly if Oracle brings a complete block is the db buffer cache, while reading block from disk, they why there is a difference of block count in two queries.
This difference reveals to me when I check the EXPLAIN PLAN for two different queries against the same table but one select all columns and the other one select specific column.
Kindly help me in clearing this confusion.
Regards,
Kamranuser1514587 wrote:
>
Usually, indexes are smaller (contain fewer blocks) than the table - ergo, select empno from emp could be satisfied by reading fewer blocks.
what if there is a composite Index on a table containing 3 to 4 columns and the size of table is in 100 of GB and Index size itself is vey large then I think Oracle will go for FTS and small Index scan will be expensive. Kindly Share your thoughts.
Regards,
KamranHandle: user1514587
Status Level: Newbie (5)
Registered: May 9, 2011
Total Posts: 21
Total Questions: 13 (12 unresolved)
I think you wastes everyone's time here since you rarely get answer to any posted question -
Generate DDL - change is a new column and I want to generate a alter table
Morning all,
I have searched and looked all over the data modeler and I cannot find this option ... yet I did find it easily in Designer.
I hope you can help me.
SQL Developer Data Modeler v3.0.0.665.
I have added a new column to a table and when I generate the DDL I would like it to be an alter table add column rather than a create table.
This feature is in Designer so I would think it would be in data modeler.
Just incase my description is not clear here are the high level steps so it is clear.
1. create the logical model
2. create the relational from the logical.
3. create the physical from the relational.
4. generate DDL and run in database. At this point I go to production with my system and all is well.
5. At this point we have an enhancement request. For the model it will be a new column in a table.
6. update logical model.
7. update relational from logical
8. update physical from relational
9. generate DDL. Here I would like to have the generate be aware the it needs only to generate an alter table add column and not create the table.
This is something I do alot as all my models are in production. I cannot find how to do this step of getting data modeler to generate the alter.
Designer does this exceptionally well.
Quite often it is more than a single column. The changes can be many and made over time and at the time of generating the DDL you may not recall every single change you made. To have the tool discover those changes for you and generate the appropriate DDL is a feature I regard as very high.
I hope this is clear and you can help me.
Cheers
Chris ....Hi Chris,
you need to compare your model against database - import from database into same relational model and use "swap target" option - in this case "alter statements" against database will be generated.
You can look at demonstrations here http://www.oracle.com/technetwork/developer-tools/datamodeler/demonstrations-224554.html
Probably this particular one will be most helpful http://download.oracle.com/otn_hosted_doc/sqldev/importddl/importddl.html
Soon or later your changes will require table to be recreated and you'll need to backup your data - you can consider usage of "Advanced DDL" option - script will be generated that will unload the content of your table (including LOBs) to file system accessible from database and restore it after changes. Well don't try it directly on production system :).
Philip -
Hi,
Here they change the invoicing party while doing MIRO for import orders only.
Now they want to track the Invoicing party with the concerned material and quantity involved. So can anyone say the concerned table and field.
regards,
sathyaHi,
Tables are:
RBKP (Invoice Header)
RSEG (Invoice Item)
and fields:
Invoicing Party can be found
RBKP table LIFRE field
Quantity from RSEG MENGE field
(and MEINS Base Unit of Measure)
Material number from RSEG MATNR field
And you can join RSEG and RBKP with BELNR field (Inv.Number)
Hope it helps -
Switch columns and rows in SSRS
Hi,
I have a report with static columns that looks something like this:
Date
Column 1
Column2
Column30
December 1
xxx
xxx
xxx
December 2
xxx
xxx
xxx
December 31
xxx
xxx
xxx
It is based on SP that produces a temporary table exactly the same way as the report output (my Dec
1 to 31 rows are details that are precalculated within SP).
I need to switch columns and rows as my report is getting too wide.
Does anyone know how it is done in SSRS 2005 (with SQL 2005 data source) without re-writing my SP?
Thank you in advance!Thank you for your reply Jason.
Unfortunately I do not have tablix within SSRS 2005; I only have matrix and table. For the original report I am using table as it displays data exactly the way it
is passed from the SP. You cannot switch columns and rows within the table. I tried matrix, but it didn’t work either… Is there any work around that you know of?
Thanks again!
Lana -
How to extract data from xml and insert into Oracle table
Hi,
I have a large xml file. which will have hundreds of the following transaction tags having column names and there values.
There is a table one of the schema with coulums "actualCostRate","billRate"....etc.
I need to extract the values of these columns and insert into the table
<Transaction actualCostRate="0" billRate="0" chargeable="1" clientID="NikuUK" chargeCode="LCOCD1" externalID="L-RESCODE_UK1-PROJ_UK_CNT_GBP-37289-8" importStatus="N" projectID="TESTPROJ" resourceID="admin" transactionDate="2002-02-12" transactionType="L" units="11" taskID="5017601" inputTypeCode="SALES" groupId="123" voucherNumber="ABCVDD" transactionClass="ABCD"/>
<Transaction actualCostRate="0" billRate="0" chargeable="1" clientID="NikuEU" chargeCode="LCOCD1" externalID="L-RESCODE_US1-PROJ_EU_STD2-37291-4" importStatus="N" projectID="TESTPROJ" resourceID="admin" transactionDate="2002-02-04" transactionType="L" units="4" taskID="5017601" inputTypeCode="SALES" groupId="124" voucherNumber="EEE222" transactionClass="DEFG"/>Re: Insert from XML to relational table
http://www.google.ae/search?hl=ar&q=extract+data+from+xml+and+insert+into+Oracle+table+&btnG=%D8%A8%D8%AD%D8%AB+Google&meta=
Maybe you are looking for
-
ITunes Installation Error Message?
I recently had to install an update for iTunes. After the update was installed, I was promted by an error message that "iTunes was not installed correctly", and that I needed to reinstall iTunes. Once I completed the process of uninstalling iTunes, I
-
Having trouble with my G4 MDD 867MHz DP and ATi Radeon 9800 Pro video card.
I just recently purchased the ATi Radeon 9800 Pro Mac edition card on ebay. I installed the card on my G4 and turned it on thinking everything would work with no problems, but when I turned it on the grey apple screen came up fine and then it changed
-
IPhone 5 (v7.1.2) Calendar Doesn't have 'plus' sign
Hello! I am using the iPhone 5, version 7.1.2 (there is an update available, but I have read that it is hurting a lot of phones, so I am skipping it thus far). Regardless of that, I am unable to create events on my Calendar. The reason being that
-
Mail Asking for Keychain Password Randomly for Years
Apple Mail has been randomly asking me to type in my keychain password for one single email account for seriously 10 years. How the **** can I turn this off, forever, and ever, so I never have to see the god **** thing again!? It is on a Gmail accoun
-
An attempt to install Adobe reader X on my Mac OS 10.5.8 failed, with this message: "Run preinstall script for application." What is that, and how do I do it?