How to define a new parameter

Hi,
I want to improve a search by defining a new parameter. This parameter will replace (1,2,3,4) which is show below.
.. documentid IN (1,2,3,4)
Is it possible to define such parameters in APEX/SQL? if so, how can I do it? (I have tried some possible solutions but I did not get a result.)
(Oracle 10.2, APEX 3.2)
Thanks in advance,
Sedso
Edited by: Sedso on Aug 6, 2011 12:49 PM

I suppose you are talking about a report, right? I see 2 potential problems to be worked around:
1- how to pass the comma in an URL parameter, without making APEX understanding it as a separator for multiple parameters?
if you're running the report from a branch in other page, just check the 'save before branching' property.
Otherwise you will have to escape the commas, replacing it by some other character (like a '*', for example) right before submitting the page - of course you will need to add a computation to decode the conversion made (from '*' back to ',') in your report, in a Before Page style.
You can find more sophisticated solution at http://rokitta.blogspot.com/2009/07/apex-fp-syntax-with-flexible-parameter.html
2- how to utilize the parameter in the context of your query?
I'd suggest to create a dynamic query, like in the tutorial http://www.oracle.com/technetwork/developer-tools/apex/dynamic-report-092026.html
The query could be something like:
declare
q varchar2(4000);
begin
q:=' select col1, ';
q:=q||' col2, ';
q:=q||' col3 ';
q:=q||' from tabela ';
q:=q||' where documentid IN ' ||:p_in_clause '; -- like '(1,2,3,4)'
return q;
end;

