Using attributes in a Query, doesnu00B4t work!
I have implemented an infocube 0SD_C03, and i have my material attributes filled in the 0MATERIAL characteristic, but when i use them in the query, the don't appear.
Can somebody help me?
Thank You
Hi Dirk,
I'have done everything ok, create the new objects, for our material classifications, create the transfer rules, update roles, infosources, adding the 0material characteristics, put the new attributes as navigational, and filled all with the data necessary, but i have now idea that the master data have to be activated just in the end!!!!
thanks a lot, i have my problem solved!!!!
Similar Messages
-
How to use attributes from different context nodes in one view?
I am VERY new to the concept of CRM and currently working on creating an alternate version of the BP_HEAD_SEARCH. With help from SAPPRESSs book 'SAP CRM Web Client' i was ble to create my own simple Z-component.
However after going back and forth the book and the forum (including this [article|https://wiki.sdn.sap.com/wiki/display/CRM/Howtoaddanexistingfieldtoasearchpageofadifferent+component]) i was not able to find a solution to my problem. My current search uses BuilHeaderAdvancedSearch as context node for searching. But the search should also be able to use attributes from BuilActivity, which is directly related to BuilHeader. I can't seem to find a way to get attributes from BuilActivity into the search window of my component without having to change SAP-Standard.
Is this really the only way? Please advise on possible code and insertion point.Any suggestions?
-
How to use the same POWL query for multiple users
Hello,
I have defined a POWL query which executes properly. But if I map the same POWL query to 2 portal users and the 2 portal users try to access the same page simultaneously then it gives an error message to one of the users that
"Query 'ABC' is already open in another session."
where 'ABC' is the query name.
Can you please tell me how to use the same POWL query for multiple users ?
A fast reply would be highly appreciated.
Thanks and Regards,
SandhyaBatch processing usually involves using actions you have recorded. In Action you can insert Path that can be used during processing documents. Path have some size so you may want to only process document that have the same size. Look in the Actions Palette fly-out menu for insert path. It inserts|records the current document work path into the action being worked on and when the action is played it inserts the path into the document as the current work path..
-
Can't get IVI Power Meter error query to work properly.
I have been trying to use the IviPwrMeter Error-Query.vi to read possible errors coming from the Power Meter. However, I have found that no errors can be detected using this vi. This is because the returned value 'status' is wired over to the 'error code' input of 'IviPwrMeter Error Converter.vi' and the status value will always be equal to VI_SUCCESS as the attached code signifies.
All of this code was generated by either LabWindows/CVI and/or LabView.
If I wire the error code output of 'IviPwrMeter_error_query' function to the error code input of 'IviPwrMeter IVI error converter.vi', the errors on the Power Meter is at least detected.
Am I doing something wrong here or are there other work arounds?
Source listing of driver call:
ViStatus _VI_FUNC age4418b_error_query (ViSession vi, ViInt32 *errCode,
ViChar errMessage[])
ViStatus error = VI_SUCCESS;
checkErr( Ivi_LockSession (vi, VI_NULL));
if (errCode == VI_NULL)
viCheckParm( IVI_ERROR_INVALID_PARAMETER, 2, "Null address for Error Code");
if (errMessage == VI_NULL)
viCheckParm( IVI_ERROR_INVALID_PARAMETER, 3, "Null address for Error Message");
if (!Ivi_Simulating(vi)) /* call only when locked */
ViSession io = Ivi_IOSession(vi); /* call only when locked */
checkErr( Ivi_SetNeedToCheckStatus (vi, VI_TRUE));
viCheckErr( viPrintf(io, "YST:ERR?"));
viCheckErr( viScanf (io, "%ld,\"%256[^\"]", errCode, errMessage));
else
/* Simulate Error Query */
*errCode = 0;
strcpy (errMessage, "No error.");
Error:
Ivi_UnlockSession(vi, VI_NULL);
return error;Dennis,
I get the same results as you if I don't have a power meter connected. However, this doesn't supprise me because the session handle is probably checked at a higher level.
The calling hiearchy is as follows (I think, because I don't have all of the code) IviPwrMeter Error Query.vi -> IviPwrMeter_error_query (IviPwrMeter.dll) ->age4418b_error_query (age4418b.dll). I would guess that the session is validated in the second layer and not the bottom layer where the actual instrument error query is happening.
Something you may try. If you have any instrument, write a simple program to get a valid handle then call the error query using the error cluster to link them together. Set a breakpoint before the error query, run the program, use MAX to send an invalid command and create an error. Then resume your original program and see if an error is reported in the error cluster after executing the IVI error query.
Bob -
How can I remove ASCII text from a field when I use it in a query
How can I remove ASCII text from a field when I use it in a query?
I am running a select statement on a table that appears to have ASCII text in some of the fields. If I use these fields in the where statement like the code below nothing returns:
SELECT FIELD1 FROM TABLE1 WHERE FIELD1 IS NULL
But the field looks empty if I do a straight select without the where clause. Additionally, one of the fields has text but appears to be padded out with ASCII text, which I need to strip out before I can use this field in a where or join statement. I have tried using a trim, ltrim, rtrim, to_char, nvl, decode and nothing works. When I use excel to run the same query it looks as if these ASCII fields are boxes.
I have asked our DBA team to see what they can do to prevent these from going into the table, but in the mean time I still need to run this report.
Do you have any suggestions?Can you provide an example? I've been trying (for
example) "select translate(' test one', ascii(' '),
'X') from dual" with no luck.
Thank you.To replace space, you should query like this:
select translate(' test one', chr(32), 'X') from dual instead of select translate(' test one', ascii(' '), 'X') from dual Thanks,
Dharmesh Patel -
Update query not working in the JDBC sender Communication channel
Hi,
We are working on JDBC to File scenario. As per the configuration, XI should pick the data from SQL database every 20 secs and should update the corresponding flag. We are using subquery in the select and update statement as both header and detail tables are involved.
Now the issue is, select query is working fine but update statement is not working as expected. It is somehow updating some other records rather than doing for the ones selected by the adapter.
Moreover logSQLstatement is also not working. Hence we are unable to identify the records which are getting updated.
Please advise.Hi Rumi,
See Question 8. Transaction Handling (Sender) in [SAP Note 831162 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 JDBC Adapter|https://websmp130.sap-ag.de/sap(bD1wdCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=831162].
8. Transaction Handling (Sender)
Q: If I have the following configured in a JDBC Sender:
Select Query:
SELECT column FROM TABLENAME WHERE FLAG = "TRUE"
Update Query:
UPDATE TABLENAME SET FLAG = "FALSE" WHERE FLAG = "TRUE"
How do I know that the JDBC adapter will not update newly added rows (rows that were
added between the time that the SELECT and UPDATE queries were executed) that were
not read in the initial SELECT query?
A: The SELECT and the UPDATE are run in the same DB transaction, i.e. both statements
have the same view on the database.
Make sure that both statements use the same WHERE clause. An additional
requirement for the correct operation of this scenario is the configuration of
an appropriate transaction isolation level on the database
(i.e., repeatable_read or serializable). You might also consider using a
"SELECT FOR UPDATE" statement instead of a plain SELECT statement to
ensure proper locking on the database. "SELECT FOR UPDATE"
is not supported in MS SQL database. In this case please make use of an
appropriate transaction isolation level on the database. For more details
please contact your DB vendors.
After, see Transaction Handling Issues in [SAP Note 1039779 - JDBC Adapter issues(Escape character,Transaction handling)|https://websmp130.sap-ag.de/sap(bD1wdCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1039779].
Best Regards.
Pedro Baroni -
Query Not Working Within CFFUNCTION
I've been a CF developer for 15 years and I've never run into anything this strange or frustrating. I've pulled my hair out for hours, googled, abstracted, simplified, prayed and done it all in reverse. Can you help me?
A cffunction takes one string argument and from that string I build an array of "phrases" to run a query with, attempting to match a location name in my database. For example, the string "the republic of boulder" would produce the array: ["the","republic","of","boulder","the republic","the republic of","the republic of boulder","republic of","republic of boulder","of boulder"].
Another cffunction uses the aforementioned cffunction and runs a cfquery. A query based on the previously given example would be...
select locationid, locationname, locationaliasname from vwLocationsWithAlias where LocationName in ('the','the republic','the republic of','republic','republic of','republic of boulder','of','of boulder','boulder') or LocationAliasName in ('the','the republic','the republic of','republic','republic of','republic of boulder','of','of boulder','boulder')
This returns 2 records...
locationid - locationname - locationalias
99 - 'Boulder' - 'the republic'
68 - 'Boulder' - NULL
This is good. Works fine and dandy. HOWEVER... if the string is changed to "the republic", resulting in the phrases array ["the","republic","the republic"] which is then used to produce the query...
select locationid, locationname, locationaliasname from vwLocationsWithAlias where LocationName in ('the','the republic','republic') or LocationAliasName in ('the','the republic','republic')
This returns 0 records. Say what?! OK, just to make sure I'm not involuntarily HIGH I run that very same query in my SQL console against the same database in the cf datasource. 1 RECORD!
locationid - locationname - locationalias
99 - 'Boulder' - 'the republic'
I can even hard-code that sql within the same cffunction and get that one result, but never from the dynamically generated SQL. I can get my location phrases from another cffunction of a different name that returns hard-coded array values and those work, but never if the array is dynamically built. I've tried removing cfqueryparams, triple-checking my datatypes, datasource setups, etc., etc., etc. NO DICE
WTF!? Is this an obscure bug? Am I losing my mind? I've tried everything I can think of and others (including Ray Camden) can think of.
ColdFusion 8 (with all the latest hotfixes)
SQL Server 2005 (with all the greatest service packs)
Windows 2003 Server (with all the latest updates, service packs and nightly MS voodoo)No, I haven't yet. I've never used SQL Profiler before. It can help me see what CFQUERY is sending to the server?
Incidentally, I just found something interesting. This code...
<cfset myQuery = "select locationid, locationname, locationaliasname from vwLocationsWithAlias where LocationName in ('the','the republic','republic') or LocationAliasName in ('the','the republic','republic')" />
<cfdump var="#myQuery#" />
<cfdump var="#request.qLocationsResult.sql#" />
Compare: <cfdump var="#compare(myQuery, request.qLocationsResult.sql)#" />
myQuery Len:<cfdump var="#len(preserveSingleQuotes(myQuery))#" />
SQL Len:<cfdump var="#len(request.qLocationsResult.sql)#" />
Produced this output:
select locationid, locationname, locationaliasname from vwLocationsWithAlias where LocationName in ('the','the republic','republic') or LocationAliasName in ('the','the republic','republic')
select locationid, locationname, locationaliasname from vwLocationsWithAlias where LocationName in ('the','the republic','republic') or LocationAliasName in ('the','the republic','republic')
Compare: 1
myQuery Len: 190
SQL Len: 211
The strings LOOK identical, but there's obviously something different between them. How in the heck can I find out what those differences are? -
Can we use Result from another query in Webi using Bex uery universe?
Hi,
Can we use Result from another query filter option in Webi to create a report using a Bex Query universe?
I need to create a report using two universes, one is Bex Query Universe and the other is Orcle universe. I have two queries, one is using Oracle universe; the other using Bex Query universe. I need to pass the Oracle data from the Oracle query to the Bex Query query to get the matched data from SAP Bex query.
I used Result from another query in the query filter panel for the query using Bex query universe. But I got an error saying that 'A filter contains a wrong value. you cannot run this query. (Error: WIS 00007). The data used in the filter on both sides are the same. they are char.
I have tested by using two queries from the same Bex query universe to see if the Result from another query filter option works. And I got the same error.
Has anyone run into the same issue and if this is possible and what should be the solution?
Thanks in advance!
Edited by: BO_Haiyan on Oct 6, 2010 3:47 PMIn that situation:
Create two queries : Oracle and BW query.
@ Report:
As you have to see result set from both the Dataproviders, correct? To achieve thise one must have common dimension objects to merge them at report and use Objects those are coming from both queries to use them in single Table/Report.
Unless you don't use Merge Dimensions, you don't get a chane to use both queries objects in single Table/Report. (It will give tooltip saying: You can't drop here -- Incompatable Objects)
In case, if you don't have common dimensions, change object definitions to Detail objects, for those required.
Hope it helps you.
Thank You!! -
Can't get query to work. table alias in subquery in FROM clause
How can I rearrange this query to work?
SELECT
TO_CHAR(dt.date_time, 'YYYY-MM-DD') start_date,
(SELECT COUNT(*) FROM
(SELECT DISTINCT a.non_asp, a.start_time, a.end_time
FROM appointments a
WHERE a.start_time >= dt.date_time AND a.start_time < dt.date_time + 1
) num_overlap
FROM
table(times_pkg.between_times(TO_DATE('2010-05-30'),
TO_DATE('2010-07-03'), 60*24, 'Y')) dtbetween_times is a table function that returns times at given intervals.
I am trying to get a count of distinct (non_asp, start_time, end_time) sets that fall on each day.
However, it doesn't recognize dt.date_time in the FROM clause.Hi,
A sub-query can be correlated only to its immediate parent. You're trying the correlate the SELECT DISTINCT sub-query to its grandparent.
You can re-write the sub-query as a join, like this:
SELECT TO_CHAR(dt.date_time, 'YYYY-MM-DD') start_date,
a.num_overlap
FROM table ( times_pkg.between_times ( TO_DATE('2010-05-30'),
TO_DATE('2010-07-03'),
60*24,
'Y'
) dt
JOIN (
SELECT start_time,
end_time,
COUNT (DISTINCT non_asp) AS num_overlap
FROM appointments
) a ON a.start_time >= dt.date_time
AND a.start_time < dt.date_time + 1
;You could also eliminate the extra level between the SELECT DISTINCT sub-query and the main query by using SELECT (DISTINCT ...). -
Imagine an invoice was created for a customer on the 1st of January 2008 for £1000
On the 1st of Feb, he paid $300, owing $700
On the 1st of Mar, he paid $450, owing $250
On the 1st of Apr, he paid $250.
If I run an AR report today the 10th of Aug, I would see he owes nothing. What I want to do is to run the report today based on the 2nd of March and see a debt of £250. I dont want to use the posting date in the selection criteria henceI think this is the case when you use a key date but Im not sure how to use this in the query properties of BI7. What Characteristic do I need to specify as time dependant? Is there anything else I should consider?hi,
Key Date setting is for the 'time dependent' master data.
Lets say u have a Characteristic MATERIAL with a time dependent attribute MATERIAL GROUP as follows.
MATERIAL FROM TO MATERIAL GROUP
ABD 01/01/1995 12/31/2003 X
ABD 01/01/2004 12/31/9999 Y
Depending on what you have for the Keydate, the Material group is selected.
If your key date is, ex, 06/12/2001 there material group is X. Or if key date is 02/15/2005, material group is Y.
If you do not enter any value for keydate, system automatically assumes today' date.
hope it helps.. -
HOW TO USE ATTRIBUTE VALUE IN FOX FORMULA LOOP
HI,
IAM SUMMING UP AMOUNT BASED ON BELOW COMBINATION AND THROWING MESSAGE IF AMOUNT IS EXCEEDING OPENPO VALUE....AND IS WORKING FINE...NOW I HAVE A ENHANCE MENT THAT I HAVE TO USE ATTRIBUTE PROFIT CENTER VALUE IN THE LOOP. I HAVE DECLARED THIS --- PC = ATRV('0PROFIT_CTR',CC,CA). AND TRY TO USE PC IN LOOP..BUT SYSTEM PROPOSING PC SHOULD BE FIELD TO BE CHANGED..BUT IN MY CASE IT IS ATTRIBUTE WHICH WILL DISPLAY IN LAYOUT...AND FIRST LOOP SHOULD HAPPEN BASED ON PC ( FOREACH CCODE,FP,CR,CA,GL,PO,PC.)....PLEASE PROVIDE UR HELP.
DATA SUM1 TYPE F.
DATA SUM TYPE F.
DATA PO TYPE EBELN1.
DATA GL TYPE 0GL_ACCOUNT.
DATA CC TYPE 0COSTCENTER.
DATA VN TYPE 0VENDOR.
DATA SN TYPE SCRNUM1.
DATA SD TYPE SCRDATE.
DATA VS TYPE KDATB.
DATA VE TYPE KDATE.
DATA CCODE TYPE 0COMP_CODE.
DATA CA TYPE 0CO_AREA.
DATA FP TYPE 0FISCPER.
DATA CR TYPE XPRV_CIR.
DATA PC TYPE 0PROFIT_CTR.
CCODE = VARV('XCOMPCO').
CA = VARV('XCOAREA').
FP = VARV('XPERIOD').
CR = VARV('XPRVCIRC').
PC = ATRV('0PROFIT_CTR',CC,CA).
FOREACH CCODE,FP,CR,CA,GL,PO,PC.
SUM = 0.
FOREACH CC,VN,SN,SD,VS,VE.
IF {0AMOUNT,CCODE,CC,CA,FP,GL,PC,VN,PO,VS,VE,SD,SN,CR}
{OPENPOVAL,CCODE,CC,CA,FP,GL,PC,VN,PO,VS,VE,SD,SN,CR}.MESSAGE E001(UPF)WITH
'PROVISION AMOUNT SHOULD BE LESS THAN OPENPOVALUE'.
ELSE.
SUM = SUM +
{0AMOUNT,CCODE,CC,CA,FP,GL,PC,VN,PO,VS,VE,SD,SN,CR}.
ENDIF.
ENDFOR.
FOREACH CC,VN,SN,SD,VS,VE.
IF {0AMOUNT,CCODE,CC,CA,FP,GL,PC,VN,PO,VS,VE,SD,SN,CR} = 0
AND
{OPENPOVAL,CCODE,CC,CA,FP,GL,PC,VN,PO,VS,VE,SD,SN,CR} = 0.
SUM1 = 0.
ELSE.
SUM1 = SUM.
ENDIF.
IF SUM1 >
{OPENPOVAL,CCODE,CC,CA,FP,GL,PC,VN,PO,VS,VE,SD,SN,CR}.
MESSAGE E001(UPF)WITH
'PROVISION AMOUNT(SUM) SHOULD BE LESS THAN OPENPOVALUE'.
ENDIF.
ENDFOR.
ENDFOR.
THANKS,
RAJAHi,
If you want to read the value of profit center using keyword ATRV then you need to input values of parameters CC and CA.
Now the first line that you have written, to derive PC based on CC and CA
PC = ATRV('0PROFIT_CTR',CC,CA).
[code}
here CC value is not determined at runtime ; I mean what will be the value of CC when this line is executed. This line is not inside any foreach loop nor you are reading the value of CC using any variable.
if you want to use PC in first FOREACH CCODE,FP,CR,CA,GL,PO,PC. loop then CC value have to be present.
Put ATRV code inside a loop where CC and CA values are read.
Thanks
Pratyush -
How to use attribute in report
Hi,
I want to make one report like --
PONO,Material,Plant Delivery Time,POQTY,GRNQTY,Actual Delevery time,Lead Time(Plant del.time-actual deli.time)
where plant del. time is the attribute of 0Mat_Plant
my problem is how to incorporate and use PLant deli.time in formula
regards
suyashHi Suyash,
0MAT_PLANT can not be attribute of 0MATERIAL because it is more detailed than 0MATERIAL
If you are using 0MAT_PLANT in your query but it is not in Purchase Cube I assume you are using a Multiprovider to build your query.
You can only add 0MAT_PLANT to your cube, and not to 0MATERIAL for the previous reason. You can add 0MAT_PLANT to ypur cube if you have in the same 0MATERIAL and 0PLANT. In this case insert 0MAT_PLANT in cube and in Update Rules map 0MAT_PLANT with the same field that is feeding 0MATERIAL. The problem will be for the historical data, if you want 0MAT_PLANT also for these you have to empty your cube and feed it again.
Ciao.
Riccardo. -
XML attributes makes my query return no rows
Hello everyone,
I've an odd problem.
I'm querying some XML, but the attributes in one of the tags make my query return no rows; if I remove the attributes, then the query works as expected.
The XML is below; it's the attributes in the Report tag that cause the issues:
<result errorCode="0">
<return>
<Report
xsi:schemaLocation="Items_x0020_status_x0020_information http://******-****/ReportServer?%2FReports%2FContent%20Producer%20Reports%2FItems%20status%20information&rs%3AFormat=xml&rc%3ASchema=True"
Name="Items status information" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="Items_x0020_status_x0020_information">
<Tablix1>
<Details_Collection>
<Details ItemId="914P7" Username="test" user_role="IT"
first_name="Barry" last_name="Donovan" organisation=""
content_format="On_Screen" modified_date="26/05/2011 13:16:49"
item_status="Draft" status_date="" component_name="" demand="" />
</Details_Collection>
</Tablix1>
</Report>
</return>
</result>My query is:
select
a.item_id
,a.username
,a.user_role
,a.first_name
,a.last_name
,a.supplier_id
,a.format
,a.modified_date
,a.item_status
,a.completion_date
,a.component_code
from dual
,xmltable
('/result/return/Report/Tablix1/Details_Collection/Details'
passing p_xml
columns
item_id varchar2(1000) path '@ItemId'
,username varchar2(1000) path '@Username'
,user_role varchar2(1000) path '@user_role'
,first_name varchar2(1000) path '@first_name'
,last_name varchar2(1000) path '@last_name'
,supplier_id varchar2(1000) path '@organisation'
,format varchar2(1000) path '@content_format'
,modified_date varchar2(1000) path '@modified_date'
,item_status varchar2(1000) path '@item_status'
,completion_date varchar2(1000) path '@status_date'
,component_code varchar2(1000) path '@demand'
) a;I've tried stripping out the attributes in the tag, which does work, but some of the XML I'm expecting back may be quite large (many records), so that caused issues in itself. I'd rather deal with it and not mess with the XML itself if possible.
Any help would be hugely appreciated!
Thank you very much in advance.
Robin
Edited by: User_resU on Apr 12, 2012 2:50 PMExample:
SQL> ed
Wrote file afiedt.buf
1 with t as (select xmltype('<result errorCode="0">
2 <return>
3 <Report
4 xsi:schemaLocation="Items_x0020_status_x0020_information http://******-****/ReportServer?%2FReports%2FContent%20Producer%20Reports%2FItems%20status%20information&rs%3AFormat=xml&rc%3ASchema=True"
5 Name="Items status information" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6 xmlns="Items_x0020_status_x0020_information">
7 <Tablix1>
8 <Details_Collection>
9 <Details ItemId="914P7" Username="test" user_role="IT"
10 first_name="Barry" last_name="Donovan" organisation=""
11 content_format="On_Screen" modified_date="26/05/2011 13:16:49"
12 item_status="Draft" status_date="" component_name="" demand="" />
13 </Details_Collection>
14 </Tablix1>
15 </Report>
16 </return>
17 </result>') as xml from dual)
18 --
19 -- end of test data
20 --
21 select
22 a.item_id
23 ,a.username
24 ,a.user_role
25 ,a.first_name
26 ,a.last_name
27 ,a.supplier_id
28 ,a.format
29 ,a.modified_date
30 ,a.item_status
31 ,a.completion_date
32 ,a.component_code
33 from t
34 ,xmltable
35 (xmlnamespaces('Items_x0020_status_x0020_information' as "x0"),
36 '//x0:Report/x0:Tablix1/x0:Details_Collection/x0:Details'
37 passing xml
38 columns
39 item_id varchar2(1000) path '@ItemId'
40 ,username varchar2(1000) path '@Username'
41 ,user_role varchar2(1000) path '@user_role'
42 ,first_name varchar2(1000) path '@first_name'
43 ,last_name varchar2(1000) path '@last_name'
44 ,supplier_id varchar2(1000) path '@organisation'
45 ,format varchar2(1000) path '@content_format'
46 ,modified_date varchar2(1000) path '@modified_date'
47 ,item_status varchar2(1000) path '@item_status'
48 ,completion_date varchar2(1000) path '@status_date'
49 ,component_code varchar2(1000) path '@demand'
50* ) a
SQL> /
ITEM_ID
USERNAME
USER_ROLE
FIRST_NAME
LAST_NAME
SUPPLIER_ID
FORMAT
MODIFIED_DATE
ITEM_STATUS
COMPLETION_DATE
COMPONENT_CODE
914P7
test
IT
Barry
Donovan
On_Screen
26/05/2011 13:16:49
Draft -
Like Phrase DW query not working
I'm using the DW Recordset Query to search the news table,
filtering where story CONTAINS form variable Request.search
here is my page code, the input textfield has a dynamic
Request Variable called search that I dragged onto this textfield.
I hoped that my query would filter the news full STORY by whatever
the user enters into the textfield.
In Simple mode of the Recordset Dialog box it works
perfectly, it asks me to enter a test value and I get accurate
results BUT when I toggle over to the Advanced view of the same
Recordset Dialog box and try test I do not get a chance to enter a
value but always get 4 out of 7 results. When I upload it live I
get the 4 results no matter what I type in text field.
Code attached and thank you
JimHi Jim,
jimkemble wrote:
> I'm using the DW Recordset Query to search the news
table, filtering where
> story CONTAINS form variable Request.search
>
> here is my page code, the input textfield has a dynamic
Request Variable
> called search that I dragged onto this textfield. I
hoped that my query would
> filter the news full STORY by whatever the user enters
into the textfield.
>
> In Simple mode of the Recordset Dialog box it works
perfectly, it asks me to
> enter a test value and I get accurate results BUT when I
toggle over to the
> Advanced view of the same Recordset Dialog box and try
test I do not get a
> chance to enter a value but always get 4 out of 7
results. When I upload it
> live I get the 4 results no matter what I type in text
field.
When you go into advanced view, the value that you enter is
the default
for MMColParam. In your case its the number 1. During
testing, enter
your test value in the default value field of MMColParam, but
once your
done, use something that you hope to never have, like -1.
Steve
> Code attached and thank you
> Jim
>
> <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
> <!--#include
file="../Connections/orig_lcba_connection.asp" -->
> <%
> Dim rsKeyword__MMColParam
> rsKeyword__MMColParam = "1"
> If (Request.Form("Request.search") <> "") Then
> rsKeyword__MMColParam = Request.Form("Request.search")
> End If
> %>
> <%
> Dim rsKeyword
> Dim rsKeyword_cmd
> Dim rsKeyword_numRows
>
> Set rsKeyword_cmd = Server.CreateObject
("ADODB.Command")
> rsKeyword_cmd.ActiveConnection =
MM_orig_lcba_connection_STRING
> rsKeyword_cmd.CommandText = "SELECT * FROM news WHERE
story LIKE ?"
> rsKeyword_cmd.Prepared = true
> rsKeyword_cmd.Parameters.Append
rsKeyword_cmd.CreateParameter("param1", 200,
> 1, 255, "%" + rsKeyword__MMColParam + "%") ' adVarChar
>
> Set rsKeyword = rsKeyword_cmd.Execute
> rsKeyword_numRows = 0
> %>
> <%
> Dim Repeat1__numRows
> Dim Repeat1__index
>
> Repeat1__numRows = -1
> Repeat1__index = 0
> rsKeyword_numRows = rsKeyword_numRows + Repeat1__numRows
> %>
> <%
>
> Repeat1__numRows = 10
> Repeat1__index = 0
> rsKeyword_numRows = rsKeyword_numRows + Repeat1__numRows
> %>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
> "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="
http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
> <title>Untitled Document</title>
> </head>
>
> <body>
> <table width="650" border="0" cellspacing="0"
cellpadding="0">
> <tr>
> <td><form id="form1" name="form1" method="get"
action="kw_search_jim.asp">
> <input name="search" type="text" id="search"
value="<%= Request("search")
> %>" />
> <br />
> <input type="submit" value="Search" />
> </form> </td>
> <td> </td>
> </tr>
> </table>
> <p> </p>
>
> <table border="1">
> <tr>
> <td>newsDate</td>
> <td>title</td>
> <td>story</td>
> <td>author</td>
> </tr>
> <% While ((Repeat1__numRows <> 0) AND (NOT
rsKeyword.EOF)) %>
> <tr>
> <td
valign="top"><%=(rsKeyword.Fields.Item("newsDate").Value)%></td>
> <td
valign="top"><%=(rsKeyword.Fields.Item("title").Value)%></td>
>
<td><%=(rsKeyword.Fields.Item("story").Value)%></td>
> <td
valign="top"><%=(rsKeyword.Fields.Item("author").Value)%></td>
> </tr>
> <%
> Repeat1__index=Repeat1__index+1
> Repeat1__numRows=Repeat1__numRows-1
> rsKeyword.MoveNext()
> Wend
> %>
> </table>
> </body>
> </html>
> <%
> rsKeyword.Close()
> Set rsKeyword = Nothing
> %>
> -
Bex Query is working fine in Bex Analyzer but in Webi 4.0 its not.
Hi guys,
I am using Bex Query as a datasrouce for a Interactive Analysis 4.o. but its giving me the following error below:
Note: i can use other Bex Queries just fine in interactive analysis, and this problomatic query is working fine in Bex Analyzer.
" The DSL Service returned an error: com.businessobjects.mds.services.helpers.OlapUniverseHelper$DimensionsFromCubeFailedException: Cannot retrieve dimensions from cube Commercial Margin
at com.businessobjects.mds.services.helpers.OlapUniverseHelper.createSapBusinessLayer(OlapUniverseHelper.java:428)
at com.businessobjects.mds.services.helpers.OlapUniverseHelper.createBusinessLayer(OlapUniverseHelper.java:246)
at com.businessobjects.dsl.services.datasource.impl.AbstractOlapUniverseProvider.createOlapUniverse(AbstractOlapUniverseProvider.java:62)
at com.businessobjects.dsl.services.datasource.impl.DirectOlapAccessUniverseProvider.createOlapUniverse(DirectOlapAccessUniverseProvider.java:94)
at com.businessobjects.dsl.services.datasource.impl.DirectOlapAccessUniverseProvider.provideUniverseFromInlineResource(DirectOlapAccessUniverseProvider.java:82)
at com.businessobjects.dsl.services.datasource.impl.AbstractUniverseProvider.provideUniverse(AbstractUniverseProvider.java:48)
at com.businessobjects.dsl.services.universe.impl.AbstractUniverseService.provideUniverse(AbstractUniverseService.java:82)"
Sheikh Hassan AyubHi,
There has been some escalation with regards to similar problem with the early version of BI 4.x.
I would advise you to download the latest version and latest patch in your QA environment and do some testing with the same query.
Regards
Steph
Maybe you are looking for
-
Problem in creating entity service record
Hello!!! I am creating new record in service AEs_Employee emp; emp = es_EmployeeServiceProxy.create(); emp.setPernr("12345123"); emp.getAspect().sendChanges(); Some mistakes occur during application launch: The initial exception that
-
Ipod recovery please help!!!
I recently had to have my laptop wiped and subsequently lost all my itunes library. I did have all my music saved on my ipod though but ust as i have got round to getting the music from the ipod to my new itunes it is now saying my ipod is in recover
-
I have oralce 9i and 10g installed in my machine, the OS is windows. 1. Now, i need to open an sqlloader which is of version oracle 9i. Now what is happening is when i got to command prompt and type sqlldr, by default it is taking oracle 10g sqlloade
-
Trouble using MyFaces dataTable and t:columns tag in JSR168 portlet
Hi, I have a question and need some help. I am building a JSF portlet, and trying to use Appache MyFaces custom tags. I need to use t:dataTable, and t:columns tags to display a dynamic ListDataModel, since the number and content of columns will vary.
-
View Actual Size in Adobe Programs
I noticed that viewing images in Actual Size in every programs appear smaller that what they are supposed to be. Is there a work around for it? I'm printing a packaging and I really need to see on screen what it will actually turn out to be like in r