How to display item procedure results in Search results?
I have a custom item type based on Image that displays a thumbnail instead of the image itself. This is accomplished using a procedure call and displaying the results with the item and modifying the region attributes to omit the image, but when the items appear in search results, the procedure results are not displayed.
How do I get an item's procedure results to display in search results?
TIA
Are 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.
Similar Messages
-
How to display stored procedure results in SJSC table?
I have been able to create a cached rowset and debug/watch the results, but do not understand how to transfer those results to a Table component. Can anyone point me in the right direction?
Details:
In SessionBean1.java, I declared the stored procedure and rowset along with get/set and update procedures:
// SLS trying stored procedure 20060412
private java.sql.CallableStatement spFXRatesStatement;
private CachedRowSetXImpl spFXRatesRowSet = new CachedRowSetXImpl();
public CachedRowSetXImpl getSpFXRatesRowSet() {
return spFXRatesRowSet;
public void setSpFXRatesRowSet(CachedRowSetXImpl crsxi) {
this.spFXRatesRowSet = crsxi;
public void updateSpFXRatesRowSet(String inDate, String inCcy) {
try {
spFXRatesStatement.setString(1, inDate);
spFXRatesStatement.setString(2, inCcy);
spFXRatesRowSet.populate(spFXRatesStatement.executeQuery(), 1);
catch (Exception e) {
// TODO - write exception code
// SLS trying stored procedure 20060412I then �prepared� the stored procedure within SessionBean1�s init() procedure:
// SLS trying a stored proc 20060412
try {
javax.naming.Context ctx = new javax.naming.InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource)ctx.lookup("java:comp/env/jdbc/bmo_fp");
java.sql.Connection conn = ds.getConnection();
// spGetFXRates
spFXRatesStatement = conn.prepareCall("{call GetFXRates(?, ?)}",
java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE, java.sql.ResultSet.CONCUR_READ_ONLY);
// next sp...
// clean up
ctx.close();
conn.close();
catch (Exception e) {
// TODO - add exception code
// SLS 20060412 I can see the results in a web page procedure with a �getSessionBean1().getSpFXRatesRowSet().getString(i)� watch.
try {
getSessionBean1().updateSpFXRatesRowSet("9/30/2005","EUR");
getSessionBean1().getSpFXRatesRowSet().first();
while (getSessionBean1().getSpFXRatesRowSet().isLast() != true) {
getSessionBean1().getSpFXRatesRowSet().next();
catch (Exception e) {
// TODO - specify error detail
}Now, how do I transfer these results to a table?I think you have to add a CachedRowSetDataProvider to you page been.
Then initalize it with your getSpFXRatesRowSet() in the init() method.
Then link you table to the CachedRowSetDataProvider. -
How to display items from database using catagorylookupdroplet
Hi everyone,
i want to know how to display items from database using catagorylookup droplet. if anybody have any code snippet please share it.
Thanks in advance,<dsp:droplet name=".................../CategoryLookup">
<dsp:param name="id" param="itemId"/>
<dsp:oparam name="output">
<dsp:valueof param="element.displayName"/>
<%-- This is show the Child Category --%>
<dsp:droplet name="......................./ForEach">
<dsp:param name="array" param="element.childCategories"/>
<dsp:oparam name="outputStart">Child Categories</dsp:oparam>
<dsp:oparam name="output">
<dsp:a href="">//bydefault it will take its own file's name
<dsp:param name="itemId" param="element.repositoryId"/> <dsp:valueof param="element.displayName"/>
</dsp:a>
</dsp:oparam>
</dsp:droplet>
<%-- This is show the Child Product --%>
<dsp:droplet name=".............../ForEach">
<dsp:param name="array" param="element.childProducts"/>
<dsp:oparam name="outputStart">Child Products</dsp:oparam>
<dsp:oparam name="output">
<dsp:droplet name="................/ProductLookup">
<dsp:param name="id" param="itemId"/>
<dsp:param name="elementName" value="Prod"/>
<dsp:oparam name="output">
<dsp:getvalueof id="img102" param="Prod.smallImage.url" idtype="java.lang.String">
<dsp:img height="250" width="250" src="<%=img102%>"/>
</dsp:getvalueof>
</dsp:oparam>
</dsp:droplet>
<dsp:a href="productView.jsp">
<dsp:param name="itemId" param="element.repositoryId"/>
<dsp:valueof param="element.displayName"/>
</dsp:a>
Hope this helps.
-RMishra -
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.
-
SSRS - How to display all the results from a query and then be able to filter the data
Let's say I have a simple query that will return products name, ID, price
SELECT pname,
pID,
price
FROM products
When I display the results in SSRS the user will (without entering any parameters) see something like:
Product Name | ID | Price
xyz 1 $10.00
.zzz 10 $4,000.00
How can I filter my results once they are displayed? For instance, Out of the results the user wants to see only the products where price is between $10 and $3000?
-AlanHi Visahk,
Maybe I did not explain my issue very good.
I want the user to first see all results (without entering the price range) - then if he wants she/he can filter the results by price.
As soon as I add
WHERE price BETWEEN @StartPrice AND @EndPrice
to my SQL query, the user is prompted to enter a price range before seeing any data.
-Alan
Ok for that what you can do is to set allow null value property for the parameters.
Then set NULL as default value for parameters in parameter properties tab
and make the query as below
WHERE price BETWEEN @StartPrice AND @EndPrice
OR (@StartPrice IS NULL AND @EndPrice IS NULL)
and then report will get executed without waiting for any prompt and user may change values at a later stage and rerun it
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
How to display complex type result from web service?
Hi,
I am trying to invoke a web service with the following code
but I can't display the result. Can someone help me how to display
the result?
<cfset randomID = CreateUUID()>
<cfset today = Now()>
<cfset args = StructNew()>
<cfset args.login = "wanna">
<cfset args.key = "#DateFormat(today, 'YYYY-MM-DD')#
#TimeFormat(today, 'hh:mm:ss')#:#Left(randomID,12)#">
<cfset args.hash= LCase(Hash("123456" & args.key,
"SHA"))>
<CFINVOKE webservice="
http://sandbox.voxbone.com/ws/services/VoxService?wsdl"
METHOD="getCountriesList"
AuthenticationToken="#args#"
RETURNVARIABLE="Result">
<cfoutput>#Result#</cfoutput>I have tried using that that it display the following. I was
expecting a list of coutries but it display the following text
only. Can you guide me in displaying list of countries?
"object of
voxbone.webservices.services.containers.ArrayOfCountry"
Methods hashCode (returns int)
equals (returns boolean)
getCountry (returns
[Lvoxbone.webservices.services.containers.Country;)
getCountry (returns
voxbone.webservices.services.containers.Country)
getSerializer (returns interface
org.apache.axis.encoding.Serializer)
getDeserializer (returns interface
org.apache.axis.encoding.Deserializer)
getTypeDesc (returns org.apache.axis.description.TypeDesc)
setCountry (returns void)
setCountry (returns void)
getClass (returns java.lang.Class)
wait (returns void)
wait (returns void)
wait (returns void)
notify (returns void)
notifyAll (returns void)
toString (returns java.lang.String) -
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 -
How to display stored procedure
what is the command to display stored procedure through sqlplus.
If you would like to get a view about the parameters of the procedure, just use
SQL> desc <procedure name>;
If you would like to see the code for the procedure, then use (assuming you are logged in as the owner of the procedure)
SQL> SELECT Text FROM User_Source WHERE Name ='PROCEDURENAME' ORDER BY Line;
Message was edited by:
Satish Kandi
@Dave: Sorry I did not see your post. -
How to display check box in the search help restriction pop-up window
Hi Experts,
I have created one searc help with dialog value restrictions. Search help contains 4 fields.
Out of which one field has length one character.
As oon as user press on F4 on particular field, it will display pop-up window with restrictions and displayed 4 fields.
I would like to show that field ( one character length field) as check box in search help restrictions pop-up window.
Pls help me ,... How can we acheive this..
Thanks
RaghuUr Exact Requirement,
Types : begin of itab,
fields type c,
Check type c,(For Check Box)
end of itab.
data it_tab type standard table of itab.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_input-low.(If it is in select-options)
CLEAR v_input.
GET CURSOR FIELD s_input VALUE v_input.
CALL FUNCTION 'AIPC_CONVERT_TO_UPPERCASE'
EXPORTING
i_input = v_input
i_langu = sy-langu
IMPORTING
e_output = v_input.
CLEAR s_input-low.
IF v_input NE '' .
IF v_input NE '?'..
v_input1-sign = 'I'.
v_input1-option = 'CP'.
v_input1-low = v_input.
APPEND v_input1.
ENDIF.
ENDIF.
SELECT DISTINCT Field
FROM Table
INTO TABLE it_tab
WHERE field IN v_input.
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
i_title = 'Select Colors'
i_selection = 'X'
i_zebra = 'X'
i_screen_start_column = 5
i_screen_start_line = 5
i_screen_end_column = 30
i_screen_end_line = 12
i_checkbox_fieldname = 'CHECK'
i_tabname = 'IT_TAB'
i_scroll_to_sel_line = 'X'
it_fieldcat = it_fieldcat1
i_callback_program = sy-repid
i_callback_user_command = 'USER_COMMAND1'
IMPORTING
es_selfield = selfield
TABLES
t_outtab = it_tab
EXCEPTIONS
program_error = 1.
Cheers,
Naveen -
How to display the Overall result value at the top of work book
Hi,
How can i display the value of Overall result(Sum of the Total) column at the top of the work book in Text field.
Thanks
SreadharGo to Query Global properties in Query designer and you can find a setting to show result rows on top. This setting will show overall result as first row in the report. But I don't think you can show it in Text field in WB.
-
How to display item when mouse moves over Column value??
Hi there
It would be helpful if you could resolve the following :
i) I need to display the column 'A' values of my report in a Text field when mouse moves over column B of my report.
ii) I can able to display the same column value when mouse moves over or onclick happens. but my requirement is something like i have to display the other column value when mouse moves over.
iii) Also i noticed that, i can able to display the item only on "Display only Item" and not on Text field.
Any pointers to display my column value in Text field when onclick happens on my report column?
iv) One more thing that i noticed, i can able to perform onclick or mouse over only on Editable column and not on
non editable columns.
Any pointers on how to achieve the same when mouse moves over Non editable column of report?
Reference: I have created a dummy application (refer the following link), where i can able to display column value Salary on display only item using mouse move Event.
My requirement: when i click column Ename , the text field should show salary.
http://apex.oracle.com/pls/otn/f?p=56045:1
User:guest
Pswd: apex_demo
Any pointers on this would be appreciated.
Thanks
VijayVijay,
If you use Jquery then this should do the trick.
$(document).ready(function() {
$(".t20Report t20Standard tr").hover(function() {
$("#P2_SALARY").attr("innerHTML",$(this).find("td:last input").attr("value"));
{code}
after looking at the source of your page it seems that your class for your report region is *class="t20Report t20Standard"* I am not 100% sure but you might have to correct that in the template. I am not sure how the selector will handle the space in the class name.
Hope this helps,
Tyson -
How to Display Item Property Description
Hi
In Sales Quotation lines i want to display the name of the item property on selecting item . How this can be achieved.
ThanksHi Sanju
In Sales Quotation rows i enter item no , after entering item no i want property name should be displayed.
I have defined properties
Paper Roll
Cotton Roll
Licosys Roll
Now if item is Cotton Roll only its Cotton Roll will be selected . In sales quotation i wanted if item is cotton roll then property cotton roll should be displayed . It is not mandatory if item property is cotton roll , item name will be also like that .
I am sorry if i am not able to explain correctly
Thanks -
How to display backend procedure Messages into forms6i or 10g
Hi,
I have a procedure on oracle db. I am calling this procedure from form6i on when-button-pressed trigger with parameters. now i want to display some message from db procedure to oracle form. please suggest me the way to do that.
Thanks
R. S. Bishti want to display some message from db procedure So, if this procedure has no OUT parameter, how can it return a message? Maybe it is not a procedure but a function? If so, you can return the message in forms like this:
v_message := db_function(<parameters>);
message(v_message); -
PE51 - How to display a custom result in a PE51 forms?
Hi experts,
I want to display the result of a specific Module Function in a PE51 form (payslip).
The module function returns a table with a proper contain for each employee / period.
I don't know the size of the table (number of lines) for each employee, and data may change.
For example 2 pieces of payslip from 2 employees :
Name : Mr Smith
Entry 1 | Good Father
Name : Mr John
Entry 1 | Tall
Entry 2 | Funny Guy
Please, could you help me to find a standard friendly solution?
I imagine I have to use a window with a specific line and so on but I don't know "where" to insert the module function call and which table I have to fill.Do you think it's impossible to display a specific table in a PE51 form respecting the standard?
-
How to Display Current Quarter results in WebI report?
Hi Guys,
I have a requirement where a WebI report should open up on current quarter basis by default. I have checked the refresh on Open in the document properties.What changes or formulae do I need to make/create in order to open the report with current quarter results?
Appreciate any help.
Thanks & Regards,
Anila.Hi Anila,
Do you mean if a user is running a report on the first quarter, the report should display data for the first quarter only?
If yes, here is the solution:
Create a formula:
CurrQtr = If (Quarter(CurrentDate())) = MyQuarterObject THEN "Show"
Then put a ReportFilter CurrQtr=Show
Regards,
Ashvin
Maybe you are looking for
-
Connection Error with iPod mini to Bose Home Theater System
When connecting my iPod mini to my Bose Home Theater system, it recognizes that iPod has been connected, but after the "Acquiring Signal" process, it gives me an "iPod connection error. Please re-insert iPod into docking station." I tried several tim
-
Convert Smartform in WORD Document
Hi Gurus How can i convert a smartform Output in a word document ??? and download into PC.. Regards Gregory
-
How to remove a source from health
So silly me allowed the link for the Weight Watchers app to Health when asked. After playing with it, I don't want it linked. Anyone figure out how to REMOVE a source? It's the only source I have linked, I go to the sources screen, I see weight wa
-
Hi experts , i am confusing user exit and customer exit plz give good diffrence and where we use these exits thanks and advance
-
I have a question about the new Flash CS3, do any one know why it seems to load so slow? I made a homepage with CS3 but in actionscript 2.0 and it seems loading slower than Flash 8 did, is it so? And why does the CS3 Flash put Javascript in the webpa