Passing a GUID as a parameter to the URL.

This seems very simple, but I just can't understand it. I use MSSQL, I created a database and the column ID, which is a GUID and a varChar column to store text. When I try to convey the GUID of a detail of the page using Dreamweaver CS4, the page freezes and I get the following error:

Application uses a value of the wrong type for the current operation.

I really appreciate your time to help me with this. Thank you!! -Jeremy

This is the automatically generated code by Dreamweaver:

Jones wrote:
> This seems very simple, but I just can't understand it. I use MSSQL, I
> created a database with the ID column, which is a GUID and a varChar column
> store text. When I try to convey the GUID of a detail of the page using Dreamweaver
> CS4, the page freezes and I get the following error:
>
> Application uses a value of the wrong type for the current operation.
>
> I really appreciate your time to help me with this. Thank you!! -Jeremy
>
> This is the automatically generated code by Dreamweaver:
>
>
>
> < %=""> < br=""> > Recordset1__MMColParam Sun < br=""> > Recordset1__MMColParam = '1' < br=""> > if (Request.QueryString ("ID") <> "") then < br=""> > Recordset1__MMColParam = Request.QueryString ("ID") < br=""> > End If < br=""> > %>
> < %=""> < br=""> > Dim Recordset1 < br=""> > Recordset1_cmd Sun < br=""> > Recordset1_numRows Sun < br=""> > < br=""> > Set Recordset1_cmd = Server.CreateObject ("ADODB.Command")
> Recordset1_cmd. ActiveConnection = MM_GamehouseDSN_STRING < br=""> > Recordset1_cmd.CommandText = "SELECT * FROM dbo." Dictionary WHERE ID =? " < br=""> > Recordset1_cmd. Prepared = true < br=""> > Recordset1_cmd. Parameters.Append Recordset1_cmd. CreateParameter ("param1", 200, < br=""> > 1, 16, Recordset1__MMColParam) ' adVarChar < br=""> > < br=""> > Set Recordset1 = Recordset1_cmd. Run < br=""> > = 0 Recordset1_numRows < br=""> > %>
>

This line:

Recordset1_cmd. Parameters.Append
Recordset1_cmd. CreateParameter ("param1", 200, 1, 16,
Recordset1__MMColParam) ' adVarChar

Passes the value of the ID to the select statement by using the data type
varchar (16) that does not have the same data type as the column in your
database. You want to change only if use GUID as the data type.

This might work, you may need to change the time to make it work:

Recordset1_cmd. Parameters.Append
Recordset1_cmd. CreateParameter ("param1", 72, 1, 16, Recordset1__MMColParam)

Here is a list of data types:
http://msdn.Microsoft.com/en-us/library/ms806221.aspx

Dooza
--
Display guidelines
http://www.Adobe.com/support/forums/guidelines.html
How to ask Smart Questions
http://www.CatB.org/ESR/FAQs/smart-questions.html

Tags: Dreamweaver

