How to get the records which contains single quotation.
Hi All,
I am having one table which contains the name like D'ales,D'silva.
I have have one filter in APEX as "Name".
I need to filter it like D' % this . How can i do in apex, the replace command is working in SQL but not in Apex.
My filter is like this.
IF :P136_NAME IS NOT NULL THEN
STR := STR||' AND UPPER( replace(name,'''','''''')) LIKE '''||UPPER(:P136_NAME)||''' ';
END IF;
very urgernt
Thanks in Advance,
Hi,
You can use:
STR := STR || ' AND instr(upper(NAME), upper(nvl(:P136_NAME, NAME))) > 0';Andy
Similar Messages
-
How to get the records which has a specified x/y coordinates
Hi,
How to get the records which has a specified x/y coordinates. I have a table which has street data. And another table has a point data. Now I just want to get the records from street data which includes the points in the point data table. Can any one give your suggestions
Thanks and Regards
AravindanAravinda,
If you want to find the line segments which intersect the given
set of points, you can do that with SDO_RELATE.
siva -
How to find the records using contains with the word like this 'some text-some text'?
Hi,
How to find the records using the full text contains keyword and that column contains ‘some text-some text’
In the above some text can be anything.
Does anybody know please let me know.
Thanks,Hello,
You can try to create a Full Text Index on the table and use CONTAINS() to get the record which contains the specify words.
For example:
SELECT * FROM TABLE WHERE CONTAINS(column_name, 'some text')
Reference:
Full-Text Search (SQL Server)
Creating Full Text Catalog and Full Text Search
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
How to get the records of the particluar day when delta laod failed (Urgent
Hello BW Gurus,
We are facing one serious issue. Here is the scenario.
1st time the Delta was init and for next consective two loads delta ran sucessfully... then next time delta got failed and the status is in red..... even though system started next delta loading and it has fetched the records and status is in green but not activated ,,,,,its happening still past one month so almost there are 20 requests which are to be get activatetd.
How to resolve this issue.
<b>And how to get the records of the partilcular day when the delta got failed.
</b>
Anyone have come across with this strange issue then help me out and i will rewarrd the points.
Urs,
Raki.Hi
Can you provide more details about your extractor and data targets.
Are you loading delta to an ODS ??
If you are loading to an ODS, The only solution i can see is to get the missing delta records via FULL UPDATE. Because if you delete the error request from ODS it will also delete the 20 successful requests above it.
Cheers
Praveen
null -
How to get the text which was clicked in a A href tag.
I am displaying the names from database in a page as hyperlink. When this hyperlink is clicked I want to display the corresponding address from DB. What the problem is when the link is clicked how to get the name which is clicked. I know only to link to a page using href. Now I want the text which has been clicked. Pls help.
Sorry to interrupt here!
For the code you suggested:
David,
if the target path is "http://localhost/testing.jsp", then
the code would become:
David.
So what would the difference between the code shown above and this code:
David
What is the function for these two symbols: "<<" and ">>"? -
How to get the user name from Single Sign On Process?
Post Author: sasikumar
CA Forum: Authentication
I am loging in Single Sign On Page. Then it goes to one JSP which lists out some links including InfoView link. While clicking InfoView link, I need to pass user name with the url for authentication. How and where can I get the user name?Care to be more specific what you mean with single sign-on? There are numerous ways this can be done.
Just how you get the authenticated o/s user from within an Oracle session, depends on just how the actual authentication to Oracle was done in order to create that Oracle session.
E.g. dealing in Oracle with a LDAP server is very different than dealing with a NT Primary/Secondary Domain Controller using o/s authentication, than dealing with a Java-based application server that does it own thing, etc. -
How to get the record count printed for the report in the Dashboards
Hi,
I would like to get the record count printed at the bottom of every dashboard report like:
< 1 - 25 of 6300 > instead of < 1 - 25 >
Any help is appreciated
Regards
BI have tried the following formula which identifies the lowest grain but it does not seem to give me correct result.. I am not getting the correct count. I am getting as 3.A work order can be updated only once at one point of time.hence the formula
MAX(RCOUNT(CAST("SR Wo Fact"."Crm Wo Number" AS CHAR) ||CAST("SR Wo Fact"."PSC Timestamp" as char)))
I tried only MAX(RCOUNT(1)), but I was able to get the record count as corect for Administrator but not for other users.
Has anyone come across this scenario.
Thanks Shravan
Edited by: 786443 on Aug 19, 2010 10:22 AM -
How to get the record set into array?
Hi,
I want to get the record set into array in the procedure and do the processing of the array later in procedure.
below is the stored procedure i am working on:
procedure bulk_delete_group(p_group_id in Array_GroupListID) as
begin
for i in p_group_id.first..p_group_id.last loop
--Here I have to get the list of user id before deleting group
SELECT user_id into *<SOME ARRAY>* FROM group_members WHERE group_id = p_group_id(i);
DELETE group WHERE group_id = p_group_id(i);
--Process the user id array after group deletion..
end loop;
end bulk_delete_group;
Thanks in advance
AdityaSomething like this ->
satyaki>
satyaki>select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
Elapsed: 00:00:00.20
satyaki>
satyaki>
satyaki>select * from emp;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
9999 SATYAKI SLS 7698 02-NOV-08 55000 3455 10
7777 SOURAV SLS 14-SEP-08 45000 3400 10
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
7566 JONES MANAGER 7839 02-APR-81 2975 20
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30
7698 BLAKE MANAGER 7839 01-MAY-81 2850 30
7782 CLARK MANAGER 7839 09-JUN-81 4450 10
7788 SCOTT ANALYST 7566 19-APR-87 3000 20
7839 KING PRESIDENT 17-NOV-81 7000 10
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
7876 ADAMS CLERK 7788 23-MAY-87 1100 20
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7900 JAMES CLERK 7698 03-DEC-81 950 30
7902 FORD ANALYST 7566 03-DEC-81 3000 20
13 rows selected.
Elapsed: 00:00:02.37
satyaki>
satyaki>create type np is table of number;
2 /
Type created.
Elapsed: 00:00:03.32
satyaki>
satyaki>Create or Replace Procedure myProc(myArray np)
2 is
3 i number(10);
4 rec emp%rowtype;
5 Begin
6 for i in 1..myArray.count
7 loop
8 select *
9 into rec
10 from emp
11 where empno = myArray(i);
12
13 dbms_output.put_line('Employee No:'||rec.empno||' Name:'||rec.ename);
14 end loop;
15 End myProc;
16 /
Procedure created.
Elapsed: 00:00:00.88
satyaki>
satyaki>
satyaki>declare
2 v np:=np(9999,7777);
3 begin
4 myProc(v);
5 end;
6 /
Employee No:9999 Name:SATYAKI
Employee No:7777 Name:SOURAV
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.30
satyaki>Regards.
Satyaki De. -
How to get selected record details when single selection is used in a table
Hi All,
Inside a query region I have created a table using region wizard,for this table I have added a singleSelection Item. What I want is , on selection of a particular record i want to update or view that record in a new page , for this I have added update and view icons in each row.
But I am unable to get the particular selected record
OATableBean tableBean = (OATableBean)webBean.findChildRecursive("ResultTableRN");
OASingleSelectionBean singleSelection = (OASingleSelectionBean)tableBean.getTableSelection();
For this singleSelection object I was unable to find any method which will give the value of the view attribute associated with it.
Anybody any suggestions regarding it ?
Thanks in advance,
Anant NImbalkar.Hi Anant,
here is how you have to do it
1) you need to enable PPR on that Singl selection , by changining the Action type =fireAction.
2) define the envent , EVENT
3) define paramters for that event. This is place that gives you handle to the Attribute of VO.
So you can define paremters such
Name = PARAM1
value =${oa.EqxContactPrivEOVO1.ContactPrivilegeId}
You can define as many paramters as you can for the vo field that u wanted to have.
Now in the procesformRequest() , all you do it handle the event EVENT and get the parameters
if ("EVENT".equals(pageContext.getParameter(EVENT_PARAM)))
String accountid= pageContext.getParameter("PARAM1");
You can refer developer guide for further details. -
How to fetch the records which matches a partial value?
Hi,
I have a table called Employee which contains the following value in Category column
ID Value
1 Student,Staff
2 Staff
3 Parent,Student
4 Member,Staff,Student
I wanted to fetch only 1 and 3rd and 4th record since it matches the value Student.
basically looking for the exact pattern matched with student separated by comma.
how to perform this query. it would be great, if i get the query in MS Sql also.
Edited by: Pannar on Nov 1, 2009 7:08 PMHi,
I'm sure the regexps will pass by, but here's a way (no idea if this will run in MS SQL, I'm not familiar with that):
HO%xe> with employee as ( --generating your sample data:
2 select 1 id, 'Student,Staff' category from dual union all
3 select 2, 'Staff' from dual union all
4 select 3, 'Parent,Student' from dual union all
5 select 4 ,'Member,Staff,Student' from dual
6 )
7 --
8 -- Actual query:
9 --
10 select id
11 , category
12 from employee
13 where category like '%Student%'
14 and instr(category, ',')>0;
ID CATEGORY
1 Student,Staff
3 Parent,Student
4 Member,Staff,StudentYou can use UPPER or LOWER as well, if you want to be case-insensitive.
edit
Something like:
MHO%xe> with employee as ( --generating your sample data:
2 select 1 id, 'Student,Staff' category from dual union all
3 select 2, 'Staff' from dual union all
4 select 3, 'Parent,Student' from dual union all
5 select 4 ,'Member,Staff,Student' from dual union all
6 select 5, 'Student' from dual union all
7 select 6, 'Student,' from dual
8 )
9 --
10 -- Actual query:
11 --
12 select id
13 , category
14 from employee
15 where regexp_like(category,',Student|Student,');
ID CATEGORY
1 Student,Staff
3 Parent,Student
4 Member,Staff,Student
6 Student,Might work as well.
Edited by: hoek on Nov 1, 2009 2:50 PM -
How to get the record selected in ztable based record in the output of alv
Hi All,
I have developed a report, it is displaying the output in ALV format.The list contained some 20 fields along with MATERIAL and BATCH. I have provided menu bar as extras -> ztable(it also contained MATERIAL and BATCH). But I have some issue when I select any record in the output then go to
path extras -> ztable, it has to select the record in ztable based MATERIAL and BATCH which i have selected in the output, then can you please provide solution for the above problem.
Thanks in advanceHi Dolly,
you can do this by,
data: index_rows type lvc_t_row,
index like line of index_rows.
* Get Selected rows from alv grid
clear index_rows. refresh index_rows.
"When you choose extras->ztable
call method alv_grid->get_selected_rows
importing
et_index_rows = index_rows.
* Now delete those rows from the ALV grid
loop at index_rows into index.
read table itab index index-index. "Lets say itab is the table you are displaying
if sy-subrc = 0.
perform bdc_sm30. "do simple bdc for sm30 with tab name and selected values
endif.
endloop.
Regards,
Manoj Kumar P
Edited by: Manoj Kumar on Feb 23, 2009 2:49 PM -
How to get the jpeg image contained in a URL
I have a jpeg image which is contained in a URL
http://california.biocars.org/viewFrames2?seqDir=/data/pub&
fFileName=test
How can I get the image only? The file is not in jpeg format
but in some other format which adds two lines in front of a
jpeg file. This jpeg file is what I want. But how to get it?
Note that california.biocars.org/ is inside a firewall and can not
be viewed from outside.
Thanks.right-click and select Save As... hahahaha
-
How to get the document which is associated with a process having specific Guid value?
when a PDF file is opened, AcroRd32.exe is started automatically, and we get the GUID value of that adobe reader.
In c#, can't we get the document associated with the GUID value, I mean the total PDF file which is opened in adobe reader at runtime.
Here I'm struck up in code, can anyone suggest how to where I was missing something.
Acrobat.CAcroAVDoc AcroAvDoc;
Type AcrobatCAcroType;
AcrobatCAcroType = Type.GetTypeFromCLSID(new Guid("{CA8A9780-280D-11CF-A24D-444553540000}")); This CLSID is of adobe reader's.
///////Here I think I'm missing something
Object obj = Activator.CreateInstance(AcrobatCAcroType);
AcroAvDoc = (Acrobat.CAcroAVDoc)obj;
I think I can get the full PDF document with AcroAvDoc.GetPDDoc();
Thank you...Post your question in the forum for Acrobat SDK.
-
OMBRETRIEVE: HOW i get the attribut which is connected to a given attribute
Hello!
I want to know the operator, the group and the attribute which is connected to a given attribute in a mapping.
I have the statement for the operator:
OMBRETRIEVE MAPPING 'MAPTAK_BBUE_101' GET OPERATORS CONNECTED TO ATTRIBUTE
'DWH_SZ' OF GROUP 'INGRP1' OF OPERATOR 'SPLIT'
Could anybody tell me the statements for the group and the attribute or the way to get this information?
Thanks in advance
Message was edited by:
adietze
Message was edited by:
adietzeHi,
I'm afraid there is no single command to get this information. I use a loop like the following:
set map "MAP_DIM_DEPOT"
set targetAttribute "DEPOTNUMMER"
set targetGroup "TARGET"
set targetOperator "DIM_DEPOT"
set opList [OMBRETRIEVE MAPPING '$map' GET OPERATORS CONNECTED TO ATTRIBUTE '$targetAttribute' OF GROUP '$targetGroup' OF OPERATOR '$targetOperator']
foreach op $opList {
set grpList [OMBRETRIEVE MAPPING '$map' OPERATOR '$op' GET GROUPS CONNECTED TO ATTRIBUTE '$targetAttribute' OF GROUP '$targetGroup' OF OPERATOR '$targetOperator']
foreach grp $grpList {
set attrList [OMBRETRIEVE MAPPING '$map' OPERATOR '$op' GROUP '$grp' GET ATTRIBUTES CONNECTED TO ATTRIBUTE '$targetAttribute' OF GROUP '$targetGroup' OF OPERATOR '$targetOperator']
foreach attr $attrList {
puts "$op.$grp.$attr"
}Regards,
Carsten. -
How to get the Objects which are used in the webi Report.
Hi Expert,
I am trying to get the list of WebI reports and Objects which are present in the report at BO 4.0.
I can able to get details for only the list of reports and universes.
Could any one help me to get those details.
Regards,
Murali SWith 4.0, there is no longer a way to do this using just the .NET SDK because the ReportEngine SDK no longer exists for .NET. Instead, you'll have to look at using the RESTful Web Services SDK for Webi which runs in the Web Application Container Server on your report server (NOT on the web server!)
RESTful web services are platform-independent and don't require the installation of any SDK files. Everything is done through standard HTTP Get, Put, and Post commands and the results are returned in either XML or JSON format. You don't mention which service pack of 4.0 you're on, but the RESTful web services have evolved over the course of the 4.0 service packs, so more recent is definitely better.
You can find the documentation for this in the "Development Information" section at help.sap.com/bobip40. There is also a "space" on SCN for this at http://scn.sap.com/community/restful-sdk and there are some links on this page for various resources and sample code.
-Dell
Maybe you are looking for
-
While transferring data from old iphone 3gs to new iphone4s through itunes the data in messages is not getting transferred.
-
Location of the picture during initial setup
I recently bought a Mac Pro.During the initial setup i was asked for picture.I clicked the same using the inbuilt web cam. This pic is displayed in my ichat and apple mail.But i am unable to search for this pic. Can anyone please tell me the location
-
External document (URL) don't save the link
Hi experts, I want to show "Service for object" button by creating Business Object (SWO1) with Interface = IFGOSXSERV Keyfield = Ref. Table --> ANLA Ref. field --> ANLN1 And my codes : CONSTANTS: OBJTYPE TYPE BORIDENT-OBJTYPE VALUE '
-
I recommended adding a map feature to Album 3 & to Elements 4. Maybe I got it. Can anyone speak in detail about the mapping function? How is the information written to the metadata? If I have non-North American coordinates for images, will the system
-
Iphoto and epson printer not talking
I am using the latest iphoto 6 on an intel 20 imac. the printer is the epson stylus photor1800 with firewire connection. I can't get the two to work together. I can't print photos. i get the "!" alert. the printer stops, this is seen in printer setup