Display dynamic query result in collection
How to we put the query results in collection for a dynamic query?
Do you want to display or to store or do both.
Anyway try a check at this:
http://forum.java.sun.com/thread.jspa?threadID=584195&messageID=2991930#2991930
I think if u do the reverse process you will be able to retrieve the values from the list and display them.
Try giving a thought.
Similar Messages
-
How to display the query results in several pages?.
Hi,
i want to display the query results in several pages. for example my query result found 50 matches, now i want to print 20 per pages next 20 will be in next pages. iam using only jsp & mysql.
Regards
ChinnaHi, what you are trying accomplish is known as pagination.
You could use JSTL tags with Custom Tags to perform pagination in your JSP pages.
evnafets showed me DisplayTags , you could use those as well http://displaytag.sourceforge.net/11/tut_externalSortAndPage.html
Here is one article on paging:
http://www.javaworld.com/javaworld/jw-07-2004/jw-0726-pagination.html -
Display the query result in an Excel file??
hi there..
am writing one script file that queries my DB and display the query result in an Excel file??
i.e: if my query is :
select col1, col2
from table;
and i want the results to dispalys in 2 col. in an Excel spreadsheet..
Appreaciating ur cooperation..
Mouradset colsep to a delimiter that is not normally part of your data like |
also setup the environment with these other setup commands
Set Echo Off;
Set Concat Off;
Set Pagesize 9999;
Set Feedback Off;
Set Verify Off;
Set Term Off;
Set Space 0;
Set Colsep '|'
Set Underline Off;
If you wanted to use a comma delimiter the setup would be same but the set colsep='","'
with the addition of concatenating a " on the first col and last col of the query
eg.
-- if first col and last_col are character types then
SELECT '"'||col1,....,last_col||'"'
FROM table;
Otherwise if either is a number they would have to be converted with a TO_CHAR -
QA: Designer's operation to Add one more Field to display in Query Result Web Part
QUESTION ABOUT Query Result Web Part presentation +1 Field
I'd be looking at a property of Web Part to look up Discussion Board through Query Result Web Part. Currently it displays 'Title' column of Discussion Board, and my caring requirement is presentation customization to hold double
columns of 'Title'+'Updated Date'. How could I add one more field 'Updated Date' to display in addition to that preexisting 'Title' field?
Any procedural steps to realize how to add Filed to display in Query Result Web Part?Hi Yoshihiro,
As I understand, you want to add the field to display in Query Result Web Part in SharePoint 2013.
Which web part does you use? Content query web part or search results web part?
If you use search results web part, you could edit the discussion board result template and add the updated field in the template.
You could go to Design Manager: Edit Display Templates (site setting-> look and feel->design manager->edit display template), download the Discussion Item.htm file, and edit the file.
After editing, upload the file.
The articles below are about how to modify an existing Display Template in SharePoint 2013.
http://www.learningsharepoint.com/2012/09/17/sharepoint-2013-the-new-display-templates-for-styling-your-content/
http://blogs.technet.com/b/sharepoint_quick_reads/archive/2013/08/01/sharepoint-2013-customize-display-template-for-content-by-search-web-part-cswp-part-1.aspx
If you use content query web part, you could edit the content query web part, in the Property Mappings section select the “Change the mapping of managed”, and add the “modifiedOWSDATE” (it means the last modified date) in the line, after
that you could see the update date under the title.
Best regards,
Sara Fan
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Displaying SQL Query results in rows instead of Columns
Hi,
I'm fairly new to Oracle so forgive me if this is a really stupid question.
I used Mysql for a while and if I wanted to display query results in rows instead of columns I could end the SQL command with '\G' instead of a semicolon.
This would give me output like...
Column_1: AAAA
Column_2: BBBB
Column_3: CCCC
Instead of the normal
Column_1 Column_2 Column_3
AAAAAA BBBBBBB CCCCCCC
Is there an equivalent in SQLPlus to the MySQL \G termination?
Thanks.
John> so forgive me if this is a really stupid question.
It is certainly not a stupid question, but pivoting is a very frequently asked and answered question:
[url http://forums.oracle.com/forums/search.jspa?threadID=&q=pivot&objID=f75&dateRange=all&userID=&numResults=15]http://forums.oracle.com/forums/search.jspa?threadID=&q=pivot&objID=f75&dateRange=all&userID=&numResults=15
In 11g you have special PIVOT and UNPIVOT functions.
Regards,
Rob. -
How to display MySql query results in multiple columns?
Hi, I know how to display PHP/MySq
l query results in a single column, but I am really stuck at displa
ying the results in multiple columns in DW CS4.
Can anyone help me with a code example?. I am new to php/mysql. ThanksAre you asking how to pivot the results of the query? Do a search for horizontal looping. If that's not what you are asking, please provide more details.
-
How to get the dynamic query result
If in one query, there is the amount range dimension, based on different dimension value combination, the customer revenue should be refreshed into different range, how to make it by cube?
eg.
Customer Store Material Month Amount
C001 M & S Tennis 2005/01 "10"
C001 Douglas Tennis 2005/02 "60"
C002 M & S Soccer 2005/01 "1"
C002 M & S Soccer 2005/02 "50"
C002 M & S Tennis 2005/02 "50"
C003 Douglas Tennis 2005/01 20
Query condition:
Time Customer Amount Range Amount
2005 C001 0~50_____________0
2005 C001 51~100___________70
2005 C001 100 +____________0
2005 C002 0~50_____________0
2005 C002 51~100___________0
2005 C002 100+_____________101
2005 C003 0~50_____________20
2005 C003 51~100___________0
2005 C003 100+_____________0
However, if I drill down Time into month, the result is total different, I only list the result related to customer C001
Time Customer Amount Range Amount
2005/01 C001 0~50____________10
2005/01 C001 51~100__________0
2005/01 C001 100 +___________0
2005/02 C001 0~50____________0
2005/02 C001 51~100__________60
2005/02 C001 100 +___________0
Any good solution on that? Thanks for any input.
Message was edited by: Lei ShaoHi, Sen,
I used your solution in my infocube and query, where I created a structure with 'between'. However, it is still the simple summation in different amount range.
Just like the following:
Sales ORG / Sales Office / Sales Rep / Amount
East / Atlanta / 1001 / 3
East / Atlanta / 1002 / 4
So the query result is the same:
S-ORG / S-Office / S-Rep / Amount Range / Amount
East / Atlanta / 1001 / 0~5 / 3
East / Atlanta / 1001 / 5+ / 0
East / Atlanta / 1002 / 0~5 / 4
East / Atlanta / 1002 / 5+ / 0
When I remove 'drill down' for Sales Rep, the result is:
S-ORG / S-Office / Amount Range / Amount
East / Atlanta / 0~5 / 7
East / Atlanta / 5+ / 0
However our expection for the result is different, because in business traction, if we remove sales rep, the sales org and sales office will get the sub-total like this: (we can image it with ABAP program sub-total)
Sales ORG / Sales Office / Amount
East / Atlanta / 7
So our expection for the result is:
S-ORG / S-Office / Amount Range / Amount
East / Atlanta / 0~5 / 0
East / Atlanta / 5+ / 7
Therefore, any good suggestion for this?
Thanks a lot
Regards,
LS -
How to get dynamic query results from an array/structure
I have an edit page that is set up to display phone number fields from the user stored in our database. The properties for the phone number fields are set by a structure of arrays. My problem is that when a user has more than 1 phone number in my database, my structures correctly show this on the form by displaying 2 phone numbers. The problem I am having is that when it shows multiple phone numebrs, it always shows the first result and just repeats it as opposed to dropping the 2nd or 3rd phone number in their respective fields.
array and structure code below:
<!--- Mobile --->
<cfset mobile = StructNew()>
<cfset mobile.dynamic = false>
<cfset mobile.dynamicLabel = '+ Add'>
<cfset mobile.fields = ArrayNew(1)>
<cfif #checkuserv.recordcount# GT '0'>
<cfset mobile.fields[1] = StructNew()>
<cfset mobile.fields[1].required = false>
<cfset mobile.fields[1].label = 'Phone Number 1'>
<cfset mobile.fields[1].displayIcon = false>
<cfset mobile.fields[1].voice = true>
<cfset mobile.fields[1].voiceChecked = true>
<cfset mobile.fields[1].toolTip = "Please choose if you would like to receive a text or voice call on this number">
</cfif>
<cfif #checkuserv.recordcount# IS '2'>
<cfset mobile.fields[2] = StructNew()>
<cfset mobile.fields[2].required = false>
<cfset mobile.fields[2].label = 'Phone Number 2'>
<cfset mobile.fields[2].displayIcon = false>
<cfset mobile.fields[2].toolTip = "Please choose if you would like to receive a text or voice call on this number">
<cfset mobile.fields[2].voice = true>
<cfset mobile.fields[2].voiceChecked = true>
</cfif>
<cfif #checkuserv.recordcount# IS '3'>
<cfset mobile.fields[3] = StructNew()>
<cfset mobile.fields[3].required = false>
<cfset mobile.fields[3].label = 'Phone Number 3'>
<cfset mobile.fields[3].displayIcon = false>
<cfset mobile.fields[3].toolTip = "Please choose if you would like to receive a text or voice call on this number">
<cfset mobile.fields[3].voice = true>
<cfset mobile.fields[3].voiceChecked = true>
</cfif>
Here is the code for my fields that call the array info:
<!--- Voice 1 --->
<cfloop index="i" from="1" to="#ArrayLen(mobile.fields)#">
<cfif i EQ 1 OR NOT mobile.dynamic OR form.mobileDisplayed GTE i>
<cfparam name="form.areacode_#i#" default="">
<cfparam name="form.prefix_#i#" default="">
<cfparam name="form.suffix_#i#" default="">
<div class="fieldBlock phoneBlock" id="phoneBlock#i#">
<label for="areacode_#i#">
<cfif mobile.fields[i].required><span>*</span></cfif>
<cfif mobile.fields[i].displayIcon><img src="/images/sm_phone.jpg" /></cfif>
#mobile.fields[i].label#:
</label>
<div class="inputBlock">
<input type="text" maxlength="3" onKeyUp="numTyped(this, 'prefix_#i#', 3, event)" name="areacode_#i#" id="areacode_#i#" class="areacode" value="#trim(left(checkuserv.sub_user_number, '3'))#" />
<input type="text" maxlength="3" onKeyUp="numTyped(this, 'suffix_#i#', 3, event)" name="prefix_#i#" id="prefix_#i#" class="prefix" value="#trim(mid(checkuserv.sub_user_number, "4", '3'))#" />
<input type="text" maxlength="4" name="suffix_#i#" id="suffix_#i#" class="suffix" value="#trim(mid(checkuserv.sub_user_number, "7", '4'))#" />
<cfif StructKeyExists(mobile.fields[i], "voice") and mobile.fields[i].voice>
<div class="voice" id="voice#i#">
<input type="radio" value="0" name="voice_#i#"<cfif Not StructKeyExists(mobile.fields[i], "voiceChecked") or Not mobile.fields[i].voiceChecked> checked="checked"</cfif> />
<label>Text</label>
<input type="radio" value="1" name="voice_#i#"<cfif StructKeyExists(mobile.fields[i], "voiceChecked") and mobile.fields[i].voiceChecked> checked="checked"</cfif> />
<label>Voice</label>
</div>
</cfif>
<cfif StructKeyExists(mobile.fields[i], "toolTip") and mobile.fields[i].toolTip neq "">
<div class="toolTip" id="toolTip_#i#" title="#mobile.fields[i].toolTip#" onClick="alert('#mobile.fields[i].toolTip#')">?</div>
</cfif>
</div>
<!--- This number was invalid or if geocoding failed, and they've picked a carrier to override, display the carrier override dropdown--->
<cfif ListFindNoCase(invalidMobileIndexList, i) or ( showMap and IsDefined("form.carrierOverride" & i) )>
<div id="carrierOverrideBox#i#" class="carrierOverrideBlock">
<label>Carrier:</label>
<div class="inputBlock">
<select name="carrierOverride#i#" id="carrierOverride#i#">
<option value="-1">-- Pick your carrier --</option>
<cfloop query="carriers">
<!--- 1111 is voice, 0 is NONE, don't display --->
<cfif Not ListFindNoCase("0,1111", carriers.carrier_id)>
<option value="#Trim(carriers.carrier_id)#"<cfif IsDefined("form.carrierOverride" & i) and form["carrierOverride" & i] eq Trim(carriers.carrier_id)> selected="selected"</cfif>>#Trim(carriers.carrier_title)#</option>
</cfif>
</cfloop>
</select>
<a href="http://www.inspironlogisticscontact.cfm?account_id=#account_id#&carrierOverride=1"
title="Carrier help"
onClick="window.open('http://www.inspironlogisticscontact.cfm?account_id=#account_id#&carrierOverride=1','#accou nt_id#','width=500,height=800,scrollbars=no,screenX=100,screenY=100,top=100,left=100,resiz able=1'); return false;"
>?</a>
</div>
</div>
</cfif>
<cfif mobile.dynamic AND i EQ form.mobileDisplayed AND i LT ArrayLen(mobile.fields)>
<div class="dynamicAddBlock dynamicAddMobileBlock" id="dynamicAddmobile_#i#">
<a href="javascript: submitAddField('mobile')">#mobile.dynamicLabel#</a>
</div>
</cfif>
</div>
</cfif>
</cfloop>
<cfif mobile.dynamic>
<input name="mobileDisplayed" id="mobileDisplayed" value="#form.mobileDisplayed#" type="hidden" />
</cfif>
<input name="carrierOverrideActive" id="carrierOverrideActive" value="<cfif carrierOverrideActive>1<cfelse>0</cfif>" type="hidden" />
I have been stuck on this for days, finally turning to the forum today with a few different issues. I hate trying to work within the framwork of other peoples code.
I use coldfusion 8I broke the chunk of code away from the page and am now getting teh phone numbers in the right spots, but I am still getting a coldfusion error.
Element 2 is undefined in a Java object of type class coldfusion.runtime.Array.
Here is my code...
<cfset invalidMobileIndexList = "">
<cfset showMap = false>
<cfset carrierOverrideActive = false>
<!--- Voice 1 --->
<cfloop index="i" from="1" to="#ArrayLen(mobile.fields)#">
<!------> <cfif i EQ 1 OR NOT mobile.dynamic OR form.mobileDisplayed GTE i>
<cfparam name="form.areacode_#i#" default="">
<cfparam name="form.prefix_#i#" default="">
<cfparam name="form.suffix_#i#" default="">
<div class="fieldBlock phoneBlock" id="phoneBlock#i#">
<label for="areacode_#i#">
<cfif mobile.fields[i].required><span>*</span></cfif>
<cfif mobile.fields[i].displayIcon><img src="/images/sm_phone.jpg" /></cfif>
#mobile.fields[i].label#:
</label>
<cfoutput query="checkuserv" ><div class="inputBlock">
<input type="text" maxlength="3" onKeyUp="numTyped(this, 'prefix_#i#', 3, event)" name="areacode_#i#" id="areacode_#i#" class="areacode" value="#trim(left(checkuserv.sub_user_number, '3'))#" />
<input type="text" maxlength="3" onKeyUp="numTyped(this, 'suffix_#i#', 3, event)" name="prefix_#i#" id="prefix_#i#" class="prefix" value="#trim(mid(checkuserv.sub_user_number, "4", '3'))#" />
<input type="text" maxlength="4" name="suffix_#i#" id="suffix_#i#" class="suffix" value="#trim(mid(checkuserv.sub_user_number, "7", '4'))#" />
<cfif StructKeyExists(mobile.fields[i], "voice") and mobile.fields[i].voice>
<div class="voice" id="voice#i#">
<input type="radio" value="0" name="voice_#i#"<cfif Not StructKeyExists(mobile.fields[i], "voiceChecked") or Not mobile.fields[i].voiceChecked> checked="checked"</cfif> />
<label>Text</label>
<input type="radio" value="1" name="voice_#i#"<cfif StructKeyExists(mobile.fields[i], "voiceChecked") and mobile.fields[i].voiceChecked> checked="checked"</cfif> />
<label>Voice</label>
</cfif></div></cfoutput>
<cfif StructKeyExists(mobile.fields[i], "toolTip") and mobile.fields[i].toolTip neq "">
<div class="toolTip" id="toolTip_#i#" title="#mobile.fields[i].toolTip#" onClick="alert('#mobile.fields[i].toolTip#')">?</div>
</cfif>
</div>
<!--- This number was invalid or if geocoding failed, and they've picked a carrier to override, display the carrier override dropdown--->
<cfif ListFindNoCase(invalidMobileIndexList, i) or ( showMap and IsDefined("form.carrierOverride" & i) )>
<div id="carrierOverrideBox#i#" class="carrierOverrideBlock">
<label>Carrier:</label>
<div class="inputBlock">
<select name="carrierOverride#i#" id="carrierOverride#i#">
<option value="-1">-- Pick your carrier --</option>
<cfloop query="carriers">
<!--- 1111 is voice, 0 is NONE, don't display --->
<cfif Not ListFindNoCase("0,1111", carriers.carrier_id)>
<option value="#Trim(carriers.carrier_id)#"<cfif IsDefined("form.carrierOverride" & i) and form["carrierOverride" & i] eq Trim(carriers.carrier_id)> selected="selected"</cfif>>#Trim(carriers.carrier_title)#</option>
</cfif>
</cfloop>
</select>
<a href="http://www.inspironlogistics.com/wens/contact.cfm?account_id=#account_id#&carrierOverride= 1"
title="Carrier help"
onClick="window.open('http://www.inspironlogistics.com/wens/contact.cfm?account_id=#account_id#&carrierOverride= 1','#account_id#','width=500,height=800,scrollbars=no,screenX=100,screenY=100,top=100,left =100,resizable=1'); return false;"
>?</a>
</div>
</div>
</cfif>
<cfif mobile.dynamic AND i EQ form.mobileDisplayed AND i LT ArrayLen(mobile.fields)>
<div class="dynamicAddBlock dynamicAddMobileBlock" id="dynamicAddmobile_#i#">
<a href="javascript: submitAddField('mobile')">#mobile.dynamicLabel#</a>
</div>
</cfif>
</div>
</cfif>
<cfif mobile.dynamic>
<input name="mobileDisplayed" id="mobileDisplayed" value="#form.mobileDisplayed#" type="hidden" />
</cfif>
<input name="carrierOverrideActive" id="carrierOverrideActive" value="<cfif carrierOverrideActive>1<cfelse>0</cfif>" type="hidden" /><!------>
</cfloop> -
Display content query results horizontally
Hi,
Is there an easy way to configure the content query web part to display results horizontally?
thanks,
SherazadWould this help?
Rendering Content Query Web Part
results in Table Layout
Amit -
i have a c++ form that accepts data and saves it on a table in a database via a button click, this is the code for the eventprivate: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
String^ constring=L"datasource=localhost;port=3306;username=root;password=lampard";
MySqlConnection^ conDatabase=gcnew MySqlConnection(constring);
MySqlCommand^ cmdDatabase=gcnew MySqlCommand("insert into test.Data(Full_Name,Matric_No) values('"+this->textBox1->Text+"','"+this->textBox10->Text+"') ;" ,conDatabase);
MySqlDataReader^ myReader;
try{
conDatabase->Open();
myReader=cmdDatabase->ExecuteReader();
MessageBox::Show("Saved");
while(myReader->Read()){
}catch(Exception^ex){
MessageBox::Show(ex->Message);
NOW i want to send a query to give out this information in a new form or in a form exactly like the one used to enter the data, this is how far i have come
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
this->Hide();
MyForm ^ Form = gcnew MyForm(this);
Form->ShowDialog();
String^ constring=L"datasource=localhost;port=3306;username=root;password=lampard";
MySqlConnection^ conDatabase=gcnew MySqlConnection(constring);
MySqlCommand^ cmdDatabase=gcnew MySqlCommand("Select * from test.Data where Matric_No='"+textBox1->Text +"';",conDatabase);
MySqlDataReader^ myReader;
try{
conDatabase->Open();
myReader=cmdDatabase->ExecuteReader();
while(myReader->Read()){
textBox1->Text ;
}catch(Exception^ex){
MessageBox::Show(ex->Message);
NOte: MyForm is the title of the form used to enter in the data sent to the database please how do i get the program to display the data meeting the query criteria into a form?i made textBox1 a public memeber of MyForm class and i changed
Form->ShowDialog(); to Form->Show() and i entered the code you advised me to and it displayed the result.i am very grateful, thank you -
Dynamic query results parsing/ dynamic reports
Is there a way of creating a cursor at runtime, then querying the contents of the the fields of the cursor, without knowing the names and field type of the individual columns at design time?
Say I did as a basic example
Create table testtable( id number,name varchar2(200), address1 varchar2(200),address2 varchar2(200),address3 varchar2(200),dateopened date);
Create or replace procedure testproc(v_query in varchar2(2000)) is
type cur_typ is REF CURSOR;
c_cursor cur_type;
BEGIN
open c_cursor for v_query;
loop
fetch the row into some sort of dynamic record dynrec;
exit when _cursor%notfound;
something like
if dynrec.fields(3).field_type='Date' then
dbms_output.putline( to_char(fields(3),'dd/mm/yy'));
else
dbms_output.putline(fields(3));
end if;
end loop;
close c_cursor;
END;
then i'd be calling it with
testproc('select name, address1,dateopened from testtable where id=24');
or
testproc('select address1,address2,address3 from testtable where id=24');
how do I define the dynamic record without knowing what table it refers to? And, how do I get the column contents?
Thanks for your input
JamesYou'll need a combination of USER|DBA|ALL_TAB_COLUMNS and the DBMS_SQL package.
Sorry, don't have time for more of a hint than that. -
Displaying SQL query results in tabular fashion
Hi,
I've a table having following three fields."Market segment","Status","No of Cust".
This table contains the name of market segment, name of user status(4 in no) and number of customers belonging to that status.
I need to create a query that will show the result in a tabular manner.like the following
Market segment.....status1.....status2........status3.......Total
MS1...................... 5..............6............... 7................18
ms2........................1..............6................8...............15
Total.......................x..............y.................z................T
(Ignore the dots(.))
Can some one help me with the query?
Thanks,
jajatiSee this link:
http://tonyandrews.blogspot.com/2004/10/pivot-queries.html -
Changing the display of query results on web
Hi,
Whenever I execute a query in IE, the standard report that comes up displays only 4 columns. Where can I change this number of columns that will be displayed?
I checked in RSCUSTV27 for the web template for Ad Hoc reporting, where there was no template specified. In case there is no template specified, it is going to use a standard 0QUERY_TEMPLATE web template for this. I could not find this standard web template in both active content and BI content.
Thanks,
SanjeevHi,
The standard web template is 0ANALYSIS_PATTERN, please open that in WAD and do the needful.
Thanks
Dipika -
Random Display of Query Results (no repeats)
First of all, I am a ColdFusion novice, so please forgive me
if the answer to this is either blantantly obvious or totally
impossible. Here is my problem.
I am querying a database with several hundred records. The
query will return on average between 10 - 15 records. I then want
to display 2 of these records on a random basis. I do have this
much working. The only problem is that every so often, the 2
records that are displayed are the same record. I need to avoid
this outcome. The 2 records should always be different.
Here is a simplified version of my code:
<CFQUERY name="queryname" datasource="datasourcename">
SELECT * FROM Residential
WHERE ListingOfficeName = 'Widner Realty'
</CFQUERY>
<cfset randRecordsList = ''>
<cfloop from="1" to="2" index="i">
<cfset randVal = randRange(1,queryname.recordCount)>
<cfset randRecordsList = listAppend(randRecordsList ,
randVal)>
</cfloop>
<cfloop list="#randRecordsList#" index="i">
<cfoutput>
#queryName.FieldName1
#queryName.FieldName2#
#queryName.FieldName3
#<br>
</cfoutput>
</cfloop>
Any help would be appreciated. Thanks in advance.Here is the general idea. You can look after the specifics.
// generate list of numbers.
maxnum = 15;
numlist = "";
for (i = 1; i lte maxnum; i = i + 1)
numlist = listappend(numlist, i);
// randomnums will have the two random numbers
RandomNums = "";
x = true;
while (x is true) {
ThisNum = RandRange(1, maxNum);
if (ListFind(RandomNums, ThisNum) is false)
RandomNums = ListAppend(RandomNums, ThisNum);
if (ListLen(RandomNums) is 2)
x = false;
} -
Unable to retrieve results using dynamic query
Hi Experts,
I have created a custom table and have created a custom bol to integrate it with web ui. I have redefined the dynamic query result method of genil layer. I find the data into LT_RESULT but when I invoke the root list method the LR_OBJECT does not contain the values.
Please see below the code that I have written.
====================================
METHOD IF_GENIL_APPL_INTLAY~GET_DYNAMIC_QUERY_RESULT.
DATA: LR_OBJECT TYPE REF TO IF_GENIL_CONT_ROOT_OBJECT,
LT_RESULT TYPE TABLE OF ZCRMST_XXXX,
LV_DYN_WHERE TYPE STRING,
LV_LEN TYPE I,
LS_RANGE TYPE SELOPTOBJ.
DATA: LT_XXXX TYPE TABLE OF SELOPTOBJ,
LT_YYYY TYPE TABLE OF SELOPTOBJ.
FIELD-SYMBOLS: <LFS_RESULT> TYPE ZCRMST_XXXX,
<LFS_SELECTION_RANGE> TYPE GENILT_SELECTION_PARAMETER.
decomposition of selection parameters and build a dynamic where condition
SELECT * FROM ZXXXX INTO TABLE LT_RESULT[].
CHECK LINES( LT_RESULT[] ) > 0.
LOOP AT LT_RESULT[] ASSIGNING <LFS_RESULT>.
LR_OBJECT = IV_ROOT_LIST->ADD_OBJECT( IV_OBJECT_NAME = 'Root'
IS_OBJECT_KEY = <LFS_RESULT>-XXXX ).
CHECK LR_OBJECT IS BOUND.
LR_OBJECT->SET_QUERY_ROOT( ABAP_TRUE ).
ENDLOOP.
ENDMETHOD.
==================================================
Thanks in advance,Hi,
Please check your get_objects method of the genil class. I made some changes to my implementation of get_objects method and it fixed the problem.
Regards,
Sandeep
Maybe you are looking for
-
How to create/Update a Custom Action in SAP PI 7.4
Good Morning, We have a requirement to restrict payload activity with access to confidential interfaces in SAP PI 7.4, do anyone has any idea to create/update the actions in PI. It will be of great help if anyone can share any documents related to th
-
What is the difference between these two programs?
Hello, I disassembled the following java class file. public class Test1 { public static final void test1 (byte[] ba, int v) { ba[0] = (byte)v; }and got the following output; Compiled from "Test1.java" public class Test1 extends java.lang.Obj
-
Save As windows takes a long time to come up.
After selecting File > Save As the Save As window takes about 15 seconds to come up. This is a brand new computer and a new installation of Adobe Acrobat XI v. 11.0.6. Has anyone ran into an issue like this before?
-
My iPad syncs with my iPhoto. Every few days the photos are gone from my iPad. This may be because it's full. Whether or not it finds photos, iTunes shows my iPad to have 10.3 GB free (except when I have photos synchronized, the gray "10.3G" i
-
I have suddenly lost the ability to put events in the calendar on my iPhone. I have rebooted twice and still nothing. Does anyone have a so,union for me?