Similar Questions

  • By the way the dynamic parameter with the URL while submitting the form

    Hello

    I the data in xml format in a servlet using the button send the form. I also need to pass a parameter with the URL. But the value of this parameter changes during execution based on the value of a particular field in the form. Please help me with it.

    Thank you.

    Here is an example that shows what I think you want. The code is on epreSubmit th of the button event. I put messages showing what the button submit it URL is... before and after we change. You can delete these messages when make you it work as you want.

    Hope that helps

    Paul

  • [ADF, JDev12.1.3] How to change the image displayed in a page based on a parameter in the URL?

    Hallo,

    the index of my application page is called by the URL that ends with .../MyApplication/faces/index

    I want to add a parameter in the URL so that the picture in the page change based on this setting.

    The param doesn't have to be the name of the image file to display, but only a code.

    For example

    ? param = 1-> pathX/imageA.jpg

    ? param = 2-> pathY/imageB.jpg

    ? param = 3-> pathZ/imageC.jpg

    ...

    You could you kindly help me in this?

    Thank you

    Federico

    So if you have something like: .../MyApplication/faces/index?someParam=1

    You can use:

    Or you can link to custom as servlet: and then decode parameter and the return of this servlet image.

    Dario

  • Password as a parameter in the URL protected .pdf

    Hi people,

    When you open a protected PDF via http, it is possible to send the password as a parameter in the URL? I want to use certain protected .pdf security features, but don't want to force the user to actually type a password.

    For example, in the link below, Brown-Teddy - bear.pdf is a PDF file protected by password with password "coffeecup." Is something like the following?

    " < a href =" http://www.example.com/Brown-Teddy-bear.PDF#password=CoffeeCup "> bear Brown Teddy < /a > .

    This generates an error "this operation is not allowed.".

    I checked the specification for 9 on the link below, but he's not here.

    http://wwwimages.Adobe.com/www.Adobe.com/content/dam/Adobe/en/DevNet/Acrobat/PDFs/pdf_open _parameters_v9.pdf

    Sincerely,

    Keith

    You do not need to set a password to open when you configure restrictions by using password security, you just need to use a Permissions password. The document that opens without the user to enter a password, Acrobat/Reader will honor the restrictions.

  • Passage from one form a parameter on the URL

    Hello. I have the tracking URL to open one of my web forms:
    http://9.35.32.205:7777/forms/frmservlet?config=ttmsmenu&form=drop_cit_brk
    My web form is also set to receive a parameter of 5 characters, but I don't know how to change the URL to pass in my 5 char string. Can someone help me with this syntax?

    Thanks in advance.

    First, you will need to know the name of the parameter set within the shape of the Oracle. Once you have the name of your parameter of forms, you can add the clause of 'otherparams' to the URL. For example:

    http://9.35.32.205:7777/forms/frmservlet?config=ttmsmenu&form=drop_cit_brk&otherparams=YourParamName=5char_string
    

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

  • How to pass a user name and password in the URL for report BI Publisher as parameters

    Hi all

    I have a requirement to navigate to a specific report in the BI Publisher a

    external application when the user clicks on a link. I've had this work using

    the link below

    https://blogs.Oracle.com/XmlPublisher/entry/accessing_xmlp_enterprise_repo

    Now, when a user clicks on this link he is redirected to the BIPUBLISHER login page,

    How can we get around this to hardcode a username and password in the URL (like GO

    URL for analytics).

    Thank you

    Hello

    https://> /Analytics/Saw.dll? Answers & NQuser => & NQpassword =>

    Kind regards

    Dilek

  • How to pass APEX_UTIL. COUNT_CLICK parameters in the url

    Hello

    I have to count clicks on list items:

    There is an option to click Accounts in the definition of each element of the list,
    and you can add category County click here.

    However, I also need to add the parameter Id click - p_id.
    This parameter (p_id) suppose to pass a value in the column CLICK_ID in the APEX_WORKSPACE_CLICKS view.
    I built a url for it.
    The url without p_id works perfectly:
    z?p_url=f?p=&APP_ID.:43:&APP_SESSION.::NO:::&p_cat=Common&p_company=&WORKSPACE_ID.&p_user=&APP_USER.
    But the url with p_id does not at all:
    z?p_url=f?p=&APP_ID.:43:&APP_SESSION.::NO:::&p_cat=Common&p_id=Profile&p_company=&WORKSPACE_ID.&p_user=&APP_USER.
    Do you know how to pass p_id parameter in the url, so that he would be inserted in the view of apex_workspace_clicks?

    Thank you!

    CLICK_ID of the APEX_WORKSPACE_CLICKS column is a number, then you need a number, ex:

    & p_id = 1

    If your url should look like:

    z?p_url=f?p=&APP_ID.:43:&APP_SESSION.::NO:::&p_cat=Common&p_id=1&p_company=&WORKSPACE_ID.&p_user=&APP_USER.
    

    You can use a page number associated with a click, to be more descriptive

  • Value of the parameter contains the comma (,) as a parameter in IR

    Hello

    I'm passing parameters in a link to the column in the interactive report.
    say for exp-
    f?p=&APP_ID.:1:&SESSION.::&DEBUG.::P1_ITEM1,P1_ITEM2:#ITEM1#,#ITEM2#
    The value of P1_ITEM2 now contains a comma (,)... So, how to solve what we use comma as a separator of our passing point name and value element in the URL


    Thank you
    Deepak

    Hello

    This might help
    Transfer of data via a URL

    Or the primary key value and then go get that using other values for example calculations in the page target

    BR, Jari

  • How to analyze by using URL parameter in the oracle application server?

    Hi all

    I have a problem.

    I've done the configuration in [app_server] \formsweb.cfg

    [ABC]
    archive_jini = f90all_jinit.jar, new_Version.jar
    Width = 750
    height = 700
    separateFrame = true
    splashScreen = no
    lookAndFeel = oracle
    colorScheme = Red
    form = ABC01.fmx
    envFile = ABC.env

    the form ABC01.fmx have a 2, JobID and RUNID parameter

    and I call the form like this



    http://190.180.23.12:7778/forms90/f90servlet? config = ABC? JobID = J001 & RUNID = 77

    but I can't launch the form because there are 2 parameters.

    If I remove the parameter, the form can run.

    is it possible to analyze the parameter in the URL?

    Thank you very much for your sharing.


    Kind regards
    Iwan

    Hello!
    Please try:

    http://190.180.23.12:7778/forms90/f90servlet?config=ABC&otherparams=JobID=J001+RUNID=77 
    

    Concerning

  • Problem connecting to the server by using the url with the logical name!

    Hi all!

    I looked for information on this subject, but have not seem to found a solution.

    I'm developing a Smartphone application that needs to connect to a server to retrieve data. Then I use a direct connection with the correct settings (I hope):

    URL = "url of the server" + "deviceside:true" + "AFN:...» »

    The problem is that the connection should be done without Hardcoding the "apn". These are the tests I've done so far (assuming I'm always add the ' deviceside: true ' parameter):

    URL (logical name) + AFN OK!
    FAILURE of the URL (logical name)
    URL (static IP) OK!

    * by logical name, I mean a url as www.google.com

    What I need is to use the logical name, without the parameter apn!  Maybe I'm missing another parameter that I don't know?

    Some additional info that might be useful! :

    -The server is a server of Vodafone, which, as has been explained to me, should be on the list of white of the RIM (not sure what that means, but I guess it has to do with the fact that BB connection through the RIM at one point servers, and be in this list gives a sort of 'privilege' when you browse servers of RIM) , and I don't know it is publicly accessible as (see following)

    -An android version of the application works fine without Hardcoding the AFN and using the logical name (I guess it has to do with the RIM servers!)

    Any help or ideas towards the solution that it is greatly appreciated!  If I'm missing some info that you think I should add! Please tell me!

    Thanks for your help!

    Juan

    Thanks Peter!

    I could solve it by looking at the code of the alternative of the Api network in the link sent you me!

    The solution was the addition of the ConnectionUID parameter to the url String!  as to why this solves the problem I still don't understand it! (If you can enlighten me with the reason, I would be very grateful)

    This value is found in the service books!, I have the zip code just in case it helps someone!

    Hogshead string = null;

    Full book sb = ServiceBook.getSB ();

    Reviews [] ServiceRecord = sb.getRecords ();

    for (int i = 0; i)< records.length;="">

    {

    String cid = records [i] .getCid () .toLowerCase ();

    String uid = records [i] .getUid () .toLowerCase ();

    If ((cid.indexOf ("wptcp")! = - 1) & (uid.indexOf ("wifi") ==-1) & (uid.indexOf ("mms") ==-1))

    {

    Hogshead = records [i] .getUid ();

    }

    }

    then add the parameter: ConnectionUID = Hogshead

    Once again, thank you!

  • change the url of the browser with movieclip, onrelease

    I have an actionscript code that affects 10 movieclips in a table, I can scroll through the table. I want to add my method to onRelease movieclips listener function to chane the current broswer url (not the launch a new window).

    Use getURL() with the first parameter of the url and the second, '_self '.

  • Dynamically Open VI and him pass a parameter to the dynamically open VI

    I want to open a vi dynamically, at the same time I have to pass a parameter to the dynamically open VI. Is it possible to do?

    Thank you

    Chrystelle Roy

    Passionate about LabVIEW

    Check here https://zone.ni.com/reference/en-XX/help/371361M-01/lvconcepts/dynamic_loadcall_vis/

  • How to assign values to the nested table and passes as a parameter for the procedure?

    How to assign values to the nested table and passes as a parameter for the procedure?

    Here are the object and its type

    create or replace type test_object1 as an object
    (
    val1 varchar2 (50).
    val2 varchar2 (50).
    VARCHAR2 (50) val3
    );


    create or replace type test_type1 is table of the test_object1;


    create or replace type test_object2 as an object
    (
    val1 varchar2 (50).
    val2 varchar2 (50).
    VARCHAR2 (50) val3
    );


    create or replace type test_type2 is table of the test_object2;


    GRANT ALL ON test_object1 to PUBLIC;


    GRANT ALL ON test_type1 to PUBLIC;


    GRANT ALL ON test_object2 to PUBLIC;


    GRANT ALL ON test_type2 to PUBLIC;

    Here is the table object type:

    create the table test_object_tpe
    (
    sl_num NUMBER,
    Description VARCHAR2 (100),
    main_val1 test_type1,
    main_val2 test_type2
    )


    NESTED TABLE main_val1 STORE AS tot1
    NESTED TABLE main_val2 STORE AS earlier2;


    -----------------------------------------------------------------------------------------------------------

    Here is the procedure that inserts values into the nested table:

    PROCEDURE INSERT_TEST_DATA (sl_num in NUMBER,
    Description in VARCHAR2,
    p_main_val1 IN test_type1,
    p_main_val2 IN test_type2
    )
    IS
    BEGIN

    FOR rec in p_main_val1.first... p_main_val1. Last
    LOOP

    INSERT INTO xxdl.test_object_tpe
    (
    sl_num,
    Description,
    main_val1,
    main_val2
    )
    VALUES
    (
    sl_num
    description
    test_type1 (test_object1)
    p_main_val1 .val1 (CRE),
    p_main_val1 .val2 (CRE),
    p_main_val1 .val3 (rec)
    )
    )
    test_type2 (test_object2 (p_main_val2 .val1 (CRE),
    p_main_val2 .val2 (CRE),
    p_main_val2 .val3 (rec)
    )
    )

    );

    END LOOP;

    commit;

    END INSERT_TEST_DATA;

    -------------------------------------------------------------------------------------------

    Here are the block anonymoys what values attributed to the object type and pass values in the procedure:

    Set serveroutput on;

    declare

    p_sl_num NUMBER: = 1001;
    p_description VARCHAR2 (50): = 'Test Val1;

    inval1 test_type1: = test_type1();
    inval2 test_type2: = test_type2();

    Start


    inval1 (1) .val1: = "testx1";
    inval1 (1) .val2: = "testx2";
    inval1 (1) .val3: = "testx3";

    inval2 (1) .val1: = "testy1";
    inval2 (1) .val2: = "testy2";
    inval2 (1) .val3: = "testy3";

    CSI_PKG. INSERT_TEST_DATA (sl_num = > p_sl_num,)
    Description = > p_description,
    p_main_val1 = > inval1,
    p_main_val2 = > inval2
    );

    end;
    /
    Someone can correct me.

    Thank you
    Lavan

    Thanks for posting the DOF and the sample code but whenever you post provide your Oracle version 4-digit (result of SELECT * FROM V$ VERSION).
    >
    How to assign values to the nested table and passes as a parameter for the procedure?
    >
    Well you do almost everything bad that could be hurt.

    Here is the code that works to insert data into your table (the procedure is not even necessary).

    declare
    p_sl_num NUMBER := 1001;
    p_description VARCHAR2(50) := 'Testing Val1';
    inval1 test_type1 := test_type1();
    inval2 test_type2 := test_type2();
    begin
    inval1.extend();
    inval1(1) := test_object1('testx1', 'testx2', 'testx3');
    inval2.extend();
    inval2(1) := test_object2('testy1', 'testy2', 'testy3');
    
    INSERT INTO test_object_tpe
    (
    sl_num,
    description,
    main_val1,
    main_val2
    )
    VALUES
    (p_sl_num, p_description, inval1, inval2);
    commit;
    end;
    /
    

    See example 5-15 making reference to an element of nested Table Chapter 5 using PL/SQL collections and records in the PL/SQL doc
    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28370/Collections.htm#CJABEBEA

    1. you don't even have the procedure because it is a simple INSERTION in the table you can do directly (see my above code)

    inval1(1).val1 := 'testx1';
    

    Since you have not yet created all the elements, there is no element 1 "inval1". You need EXTEND the collection to add an element

    inval1.extend();
    

    And then, there is an empty element, but "inval1" is a container for objects of type 'test_object1' not for scalars as "val1", "val2", and "val3".
    If you can not do

    inval1(1).val1 := 'testx1';
    

    You must create an instance of 'test_object1 '.

    inval1(1) := test_object1('testx1', 'testx2', 'testx3');
    

    And so on for the other collection

    You don't need the procedure (as my code example shows), but once you fill in the variables correctly it will work.

  • How to pass parameter in the function using the select statement?

    Hello

    I had a problem. I can't pass as parameter to the function by using the select statement. But it can pass as a parameter using the "code". How can I solve this problem?

    For example,.
    Select * from table (SplitFunction ('HS750020, HS750021')) < < < this work.

    but

    Select * from table (SplitFunction (select LOT_NO in the TRACER_SEARCH_SCHEDULE where JOB_ID = '36')) < < < do not work.

    Thank you for trying to help him. Thank you.

    Select * from table (SplitFunction (select LOT_NO in the TRACER_SEARCH_SCHEDULE where JOB_ID = '36'))< do="" not="">

    Try like this

    select * from table(select splitfunction(lot_no) from tracer_search_schedule where job_id='36')
    

    Just make sure that your subquery returns only 1 row.

  • Passing an array as a parameter of java (java controls) for the stored procedure

    Hello

    I use java controls (BEA Weblogic Workshop 8.1) to call a stored procedure and send an array as a parameter to the stored procedure of java. The following code throws an exception 'Fail to convert the internal representation.

    Java code
    import com.bea.control.DatabaseControl.SQLParameter;

    Here I create the java
    int [] = {12,13,14} javaArray.

    The code below is used to create the table from sql to oracle for the procedure
    SQLParameter [] params = new SQLParameter [1];
    Object obj0 = javaArray;
    params [0] = new SQLParameter (obj0, oracle.jdbc.OracleTypes.ARRAY, SQLParameter.IN);

    the code below calls the myFunc in file OJDBCtrl.jcx
    String success = dbControl.testFunc (params);

    OJDBCtrl.jcx
    /**
    * @jc: = sql statement ' call CMNT_TST_PROC (?)).
    */
    String Myfunc (SQLParameter [] param);

    The stored procedure that is used:

    SL_tab IS NUMBER TABLE INDEX BY PLS_INTEGER;
    Procedure cmnt_tst_proc (cmnt_tst sl_tab);
    Procedure cmnt_tst_proc (cmnt_tst sl_tab) is
    BEGIN
    dbms_output.put_line ('Hello');
    END;


    I'm getting the following exception

    Failure = Java.Sql.SqlException: Internal failure to convert the representation: [I@438af4 [ServiceException] >]
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
    at oracle.jdbc.driver.DatabaseError.check_error(DatabaseError.java:861)
    at oracle.sql.ARRAY.toARRAY(ARRAY.java:210)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:7768)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:7449)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:7837)
    at oracle.jdbc.driver.OracleCallableStatement.setObject(OracleCallableStatement.java:4587)
    at weblogic.jdbc.wrapper.PreparedStatement.setObject(PreparedStatement.java:244)
    at com.bea.wlw.runtime.core.control.DatabaseControlImpl._setParameter(DatabaseControlImpl.jcs:1886)
    at com.bea.wlw.runtime.core.control.DatabaseControlImpl.getStatement_v2(DatabaseControlImpl.jcs:1732)
    at com.bea.wlw.runtime.core.control.DatabaseControlImpl.invoke(DatabaseControlImpl.jcs:2591)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:377)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:433)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:406)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:249)
    at com.bea.wlw.runtime.jcs.container.JcsContainer.invoke(JcsContainer.java:85)
    at com.bea.wlw.runtime.core.bean.BaseContainerBean.invokeBase(BaseContainerBean.java:224)
    at com.bea.wlw.runtime.core.bean.SLSBContainerBean.invoke(SLSBContainerBean.java:109)
    at com.bea.wlwgen.StatelessContainer_ly05hg_ELOImpl.invoke(StatelessContainer_ly05hg_ELOImpl.java:153)
    ...

    Can you please let me know, what am I doing wrong and how can I pass an array to a procedure/function using java controls.

    Any help will be much appreciated.



    Published by: user12671762 on February 24, 2010 05:03

    Published by: user9211663 on February 24, 2010 21:04

    Try using an oracle.sql.ARRAY with a nested table or varray instead of a table index. Create the type SQL and Java object as follows

        SQL> create type sl_tab as varray(3) of integer;
        Java:
            ArrayDescriptor ad = ArrayDescriptor.createDescriptor
                (".SL_TAB", java.sql.Connection);
            Object elements = new Object[3];
            elements[0] = new Integer(12);
            elements[1] = new Integer(13);
            elements[2] = new Integer(14);
            oracle.sql.ARRAY array =
                new oracle.sql.ARRAY(ad, oracle.jdbc.OracleTypes.ARRAY, elements);
            SQLParameter[] params = new SQLParameter[1];
            params[0] =
                new SQLParameter(array, oracle.jdbc.OracleTypes.ARRAY, SQLParameter.IN);
            String succ = dbControl.testFunc(params);
    

    I don't think that you can pass an array of Java, this is why you have more success using an oracle.sql.ARRAY with a SQL varray. -Michael-

