How can I add encoding code before column link works?

Hi, guys:
I have a question that may be silly. I want to pass multiple parameters of a row in an interactive report to another page through column link by specifing URL. It works OK. However, I found some of the parameters such as address in the report including character "#" or ".", parameters behind these characters cannot be passed by APEX. I know I need to encode it, and I know how to encode it. But I do not know where to add PL/SQL code so whenever user click the column link, the address can be encoded at first then to pass to another page?
Thanks in advance.
Sam

Always post code wrapped in tags<tt>\...\</tt> tags to preserve formatting and special characters.
lxiscas wrote:
I am using such a query in page 211, Offender_id is primary key, In the column of MAP, I add URL as follows to pass values to page 3006 to generate a google map (I am using APEX 4.1):
f?p=&APP_ID.:3006:&SESSION.::&DEBUG.::P3006_H_OFFENDER_NAME,P3006_H_OFFENDER_ID,P3006_H_ADDRESS_LATITUDE,P3006_H_ADDRESS_LONGITUDE,P3006_H_PHYSICAL_LATITUDE,P3006_H_PHYSICAL_LONGITUDE,P3006_H_ADDRESS,P3006_H_PHYSICAL_ADDRESS:#Offender Name#,#Offender ID#,#Address Latitude#,#Address Longitude#,#Physical Latitude#,#Physical Longitude#,#Address#,#Physical Address#The problem is Address and Physical Address canot passed successfully.
select distinct 'MAP','Detail',so.doc_number as "DOC Number", so.offender_id as "Offender ID", so.first_name||' '|| so.middle_name||' '||so.last_name as "Offender Name",
so.date_of_birth as "Date of Birth",
(select sc1.description from sor_code sc1 where sc1.code_id=so.race) as "Race",
(select sc2.description from sor_code sc2 where sc2.code_id=so.sex) as "Sex",
nvl2(sl.address1, sl.address1||' '||sl.address2 ||' '||sl.city ||' '||sl.county||' '||(select sc3.description from sor_code sc3 where sc3.code_id=sl.state)||' '||sl.zip, 'Unkown Address')  as "Address",
nvl2(sl.physical_address1,sl.physical_address1||' '||sl.physical_city ||' '||sl.physical_county||' '||(select sc4.description from sor_code sc4 where sc4.code_id=sl.physical_state)||' '||sl.physical_zip, 'Unkown Address')  as "Physical Address",
sl.status as "Status",
sl.jurisdiction as "Jurisdiction",
to_char(sl.ADDRESS_LATITUDE) as "Address Latitude",to_char(sl.address_longitude) as "Address Longitude",
to_char(sl.physical_address_latitude) as "Physical Latitude",to_char(sl.physical_address_Longitude) as "Physical Longitude",
decode(rox.habitual, 'Y', 'Habitual', '') as "Habitual",
decode(rox.aggravated, 'Y', 'Aggravated', '') as "Aggravated",
rox.status as "Registration Status",
rox.registration_date as "Registration Date",
rox.end_registration_date as "End Registration Date"
from sor_location sl, sor_offender so, sor_code sc, registration_offender_xref rox, sor_last_locn_v sllv
where rox.offender_id=so.offender_id
and sllv.offender_id(+)=so.offender_id
and sl.location_id(+)=sllv.location_id
and rox.status not in ('Merged')
and rox.reg_type_id=1
and upper(rox.status)='ACTIVE'
and nvl(rox.admin_validated, to_date(1,'J'))>=nvl(rox.entry_date, to_date(1,'J'))
and ((so.first_name is not null and so.first_name like '%'||:P21_TF_FIRST_NAME||'%')
or (:P21_TF_FIRST_NAME is null)
and ((so.last_name is not null and so.last_name like '%'||:P21_TF_LAST_NAME||'%')
or (:P21_TF_LAST_NAME is null))
and ((sl.address1||sl.address2 is not null and sl.address1||sl.address2 like '%'||:P21_TF_ADDRESS||'%')
or (:P21_TF_ADDRESS is null))
and ((sl.city is not null and sl.city like '%'||:P21_TF_CITY||'%')
or (:P21_TF_CITY is null))
and ((sl.county is not null and sl.county =:P21_SL_COUNTY)
or (:P21_SL_COUNTY is null))
and (((select sc5.description from sor_code sc5 where sc5.code_id=sl.state and sc5.description=:P21_SL_STATE) is not null )
or (:P21_SL_STATE is null))
and ((sl.zip is not null and sl.zip =:P21_TF_ZIP_CODE)
or (:P21_TF_ZIP_CODE is null))
I'd suggest passing <tt>sor_offender.offender_id</tt> and <tt>sor_location.location_id</tt> to items on page 3006. Retrieve the derived values for <tt>P3006_H_OFFENDER_NAME, P3006_H_ADDRESS_LATITUDE, P3006_H_ADDRESS_LONGITUDE,P3006_H_PHYSICAL_LATITUDE, P3006_H_PHYSICAL_LONGITUDE, P3006_H_ADDRESS, P3006_H_PHYSICAL_ADDRESS</tt> using queries in a Before Header process.

Similar Messages

  • IF_IXML : How can i add encoding with value UTF-8 to the document object??

    Hi
    i want to create a xml file with the following content:
    <?xml version="1.0" encoding="UTF-8"?>
    <OpenSearchDescription xmlns="http://...."> 
    </OpenSearchDescription>
    i did this with the if_ixml interface and rendered the content in a file 'D:\usr\sap\IFD\DVEBMGS01\log\TEST_out.xml
    <?xml version="1.0"?>
    <OpenSearchDescription xmlns="http://...."> 
    </OpenSearchDescription>
    BUT the document attribut(?) encoding="UTF-8"?> is missing!
    How can i add encoding with value UTF-8 to the document object?? it should look like:
    <?xml version="1.0" encoding="UTF-8"?>
    *here is my coding.
    TYPE-POOLS: ixml.
    CLASS cl_ixml DEFINITION LOAD.
    DATA: lo_ixml           TYPE REF TO if_ixml,
          lo_streamfactory  TYPE REF TO if_ixml_stream_factory,
          lo_document       TYPE REF TO if_ixml_document,
          lo_parent         TYPE REF TO if_ixml_element,
          lo_ostream        TYPE REF TO if_ixml_ostream,
          lo_renderer       TYPE REF TO if_ixml_renderer,
         lv_rc           TYPE i.
    lo_ixml = cl_ixml=>create( ).
    lo_streamfactory = lo_ixml->create_stream_factory( ).
    lo_document = lo_ixml->create_document( ).
    lo_parent = lo_document->create_simple_element( name   = 'OpenSearchDescription'  "root node
                                                    parent = lo_document ).
    lo_parent->set_attribute_ns( name   =  'xmlns'
                                 value  = 'http://....' ).
    *rausrendern in file
    lo_ostream = lo_streamfactory->create_ostream_uri( system_id = 'D:\usr\sap\IFD\DVEBMGS01\log\TEST_out.xml' ).
    lo_renderer = lo_ixml->create_renderer( ostream  = lo_ostream
                                            document = lo_document ).
    lv_rc = lo_renderer->render( ).
    Thanks for help
    Britta

    Use the following code:
    set an document encoding
      l_encoding = l_ixml->create_encoding( character_set = 'UTF-8'
                                            byte_order = if_ixml_encoding=>co_none ).
      l_success  = l_ostream->set_encoding( encoding = l_encoding ).
    create a xml renderer
      l_renderer = l_ixml->create_renderer( document = l_doc ostream  = l_ostream ).

  • How can I add advertisement code into flash game?

    hi mates,
    just want to ask about loading advertisement code!
    How do you add the advertisement code (adsense) into flash games??
    my site Funny Games have over 5k games but they are getting from others sites thus I have no original files. How can I add more code into the current files?

    Unless the games were pre-made to allow you to specify some variables in the page code or some external file, you won't be having any luck... you cannot add code to the games unless you have the source files, which you apparently don't have.

  • HT4061 HOW CAN I GET THE CODE TO MAKE IT WORK IN EGYPT

    HOW CAN I GET THE CODE TO MAKE IT WORK IN EGYPT
    this is my details    serial: DN*******8GH
    IMEI : ****
    MEID : ****
    MODE : MD656LL
    <Edited By Host>

    If your phone is not unlocked you need to contact the carrier it's locked to.

  • How can I add the number of columns/row starting with the build in "Text Report" example in the LabVIEW

    Hi All,
    I am wondering how can I add the numbers of row and column from the existing build-in "text report"
    VI ? If possible, would you mind showing me step-by-step because I am a new user and I am not familiar with the labview software.
    Thanks

    Hi,
    Easy text Report is for saving to a file. Do you mean you just want to add the totals of two arrays and write that? In that case I would just append the totals before writing to file.
    Jeff | LabVIEW Software Engineer

  • How can I add extra tick-box columns to the Evaluation report template?

    Is there a simple way to add additional tick-box columns to the evaluation report template? I want to have a column for every day of the week.

    Are you part of a class project? We've just had another query on this template.
    +Menu > View > Show Ruler/Invisibles+
    The "columns" are just boxes and text aligned with tabs.
    Select all of them and slide the tabs on the ruler across to tighten up the spacing.
    Add more tabs to the ruler by clicking on the ruler where you want them, then right clicking on the Tab markers to change them to the type you want.
    Copy and paste extra copies of the +tabs plus box+ in each line.
    Peter

  • How can i add Image or Picture Column to Matrix

    Hello Experts,
    I want to add Image or Picture column on my Add-on form matrix
    I am working on 8.81 PL5
    Please help out.
    Regards,
    Bhavank

    Hi Bhavank,
    Try This.....
          ocolumn = ocolumns.Add("CoGS", SAPbouiCOM.BoFormItemTypes.it_PICTURE)
            ocolumn.Editable = True
            ocolumn.Width = 60
            oitem.FromPane = 9
            oitem.ToPane = 9
            ocolumn.TitleObject.Caption = "COGSProfitCenter"
            ocolumn.DataBind.SetBound(True, "", "Folder")
            ouserdatasource = oOrderform.DataSources.UserDataSources.Item("Folder")
            omatrix.AddRow()
            omatrix.GetLineData(1)
            ouserdatasource.ValueEx = "c:\41224_128614427186464_128584050522835_146624_537710_s.jpg"
            omatrix.SetLineData(1)
    Thanks
    Shafi

  • How can i add to a listBox items near in a new column other items ?

    The items on the right i changed the property of the listBox1 righttoleft to Yes.
    My problem is i want to build a new column for the number so each number i'm adding will be next on the left to the belong item string. And not under it like now.
    1. Maybe i need to use another control and not listBox ?
    2. How can i add column/s and also maybe adding a title to each column like: Names Id Number....?

    If you want columns, you should consider a
    ListView or
    DataGridView.

  • How can I add a new column in compress partition table.

    I have a compress partition table when I add a new column in that table it give me an error "ORA-22856: CANNOT ADD COLUMNS TO OBJECT TABLES". I had cretaed a table in this clause. How can I add a new column in compress partition table.
    CREATE TABLE Employee
    Empno Number,
    Tr_Date Date
    COMPRESS PARTITION BY RANGE (Tr_Date)
    PARTITION FIRST Values LESS THAN (To_Date('01-JUL-2006','DD-MON-YYYY')),
    PARTITION JUNK Values LESS THAN (MAXVALUE));
    Note :
    When I create table with this clause it will allow me to add a column.
    CREATE TABLE Employee
    Empno Number,
    Tr_Date Date
    PARTITION BY RANGE (Tr_Date)
    PARTITION FIRST Values LESS THAN (To_Date('01-JUL-2006','DD-MON-YYYY')),
    PARTITION JUNK Values LESS THAN (MAXVALUE));
    But for this I have to drop and recreate the table and I dont want this becaue my table is in online state i cannot take a risk. Please give me best solution.

    Hi Fahed,
    I guess, you are using Oracle 9i Database Release 9.2.0.2 and the Table which you need to alter is in OLTP environment where data is usually inserted using regular inserts. As a result, these tables generally do not get much benefit from using table compression. Table compression works best on read-only tables that are loaded once but read many times. Tables used in data warehousing applications, for example, are great candidates for table compression.
    Reference : http://www.oracle.com/technology/oramag/oracle/04-mar/o24tech_data.html
    Topic : When to Use Table Compression
    Bug
    Reference : http://dba.ipbhost.com/lofiversion/index.php/t147.html
    BUG:<2421054>
    Affects: RDBMS (9-A0)
    NB: FIXED
    Abstract: ENH: Allow ALTER TABLE to ADD/DROP columns for tables using COMPRESS feature
    Details:
    This is an enhancement to allow "ALTER TABLE" to ADD/DROP
    columns for tables using the COMPRESS feature.
    In 9i errors are reported for ADD/DROP but the text may
    be misleading:
    eg:
    ADD column fails with "ORA-22856: cannot add columns to object tables"
    DROP column fails with "ORA-12996: cannot drop system-generated virtual column"
    Note that a table which was previously marked as compress which has
    now been altered to NOCOMPRESS also signals such errors as the
    underlying table could still contain COMPRESS format datablocks.
    As of 10i ADD/SET UNUSED is allowed provided the ADD has no default value.
    Best Regards,
    Muhammad Waseem Haroon
    [email protected]

  • How can I add a new column to Grid view under Tests tab

    I understand in "ORACLE Test manager for web Applications", the Grid view under Tests tab should be customised.
    How can I add a new column to Grid view under Tests tab? Thanks Katherine

    I don't think this is possible.
    Regards,
    Jamie

  • How can I add a new column to an Attachments Table

    How can I add a new column to an Attachments Table??
    And I want to remove the usage column also!
    Thanks!

    I tried to remove the usage column doing this:
    OAAttachmentTableBean attachTable = (OAAttachmentTableBean)webBean.findChildRecursive("attachTable");
    if (attachTable != null)
    attachTable.findChildRecursive("UsageTypeColumn").setRendered(false);
    but I'm getting null pointer exception on "UsageTypeColumn"...
    :(

  • In ABAP-HR, How can i add wage tyes in wage slip, PE51 transaction code

    Hi friends,
    How can i add wage type in the pay slip ie transaction code pe51.
    Thanks&Regards,
    Shiva Prasad

    have u seen my Reply to ur Prev.Post.
    Regards
    Prabhu

  • How can I add multi columns to a JCombo Box ?

    Dear experts,
    How can I add multi columns to a JCombo Box ?
    Thankx in advance
    Unique

    What do you mean by adding Multiple columns? JCombobox is a component in which you can choose a value from a list(rows) of values. Could you please explain why do you want multiple columns in the JComboBox. I suppose JComboBox is not meant for that.
    Thanks,
    Jana

  • How can I add a column in a finder window

    How can I add a column in a finder window? I'm working with music files (mp3 and other formats) and would like to sort by artist, album, etc but this columns will not show up in Finder. The info is there but I just can't get it in a column I can use to sort the list of music files. Please help.

    Are you using a folder system to organize your music?

  • How can I add jar files into the namespace in code?

    My friends:
    I need to add jar files into my namespace dynamicly in my code.But the jar files might be repeated, I am not sure.so, i wonder how can I add them into my namespace, ignoring the repeated files?
    This is my code:
    URL[] urlArrayA = new URL[5];
    urlArray[0] = sample1;
    urlArray[1] = sample2;
    URL[] urlArrayB = new URL[5];
    urlArrayB[0] = sample3;
    urlArrayB[1] = sample4;
    URLClassLoader urlClassLoaderA = URLClassLoader.newInstance(urlArrayA);
    URLClassLoader urlClassLoaderB = URLClassLoader.newInstance(urlArrayB);
    how can i visit classes in urlClassLoaderA from classes in urlClassLoaderB?

    could anyone please answer the question for me ? thank you...

Maybe you are looking for

  • HP Officejet Pro 8500a drops ability to network print after a period of time

    A recent development.  The printer has worked perfectly in the past. When I first boot up the printer, it prints wirelessly.  After it is inactive and I select another print job, the computer communicates to the printer.  The printer display and the

  • Can you change the song order in iTunes?

    I imported an album from my hard drive to iTunes but the songs are showing up out of order and I don't want to import the live album to my iPod in the wrong order. I've checked the info on all of the tracks and everything is correct. How do I get the

  • How OEM works with database

    Hi, We use OEM (12c),have db (11.2,10.2/1). How OEM works with database? When oem initated a job aginst  db,What are the steps preformed by OEM?What are the info updated in OEM DB and Normal DB regading jobs?And Where? Br

  • 2 iPods, 1 PC, same music wanted on both iPods

    I've an old brick 60GB iPod for myself and I've just bought a new nano for my wife. We both like the same music and am frightened of connecting the new nano to the PC in case it wipes the music from iTunes. Any advice on how I can get the same music

  • Can we change Condition Tables

    Dear Experts, can you please tell me can we change condition tables for SD example 017/018? T code for this is M/04 Requirement is now i need to check the checkbox With Release Status.. Can anybody help me? Sachin Edited by: Sachin Bidkar on Aug 12,