Similar Messages

  • Define a new parameter - SE80?

    I need to define a new parameter that should be used/inserted into User Profile - Own Data -> Parameters and after that  should be checked into a program (if the user has that parameter or not).
    How can i define this new parameter? With SE80? What are all the steps (and how can i define what values should have this custom parameter)?
    Thank you!

    Hi
    You can create parameter-id as below.
    Go to Tcode:SM30......> Givae table name TPARA...>clik on Maintain
    ....> GIve the Parametr ID and enter   give the Text description
    and save.
    This way u can carte parametr id.
    In the Table for the filed u can assign at data element level.
    Regards,
    Pravin

  • How to define the application parameter 'sap.xss.BaseConfigurationID'

    Hello All,
    I am developing a webdynpro ESS custom self service application. I have completed the development of the DC. But at the end when I am creating the application for the DC, I am not able to figure it out how to define the application parameter 'sap.xss.BaseConfigurationID' for the application. I have defined remaining all the parameters as specified in the following link.
    [http://help.sap.com/erp2005_ehp_03/helpdata/EN/43/3b95dab4ab1800e10000000a1553f6/content.htm]
    Could any one please detail the process to define the parameter 'sap.xss.BaseConfigurationID' ?
    Thanks a lot.
    Regards,
    Seshu.

    Pick a representative file.
    Get info. (Command-i)
    There you will see a place "Open with" where you can select the application for that file.
    Hit the "Change all..." button to do this for all files of this type.
    charlie

  • How to define an new New transaction type in SRM Environment?

    Hi All,
    There is a situation where in I have to add anew transaction type and link it to the existing process.
    If I am going to
    SPRO->SRM->SRM Server -> Cross appl.Basic Setting ->
    Define transaction type
    It gives me an un editable screen.
    My question is how to define a new transaction type here
    Kindly Let me know if there is any way to do it through ABAP .
    Thanks And Regards,
    Rupesh

    When you have gone through the path you describe you end up with a screen with a line for "define transaction types". To the left of the line are two icons - one to execute the function (the execute icon) and one with documentation (the text icon). Click on the documentation icon.
    Rob

  • How can I add new parameter to a duplicate dashboard

    Hi everyone,
    My question is, if is possible to add a new parameter in parameter region to a duplicate dashboard from Profit and Loss dashboard, and if this is possible how can i do this.
    Thanks.
    Arnulfo

    Hi gloria79,
    Mail uses Contacts to store email addresses and group addresses.  You would need to create the desired group on your MacBook.
    This article discussed how it works.
    Mail (Mavericks): Address messages
    http://support.apple.com/kb/PH14922
    Thank you for using Apple Support Communities.
    Nubz

  • How to Define a new tax, same as WHT - 11i AP

    Hi,
    We use 11.5.8 Oracle Payables, We need to define a new tax (royalty tax) exactly similar to Withholding Tax.
    In the invoice distribution the tax line should be negative figure which will deduct the payment amount just like in WHT.
    Please let us know what type of Tax we should define to solve this and how to apply it in Invoices.
    Thanks!

    Hi,
    Please let us know what type of Tax we should define to solve this
    You description of Scenario is indicating that you should withhold a part of Invoice amount i.e the Amount is inclusive of Invoice Amount.
    Hence I think WHT is suitable for you.
    and how to apply it in Invoices.
    Define Withholding Tax options in Payable Options window.
    Define a Withholding Tax Code and Group.
    Enable WHT at Supplier Site and assign particular Tax group to Supplier Header or Site as per requirement.
    Define Special Calender Withholding Tax.
    When supplier is selected at Invoice level, Withholding Tax group shall be automatically populated at invoice level, which will take care of Withholding at the time of Invoice Validation or Payment as per Options set.
    Regards,
    Sridhar

  • How to define a new format of report in TestStand?

    Hi,
    The report autogeneration by TestStand is not suitable to print to my situation.
    So I want to define a new format of HTML report by myself. But I do not know how to get a new blank one.
    Thank for help.

    For a staring point, you should learn how TestStand creates the report at all. Please read this article.
    hope this helps,
    Norbert 
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How to add a new parameter to a forwarded request?

    Hi all,
    I have a RequestDispatcher that forwards my request into a servlet. However, if some processing error happens I would like to include another parameter (an error message) in my request being forwarded. Oh, yes, I don't want it to be via GET, but via POST.
    So, this
    getServletContext().getRequestDispatcher("/ProcServlet?message=nonononononon").forward(request, response);will not serve for my purposes. Also, I don't want to go into directly writing my new parameter into the outputstream... is there another way to do that via the Servlet/JSP API?
    Thank you all in advance,
    Filipe Fedalto

    ???

  • How to define a new Rating Scale Lookup Type?

    Hi
    I want to define a new Rating Scale with Type 'Achievement' in the rating scales. But the Application Utilities Lookup RATING_SCALE_TYPE's Access-Level is System. So I can't add a new type. Is it possible to add a new Type?
    Regards
    Rahman

    I do not think that is possible because the total value of the items must equal the value at header.
    You can maybe add an extra text item for these costs if you do not want them added to the other items.

  • How to define a new parser by OPN?

    I have been using Network Monitor with a self defined parser for a long time, however, I would like to switch to Message Analyer since it has more support. I found that there has no conversion tool for converting from .npl file to .opn file, so I decided
    that I have to do it by myself. I read the programming manual for instructions to program my parser under .opn, but I found that it is difficult for me to handle this task since I have never touch OPN. I am now looking for help to complete my parser conversion.
    My goal is very simple. I received some messages that are transmitted by UDP stored as .pcap files. I would like to write a parser to decode them so that when I turn on the Message Analyzer, I can read the message directly. Following is a graph shows what
    protocol I am using. (Sorry, I find that I cannot upload a graph)...
    After extracting the UDP header, I should have one header and a sequence of messages in every packet I received.
    Here is the logic of my parser:
    After I received a UDP packet, I should extract the payload. Then I should extract the header, after that, I should have a loop to extract all the message one by one. Finally, I need to print out to the screen inside the
    Message Analyzer.
    Here is some .opn code that I am trying to perform what I want to do:
    Since these code are not working, I am here asking for help.
    protocol L1Proto_D with
    BinaryEncodingDefaults{Endian = Endian.Little},
    Documentation
    ProtocolName = "L1 Protocol",
    ShortName = "L1Proto_D",
    Description = ""
    OPNAuthoring
    Copyright = "No",
    References =
    new Reference{Name = "L1Proto_D 1234"},
    RevisionSummary =
    new Revision{Class = RevisionClass.Major, Version = "1.0.0", Date = "22-03-2015"}
    using UDP;
    pattern Port = short;
    pattern Address = binary where value.Count == 4;
    // Keep the values for L1Proto_D
    annotation ushort Datagram#DestinationPort;
    annotation ushort Datagram#SourcePort;
    annotation binary Datagram#SourceAddress;
    annotation binary Datagram#DestinationAddress;
    endpoint L1Proto_D_Connection over UDP.Host accepts L1Proto_D_Msg_Header;
    autostart actor L1Proto_D_OverUDP(UDP.Host host)
    process host accepts d:UDP.Datagram
    DecodeAndDispatchPacket(d, host);
    message L1Proto_D_Msg_Header
    // Header
    ushort PktSize with BinaryEncoding{Width = 2};
    byte MsgCount with BinaryEncoding{Width = 1};
    byte Filler1 with BinaryEncoding{Width = 1};
    uint SeqNum with BinaryEncoding{Width = 4};
    ulong SendTime with BinaryEncoding{Width = 8};
    override string ToString()
    string summary = null;
    summary = "PktSize: " + (PktSize.ToString())
    + ", MsgCount: " + (MsgCount.ToString())
    + ", Filler1: " + (Filler1.ToString())
    + ", SeqNum: " + (SeqNum.ToString())
    + ", SendTime: " + (SendTime.ToString());
    return summary;
    type L1ProtoBookUpdate
    uint OrderBookID with BinaryEncoding{Width = 4};
    string Filler with BinaryEncoding{Length = 3, TextEncoding = TextEncoding.ASCII};
    byte NoEntries with BinaryEncoding{Width = 1};
    type BookDetails
    ulong AggregateQuantity with BinaryEncoding{Width = 8};
    int Price with BinaryEncoding{Width = 4};
    uint NumberOfOrders with BinaryEncoding{Width = 4};
    byte Side with BinaryEncoding{Width = 1};
    string Filler1 with BinaryEncoding{Length = 1, TextEncoding = TextEncoding.ASCII};
    byte PriceLevel with BinaryEncoding{Width = 1};
    byte UpdateAction with BinaryEncoding{Width = 1};
    string Filler2 with BinaryEncoding{Length = 4, TextEncoding = TextEncoding.ASCII};
    void DecodeAndDispatchPacket(UDP.Datagram d, UDP.Host host)
    stream m = d.Payload;
    optional L1Proto_D_Msg_Header msg = BinaryDecoder<L1Proto_D_Msg_Header>(m);
    L1Proto_D_Msg_Header Header = new L1Proto_D_Msg_Header{};
    if (msg != nothing)
    Header = msg as L1Proto_D_Msg_Header;
    int frameLength = d.Length - 8;
    while(m.BytePosition < d.Length)
    ushort MsgType = BinaryDecoder<ushort>(m) as ushort;
    if(MsgType == 100)
    // do something ...
    else if(MsgType == 11)
    // do something ...
    else if(MsgType == 353)
    L1ProtoBookUpdate Msg353 = BinaryDecoder<L1ProtoBookUpdate>(m) as L1ProtoBookUpdate;
    while(m.BytePosition < d.Length)
    BookDetails Msg353Ext = BinaryDecoder<BookDetails>(m) as BookDetails;

    I will help, but I'm currently trying to figure out the error you see. I'm able to compile your OPN, so it works for me. In fact, based on the OPN, I'm thinking you made some progress, and then got stuck here.  But let's check if we are on the same
    page.
    Currently I see that it parses anything UDP, since you don't have a where clause limiting it to a single port.  Maybe this was on purpose, be what that means for me is that all UDP traffic attempts to use this parsing path.  For these cases I see
    an exception:
    Parsing\tActor: OpnGenerated.L1Proto_D_actor_L1Proto_D_OverUDP+L1Proto_D_OverUDP
    Exception: Cannot cast optional System.UInt16 to System.UInt16 because the value is 'nothing'.
    Hash Code: 49df24adb4b5a028d721c68a75b6c576
    Call Stack:
       at Microsoft.Opn.Runtime.Values.OptionalValue`1.get_Value()
       at OpnGenerated.L1Proto_D.DecodeAndDispatchPacket(Datagram d, Host host)
       at OpnGenerated.L1Proto_D_actor_L1Proto_D_OverUDP.L1Proto_D_OverUDP.__OnAcceptsDatagram(MessageEventArgs __args)
       at Microsoft.Opn.Runtime.Actors.MessageEvent.Execute(MessageEventHandler handler, MessageEventArgs args)
    Is this the problem you are referring to? 
    Also to perhaps help further, I've made a simple version of DecodeAndDispatchPacket that works for me (at the end).  My guess is that you wanted to use the MsgType to determine how to parse further.  DHCP.OPN has an example you could reference,
    look for "type OptionType", and see how it use the OptionsChoice to create a dynamic definition.
    void DecodeAndDispatchPacket(UDP.Datagram d, UDP.Host host)
    var msg = BinaryDecoder<L1Proto_D_Msg_Header>(d.Payload) as L1Proto_D_Msg_Header;
    if(msg != null)
    dispatch (endpoint L1Proto_D_Connection over host) accepts (msg as L1Proto_D_Msg_Header);
    Paul

  • How to define a new partner function?

    Dear experts!
    Thank you for your attention!
    we are using ECC6.0, I just want to ask how we can define or create a new partner function?
    Best regard!
    Tangdark

    Hi
    Tang
    Use Tcode  VOPA
    Partner function
    Specify an alphanumeric key which can have up to 2 characters and a description for a partner function.
    Partner type
    The partner type is an indicator which informs you of the type of partner, for example, partner type customer "KU".
    Currently, you cannot change the partner types in customizing. You canonly select the partner types that are included in the standard SAP R/3 System.
    Error group
    Using the error group, you assign an incompletion procedure to a partner function (see section "Incompletion log").
    Higher-level function
    For a partner function, you can specify the higher-level partner
    function. In this way, you can portray an existing dependency between the partner functions.
    Unique in customer master record
    If you characterize a partner function as unique, you can specify it only once in the customer master record.
    The sold-to party has to be unique in the customer master record whereas you may specify several contact persons.
    Customer hierarchy type
    In this field you can specify whether a partner function can be used for a customer hierarchy. Enter the customer hierarchy type permitted
    for the partner function. Refer to the section "Define hierarchy types
    and assign to account groups".
    Convert functions
    If you work with several languages in the sales and distribution
    system, you can carry out a language-dependent function conversion.
    This means you can display the internal key definition, for example, AG, WE, and so on, differently on the screen depending on the logon language of the user. For example, you can display the key CU as AG when logged on in German. (The conversion is necessary because the partner functions such as AG, WE are partially hardcoded in the programs.)
    Thx.
    Edited by: DWARKESH THAKKAR on Oct 28, 2008 7:16 AM

  • How to define a new user in Enterprise manager with Specific access rights?

    Hi,
    I want to create a new user in OEMS 11g who should be able to access only the scheduler jobs section.
    How can this be acheived?

    You can create new administrators via the Setup --> Administrators page
    You can grant certain access rights to targets, you can not however grant priv to only access the job system
    Take a look at http://download.oracle.com/docs/cd/E11857_01/em.111/e14586/security3.htm#sthref235
    Regards
    Rob
    http://oemgc.wordpress.com

  • How to define a output parameter in C# which maps to a PL/SQL table (odp)?

    OracleConnection objconnection = new OracleConnection(connectionstring);
    OracleCommand objcommand = objconnection.CreateCommand();
    objcommand.Connection = objconnection;
    objcommand.CommandText = "UBE_XSITE_PKG_V2.SP_DATAUPLOAD";
    objcommand.CommandType = CommandType.StoredProcedure;
    ListBox1.SelectedIndex = 0;
    OracleParameter prm1 = new OracleParameter("PI_LOT", OracleDbType.Varchar2);
    prm1.Direction = ParameterDirection.Input;
    prm1.Value = ListBox1.SelectedValue.ToString();
    objcommand.Parameters.Add(prm1);
    OracleParameter prm2 = new OracleParameter("PI_WS_OP", OracleDbType.Int32);
    prm2.Direction = ParameterDirection.Input;
    prm2.Value = (float)Int32.Parse(TextBox3.Text);
    objcommand.Parameters.Add(prm2);
    OracleParameter prm3 = new OracleParameter("PI_SOURCE_SITE", OracleDbType.Varchar2);
    prm3.Direction = ParameterDirection.Input;
    prm3.Value = DropDownList1.SelectedValue.ToString();
    objcommand.Parameters.Add(prm3);
    OracleParameter prm4 = new OracleParameter("PI_WS_FLAG", OracleDbType.Varchar2);
    prm4.Direction = ParameterDirection.Input;
    prm4.Value = DropDownList5.SelectedValue.ToString();
    objcommand.Parameters.Add(prm4);
    OracleParameter prm5 = new OracleParameter("PI_WS_QTY", OracleDbType.Int32);
    prm5.Direction = ParameterDirection.Input;
    prm5.Value = (float)Int32.Parse(TextBox2.Text);
    objcommand.Parameters.Add(prm5);
    OracleParameter prm6 = new OracleParameter("PO_EXCEPTIONS", OracleDbType.Varchar2);
    prm6.CollectionType = OracleCollectionType.PLSQLAssociativeArray;
    prm6.Direction = ParameterDirection.Output;
    prm6.IsNullable = true;
    prm6.Size = 4000;
    objcommand.Parameters.Add(prm6);
    objconnection.Open();
    objcommand.ExecuteNonQuery();
    objconnection.Close();

    Hi,
    You'll need to provide more detail about what the plsql type is exactly.
    However, you should check the ODP docs for examples, and it installs complete examples on your hard drive as well which will probably show you what you need to know.
    As of 11.1.6.20, ODP.NET supports user defined types. Prior to that, it also supports Associative Arrays (Index-by tables).
    Hope it helps
    Greg

  • How to define a new factory calender?

    Hi guys,
    I want to have a factory calender that I can use for scheduling batch jobs to run each last sunday in the month. Such factory calender doesn't seem to exist in the system and I'm wondering how I could create it?! Is there a transaction that I can use to create a new factory calender?
    BR,
    Armin

    Hi,
    1. In TCode: SCAL, initially check the public holidays existing in the system, whether those public holidays are sufficient or not, if not create your own public holidays.
    2. Then Create public holiday calender and attach your public holidays to this public holiday  calender.
    3. Then create your own factory calender and attach your public holiday calender to the factory calender and select the working days in a week and then save.
    The above are the steps involved in creating a new factory calender.
    Hope this helps.
    Thanks,
    Viswanath

  • How to define new classpath of libraries while making jar files with ant

    I am useing eclipse and ant and trying to make a jar file. I have used some external jar files. I have managed to add external jar files to my jar. But Still I have a problem. In my project all libraries in lib folder. But when I put them into jar file. They are in the root folder.Classpath has changed and It couldn't find the class path.
    Is there any body knows how to define a new class path for external libraries with ANT. or How can I put my libraries into a lib folder in jar ?? I think both of them would solve my problem.
    thanks in advance.
    My code is like that, I think it requires a little modification
    <target name="jar">
            <mkdir dir="build/jar"/>         
            <jar destfile="build/jar/Deneme.jar" basedir="build/classes" >             
                <manifest>
                    <attribute name="Main-Class" value="${main-class}"/>                    
                </manifest>             
                 <fileset  dir="${lib.dir}" includes="**/*.jar"/>           
            </jar>
        </target>

    I can see why your other "question" was likely deleted. You need to drop the editorial comments and just ask a question. I believe what you want to know is how to configure something using php on your Apache server so that it can be read. If that's your question, here's a couple of places that discuss the topic:
    http://www.webmasterworld.com/linux/3345459.htm
    http://forums.macrumors.com/showthread.php?t=427742
    http://en.allexperts.com/q/PHP5-3508/configuring-installing-permissions.htm
    For a general introduction to 'nix permissions, take a look at this:
    http://www.osxfaq.com/Tutorials/LearningCenter/UnixTutorials/ManagingPermissions /index.ws
    And here's a whole book on the subject of Leopard permissions:
    http://my.safaribooksonline.com/9780321579331
    Try doing a Google search on "leopard permissions php apache" and see if you find what you are looking for.
    Francine
    Francine
    Schwieder

Maybe you are looking for

  • Rescue from CD doesn't work for XFS?

    Has anyone else tried booting from the install CD to into Arch with an XFS root? For, me, it wouldn't work.  I needed to get back in after having the MBR wiped over by windows.  I did vmlinuz root=/dev/sdb2 but got a kernel panic about unknown block

  • Failing over Oracle connections in a pool

              Hi,           This message is probably a bit out of context (I've already posted           it to the JDBC group). I post here as well, since I guess it's           the place where people have the most experience with clustering           an

  • Getting Video From My IPod, Onto The TV

    I have a monster cable that I bought, and I hooked it up to the TV and just got sound. Can anybody help with the getting the video on there part?

  • Mountain Lion only boots into Recovery mode after using iCould lock

    Hi everyone! I have searched the forums for hours now, but I can't seen to find an answer to my question, so I'd like to ask it. Recently my system partition failed due to frequent kernel panics caused by a cable in the screen I think. The kernel pan

  • Still getting uncaught exception in c++ API running keywords query

    When I run a search based on keyword in java application, the first time, most likely the query results is returned, but for the subsequent keywords searches, the application throws the error below... com.sleepycat.dbxml.XmlException: Uncaught except