Maybe you are looking for

  • Tecra A9 51 G drive upgrade.

    Dear all, I have a Tecra A9 51 G with disc hard 160 GB. Is it possible to replace the existing hard drive with a new hard drive for more capacity as 500 GB or more. Thanks a lot for your help in advance. -Remond. Post edited by: rajamani.kandasamy

  • Satellite P300 - 18 M Touchpad stopped working

    My P300 works wonderfully, but suddenly the touchpad has completely stopped working - including the buttons left and right. I can't find the touchpad in Device Manager, and it is at the limit of my (in) skills! Where should I look? Any help would be

  • Can I replace HHD with SSD in G570 4334 laptop computer 43344JU

    I have a laptop of Lenovo G570 4334 43344JU. It has a Pentium Intel B940 2.0 GHz processor, Conditioning LGA1155, Chipset ID 1 49. And the HARD drive is a HITACHI 320 GB SATA II 2.5 INCH HTS543232A7A384. Windows 7 Ultimate is installed on this comput

  • Obsolete Outlook?

    I have a Tungsten E and Outlook 2007 on my desktop computer.  I succesfull downloaded all the pipes, etc.  If Outlook could read my email to work out of the web.  However, when I sync my Plam with Outlook, I get the error message in the newspaper tha

  • Sort descending using development tools Dimension

    Hello I have an alpha-numeric property to short, we do descending sorting, can achieve us using developer studio. I was able to sort in ascending order, do not see any field in developer studio to sort by descending order Thank youTijo