Concatenate Variables

I have the following varaiables:

Reply1 = 'something for the 1st answer. "
Reply2 = 'something for the 2nd reply.
Reply3 = 'this for the 3rd response. "

In addition, entry of the 'TotalReply' variable, which is equal to any of the first three variables according to the student.

How can I create a varuiable/feature/whatever that will determine what response is based on the name of the icon?

that is, there are three named 1, 2, or 3 calculations. Inside of each will be the calculation I'm looking. I tried:

TotalReply: = "RΘpondre" ^ IconTitle

No luck. I also tried without success:

MyReply = "RΘpondre" ^ IconTitle
TotalReply MyReply =

Signs would be greatly appreciated.

Jerry

> Reply1 = 'something for the 1st answer. "
> Reply2 = 'something for the 2nd reply.
> Reply3 = 'this for the 3rd response. "

Use a list.
[Answer: =]
Response [1] = 'something for the 1st answer. "
Answer [2] = 'something for the 2nd reply.
Answer [3] = 'this for the 3rd response. "

TotalReply = response [ChoiceNumber]

Steve

--
Adobe Community Expert, Authorware, Flash Mobile and devices
My blog - http://stevehoward.blogspot.com/
Authorware tips - http://www.tomorrows-key.com

Tags: Authorware

Similar Questions

  • Concatenate variable fixed text ODI

    Hi all

    A simple I hope.

    I declared and defined a variable (var1) in my package. I will increment this variable on successive cycles in my package. I need concatenate this variable to a piece of fixed text, giving me a second variable.

    something like:

    var2 = var1 'fixed bit' {concat-op}

    such as

    var2 becomes '999fred' if var1 = 999 and the fixed bit = 'fred '.

    Please can someone show me how to do this?

    Thank you
    J

    Hello

    You can try with a set variable option by giving "#VariableName" | 'FixedVaue '.

    or use a varaibe referesh in use of refresh query

    Select '#VariableName ' | 'FixedVaue' from dual (choose the right logical schema)

    but the first wish is the best option.
    BCZ second option some limitations are there:-

    If the first value of the variable (assume that the string) contains single quotes (') or similar to, there is a chance of error.

    Also check it please: -.

    Re: Using the value of the Variable in a Variable

    Kind regards
    Pascale of M

    Published by: its on December 2, 2009 20:48

  • How variable with concatenated handling?

    Hi, I need help!

    I have a small problem, when I concatenate variables. I can't remove the comma after the last loaded variable.

    XML

    < listPeople >

    < people >

    < name > DIVINO CARVALHO DE OLIVEIRA < / name >

    < qualification > RG. 111.333 SSP/MT < / qualifying >

    < / people >

    < people >

    < name > ARISTIDES PERALTA MARTINS < / name >

    SSP/222,555 MS, < qualification >< / qualifying >

    < / people >

    < / listPeople >


    And function


    <? If: xdoxslt:get_variable($_XDOCTX,_'PEOPLE')! = ' ' ? > <? xdoxslt:set_variable ($_XDOCTX, 'PEOPLE', concat (xdoxslt:get_variable($_XDOCTX,_'PEOPLE'), concat (name, ',')))? >

    <? end if? >

    Thank you!

    ,

    It works, but not sure how to do this with your code.

  • java.sql.SQLSyntaxErrorException: ORA-00904: invalid identifier

    Hi all

    IM using JDeveloper 11.1.1.6.0.

    Here, I said method in the main class, which returns an object of type of connection reference.

    When I run the app I type 'ksh' in the fields and click on submit.

    It shows the following error, java.sql.SQLException: ORA-00904: "KSH": invalid identifier

    {code}

    public static list < privileges > getUserPrivileges (DBTransaction dbt, object userId)

    {

    String sql = "SELECT m.menu_code" +.

    "OF sec_menus m p sec_menu_privileges JOIN +.

    "WE (m.menu_code = p.menu_code '+)"

    "(ET m.app_id = p.app_id)" + "

    "JOIN sec_user_app_groups g +.

    "WE (g.GROUP_ID = p.GROUP_ID '+)"

    "AND p.app_id = g.app_id" +.

    "AND user_id =" + userId + "."

    "             )";

    PreparedStatement stat = null;

    ResultSet rs = null;

    List of privileges <>privilegesList = new ArrayList < privileges > ();

    MenuCode string = "";

    Try

    {

    = stat dbt.createPreparedStatement (sql, 1);

    RS = stat.executeQuery ();

    While (RS. Next())

    {

    menuCode = rs.getString (1);

    }

    }

    catch (System.Exception e)

    {

    e.printStackTrace ();

    }

    Finally

    {

    closeStatement (stat);

    closeResultSet (SR);

    }

    Return privilegesList;

    }

    Public Shared Sub closeStatement (stat of statement)

    {

    Try

    {

    STAT. Close();

    }

    catch (SQLException e)

    {

    }

    }

    public static void closeResultSet (ResultSet rs)

    {

    Try

    {

    RS. Close();

    }

    catch (SQLException e)

    {

    }

    }

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

    CREATE TABLE SEC_USERS

    (

    USER_ID VARCHAR2 (10),

    USER_NAME VARCHAR2 (50).

    PASSWORD VARCHAR2 (300)

    )

    Insert into SEC_USERS

    (USER_ID, USER_NAME, USER_FIRST_NAME, USER_LAST_NAME, PASSWORD)

    Values

    ('ksh', 'ksh', 'test');

    COMMIT;

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

    Error:

    java.sql.SQLSyntaxErrorException: ORA-00904: "KSH": invalid identifier

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)

    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)

    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)

    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)

    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)

    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)

    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:947)

    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1283)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1441)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)

    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3823)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1671)

    dry. ControllerUtil.getUserPrivileges (ControllerUtil.java:90)

    dry. ControllerUtil.login (ControllerUtil.java:59)

    at sec.model.AppModuleImpl.login(AppModuleImpl.java:77)

    at sec.control.bean.LoginPage.loginAction(LoginPage.java:92)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at com.sun.el.parser.AstValue.invoke (unknown Source)

    at com.sun.el.MethodExpressionImpl.invoke (unknown Source)

    at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)

    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)

    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:92)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)

    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:92)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)

    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)

    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)

    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:889)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:379)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    < ActionListenerImpl > < processAction > java.lang.NullPointerException

    javax.faces.el.EvaluationException: java.lang.NullPointerException

    at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)

    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)

    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:92)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)

    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:92)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)

    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)

    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)

    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:889)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:379)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    Caused by: java.lang.NullPointerException

    dry. ControllerUtil.closeResultSet (ControllerUtil.java:136)

    dry. ControllerUtil.getUserPrivileges (ControllerUtil.java:118)

    dry. ControllerUtil.login (ControllerUtil.java:59)

    at sec.model.AppModuleImpl.login(AppModuleImpl.java:77)

    at sec.control.bean.LoginPage.loginAction(LoginPage.java:92)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at com.sun.el.parser.AstValue.invoke (unknown Source)

    at com.sun.el.MethodExpressionImpl.invoke (unknown Source)

    at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)

    ... more than 54

    {\code}

    Thanks in advance

    The particular error that causes the ORA-00904 exception, it's that you concatenate a string literal in the SQL statement without enclosing the literal with quotes. Replace the line

    "AND user_id =" + userId + "."

    with

    "AND user_id = '" + Userid + "'" +.

    Although it will work in this way, the concatenation of literal values variable to a SQL statement is a very wrong approach. The right approach is to use a placeholder variable (for example?) in the SQL statement and to link it with the necessary value after analysis of the declaration and before running. In this way, you will be able to analyze the statement once and execute it several times with different values without new analysis view the statement. Also, the SQL engine will be able to use its SQL cache if you try to analyze the statement even once again, which will significantly improve performance. However, if you concatenate variable literal value to education, engine SQL won't recognize the statement as one already analyzed, it will not use its cache and it will analyze the statement again from scratch. From a point of view shortly, the best approach is as follows:

    "" AND user_id =? ".

    and then

    = stat dbt.createPreparedStatement (sql, 1);

    stat.setString (1, userId); Don't forget to change the username to a string type in the method declaration

    RS = stat.executeQuery ();

    There are other problems in your code. First of all, the invocation closeResultSet (rs) after closeStatement (stat) is erroneous and obsolete, because when you close a SQLStatement instance it automatically closes all its result sets. Secondly, in the finally block you call closeStatement (stat), but there is no guarantee that stat variable is not null. For example, the variable stat can be null if the SQLStatement instance has not been established successfully in the try section above.

    Dimitar

  • Select the schema dynamically

    Hello

    I would like to query a table of each scheme, same table exists in more than 20 patterns. So I dynamically select the schema and the result, the coil, but below

    statement is not to fetch all the records, can someone help me please?

    [code]

    Spoo result.txt

    Set serveroutput on

    declare

    cursor c1 is select master, table_name from all_tables where table_name = 'ALLOCATE_TBL '.

    order by owner, table_name;

    Start

    for rec in c1

    loop

    run immediately "select ALLOCATE_TYPE, ALLOCATE_SUBTYPE from". Rec.Owner |'. ' | Rec.table_name;

    end loop;

    end;

    /

    Spoo off

    [/ code]

    Hello

    Whenever you make dynamic SQL code, put all the dynamic instruction in a string variable and displays this string until run you it.  In this way, you can see exactly what it's done, and, if that fails, have a better idea why.  You can comment or remove the statement display under test is finished.  That's what I was doing in the code I posted before:

    -dbms_output.put_line (single_table_select |) "= single_table_select"); -for debugging

    I don't know what you're trying to do here, so I can't tell you how to do it.  This would help a lot if you could post instructions INSERT, CREATE TABLE and or something equivalent, and the desired output.  For example, "if I have the standard emp table in the scott schema, and I also have a table of emp 3 rows in my own scheme, like this."

    CREATE TABLE emp

    AS

    SELECT eanme. "JR" AS ename

    empno

    FROM scott.emp

    WHERE deptno = 10 - only 3 rows

    ;

    then the output should be... »

    You try to put the name of the owner of the table result set?

    How would you do that if you could hard-code the owner (SCOTT) and the name of the table (ALLOCATE_TBL')?  You would do something like that?

    SELECT 'SCOTT' as owner

    allocate_type

    allocate_subtype

    SCOTT. ALLOCATE_TBL

    ;

    ?  If you want to replace the parts in red with a dynamic text, you can concatenate variables instead of hardcoded text.  You already do that correctly for SCOTT and ALLOCATE_TBL on the last line; you just need to do the same thing for SCOTT on the first line.  And don't forget, when you want to have a sungle quote inside a string literal, use 2 single quotation mark in a row.  Maybe you want to do something like this:

    insert_statement: = "INSERT INTO coll_test (owner, allocate_type, allocate_subtype).

    || ' SELECT DISTINCT "'

    || Rec.Owner

    || ""', allocate_type, allocate_subtype FROM ".

    || Rec.Owner

    || '.'

    || Rec.table_name;

    Never answer my question

    ... Why do you have these similar tables in several patterns?   The fact that you need to interview all the ALLOCATE_TBLs at the same time suggests that logically they are all part of the same table.  Why not physically stored in the same table?

    All you want to do, I suspect that you are making it harder than it needs to be,

  • Question by adding the LOBs-ORA-06502: PL/SQL: digital error or value

    Hello

    I'm using Oracle 11 g.

    I have a requirement in which I need to add LOBs and I must insert the LOB in a table column. I am facing problem when the data exceeds certain limits. My program works like the following:

    (Please note that my program logic is given below, not the exact program)

    DECLARE

    final_html CLOB.
    int_html CLOB.
    v_str VARCHAR2 (32767).

    i the number: = 0;

    BEGIN


    DBMS_LOB.CREATETEMPORARY (lob_loc = > int_html, CACHE = > TRUE, hard = > dbms_lob.) CALL);
    DBMS_LOB.CREATETEMPORARY (lob_loc = > final_html, CACHE = > TRUE, hard = > dbms_lob.) CALL);
    DBMS_LOB. OPEN (int_html, DBMS_LOB. LOB_READWRITE);
    DBMS_LOB. OPEN (final_html, DBMS_LOB. LOB_READWRITE);
    dbms_output. ENABLE (1000000);


    FOR i 1,100 loop

    v_str: = "< b >" |
    "< style td =" "DRESSING: break-word" width = "50" > < font size = "2" > ' | "
    I have | ' < / police > < table > ' |
    "< /tr >";

    DBMS_LOB. WriteAppend (lob_loc = > int_html, amount = > LENGTH (v_str), BUFFER = > v_str);


    END LOOP;
    dbms_output.put_line (' the length of the int_html is :'||) DBMS_LOB. GetLength (int_html));

    dbms_output.put_line (' the int_html :'|| is int_html).

    final_html: = "< html >" | int_html | "< / html > ';
    dbms_output.put_line (' the final_html :'|| is final_html).



    EXCEPTION
    WHILE OTHERS THEN


    dbms_output.put_line(SQLCODE||) e -'|| SQLERRM);
    DBMS_LOB. CLOSE (int_html);
    DBMS_LOB. CLOSE (final_html);
    DBMS_LOB. FREETEMPORARY (int_html);
    DBMS_LOB. FREETEMPORARY (final_html);

    END;


    When the loop is made of lesser value, say FOR example, the loop i IN 1.10, the program works very well, but when the closure is done for values more I'm ' - 6502-ORA-06502: PL/SQL: digital error or value ' error message.

    Please help me solve this problem.

    Thanking you in advance.


    Kind regards
    Sri

    Can you please specify what environment you run this?

    I modified your code as follows

    The code executed successfully until the length has been<= 32767="" i.e="" (="" until="" for="" i="" in="">

    In addition, you must use the function APPEND to concatenate variables clob.

    Please check the maximum size by default for varchar2 or dbms_output in your server since you get the error for just the loop in the range (FOR i IN 1,100).

    And Yes, Siva comments are valid.

    DECLARE

    final_html CLOB.
    int_html CLOB.
    v_str VARCHAR2 (32767).

    i the number: = 0;

    BEGIN

    DBMS_LOB.CREATETEMPORARY (lob_loc-online int_html, CACHE-online TRUE, hard-online dbms_lob. CALL);
    DBMS_LOB.CREATETEMPORARY (lob_loc-online final_html, CACHE-online TRUE, hard-online dbms_lob. CALL);
    DBMS_LOB. OPEN (int_html, DBMS_LOB. LOB_READWRITE);
    DBMS_LOB. OPEN (final_html, DBMS_LOB. LOB_READWRITE);
    dbms_output. ENABLE (1000000);

    FOR i 1.1092 loop

    v_str: = '' ||
    '' ||
    I have | '' ||
    '';

    DBMS_LOB. WriteAppend (lob_loc-int_html, amount => (v_str), BUFFER LENGTH-online v_str online);

    END LOOP;

    dbms_output.put_line (' the length of the int_html is :'||) DBMS_LOB. GetLength (int_html));
    Start
    dbms_output.put_line (' the int_html :'|| is int_html).
    dbms_output.put_line (' the length of the int_html is :'||) DBMS_LOB. GetLength (int_html));
    exception when others then
    dbms_output.put_line(SQLCODE||) e -'|| SQLERRM);
    end;
    /*
    Start
    final_html: = ''|| int_html | »';
    dbms_output.put_line (' the final_html :'|| is final_html).
    exception when others then
    dbms_output.put_line(SQLCODE||) e -'|| SQLERRM);
    end; */

    EXCEPTION
    WHILE OTHERS THEN

    dbms_output.put_line(SQLCODE||) e -'|| SQLERRM);
    DBMS_LOB. CLOSE (int_html);
    DBMS_LOB. CLOSE (final_html);
    DBMS_LOB. FREETEMPORARY (int_html);
    DBMS_LOB. FREETEMPORARY (final_html);

    END;

    Published by: Gurnani houta July 29, 2011 03:11

    Published by: Gurnani houta July 29, 2011 03:14

  • CLOB variable: concatenate or append?

    I just wrote a FUNCTION to return the XML web service. As the text can exceed 32,767 characters, I thought a CLOB was the way forward:
     FUNCTION Get_XML(I_URL VARCHAR2)
     RETURN XMLTYPE
     AS
    
      Page          CLOB;
      Response     UTL_HTTP.HTML_PIECES;
    
     BEGIN 
    
      Response := UTL_HTTP.REQUEST_PIECES(I_URL);
    
      -- UTL_HTTP.REQUEST_PIECES returns 2000 byte chunks.
      FOR Chunk IN 1..Response.Count
      LOOP
       Page := Page || Response(Chunk);
      END LOOP;
    
      RETURN XMLTYPE(Page);
    
     END Get_XML;
    My question is, is the best way to concatenate pieces. Is
    Page := Page || Piece(Counter);
    good, or should I use DBMS_LOB. APPEND or similar?

    The post below shows WriteAppend to be faster than append Re: LONG data type

    I have almost never used WriteAppend but always used append.

  • How to concatenate a carriage return or new line to a variable of captivate?

    I need to provide to that further comments that captivate makes possible based on what users are doing questions.  I have this work for most, but I need to put comments for each question on a new line.  Captivate has resisted my efforts to get there.

    Any suggestions?

    Thanks in advance!

    OK, it does not work with the TextAreaWithVariables widget, but not the TextArea widget that comes with Captivate. And it does not add to the size of the file.

    Thank you, Steve, Lilybiti, and Jim, stick with me!

  • Automator - using variables in applescript do script

    How can I insert a variable in 'doing the script' in AppleScript? I want repoName be what is the variable.

    the term {parameters}

    Tell application "Terminal".

    activate

    Set currentTab to script ("ssh [email protected];")

    delay of 6

    do script (' cd... /.. ") ("/ var/www ') in currentTab

    delay of 6

    RepoName text set

    make the script currentTab ('sudo mkdir $repoName")

    tell the end

    end of race

    Figured it out:

    the term {parameters}

    Tell application "Terminal".

    activate

    Set currentTab to script ("ssh [email protected];")

    delay 3

    do script (' cd... /.. ") ("/ var/www ') in currentTab

    delay 3

    Define repoName (enter text)

    do script ('sudo mkdir") & repoName in currentTab

    tell the end

    end of race

    The key is the & symbol, which concatenates.

  • UCCX scripts, working with variables (variables to type?)

    Hello

    I've got script of unilingual IVR which distributes calls in two separate CSQ (services and logistics), based on the entry of the appellant in the IVR menu. Each QSC contains several agents. There is flow under script that checks if a current day is holiday (similar to the example of Cisco HolidayCheck.aef)

    Now, I have to extend this script and make it multilingual. Many aspects in the script as dates.xml to check, name of the CSQ (each lang have services and logistics), lang for IVR guests are exactly the same files wav localized to specific national environment in different directories called.

    My idea is to parse the input (IVR or by number called country-specific) and on this basis set a variable named input_lang (string) with the values 'en', 'sk' or other). Then set other variables for good localization based on this variable input_lang.

    I have customization variables:

    input_lang (String) = «»

    holiday_datelist (Document) = [DOC]

    ivr_lang (language) = [L]

    CSQ_service (String) = «»

    CSQ_logistics (String) = «»

    When I set input_lang variable, for example "sk" (Slovak), I have other variables defined as:

    Set holiday_datelist = "DOC [dates -" + input_lang + ".xml]".

    Set ivr_lang = 'L []' + input_lang + '] '.

    Set CSQ_service = '-CSQ_servis' + input_lang

    Set CSQ_logistics = '-CSQ_logistics' + input_lang

    But this result in this strange values (not so weird, because they are all 'String-like')

    holiday_datelist = "DOC [dates - sk.xml]" instead of DOC [dates - sk.xml]

    ivr_lang = "L [sk]" instead of L [sk]

    etc... but the names of CSQs are also strings and the results are OK

    The script stops and throws a value unidentified exception / error variable.

    Y at - there no way how to fix string variable as lang/document as a representation? I think I have to get rid of these quotes in the beginning and the end of the value. I want only to concatenate the values of strings void variables based on each lang.

    Or me as a result of the wrong way and everything to do in a different way?

    Thank you very much for all the advice!

    (Improved UCCX, version 5.0.2)

    When I set input_lang variable, for example "sk" (Slovak), I have other variables defined as:

    Set holiday_datelist = "DOC [dates -" + input_lang + ".xml]".

    Set ivr_lang = 'L []' + input_lang + '] '.

    Set CSQ_service = '-CSQ_servis' + input_lang

    Set CSQ_logistics = '-CSQ_logistics' + input_lang

    I think that you are up to something and just need to make some minor changes.

    1. instead of assign the directory "dates - sk.xml" to the document variable, assign it to a string that points to the file name and the relevant path. Then initialize the document variable by using the step to "create a Document file. This should help you over any bumps with typcasting.

    2. for the language, it would be logical to use a statement 'switch' as follows:

    Channel switch (input_lang)

    Connection: Slovak

    Set ivr_lang = L [sk]

    Connection: en - uk

    Set ivr_lang = L [en - uk]

    ...

    Maybe it's not as effective as the road you have decided to take this point but it would work. The only time where I messed up with the support of several languages, I used the trigger JTAPI. It will work for you, if you have walked the road of the language based on the "called" number (as you suggest one way possible, you would take). In this way, you can have several triggers pointing to the same application and the variable of language may already be set on the trigger. You still wish to create/edit your variables. You'd probably want to focus on the expression editor methods. toString() and. getLanguage().

    HTH.

    Kind regards

    Bill

  • UCCX 8 - use DOC [variable] is not possible?

    Hi all

    I'm actually busy develop some scripts and I am able to download messages, documents and all autonomous. Now, I need to compile everything in a script, and ideally, I would need to set some parameters as filename of DOCument...

    If I try with something like:

    Name: myDocument

    Type: Document

    Value: DOC ["FileStored.xml"]

    It works perfectly.

    If I try similar following:

    Name: myVariable

    Type: String

    Value: 'FileStored.xml '.

    Name: myDocument2

    Type: Document

    Value: DOC [myVariable]

    It seems to not work.

    My main goal is to be able to go and choose the good XML file based on the conditions that I could put in my script... If it is possible, we put a lot of 'ifs' to determine which file I need instead of concatenate the name of straight back on my terms...

    A tip on how to do this?

    Thanks in advance

    Concerning

    Christophe

    Hi Christophe

    My approach to this was as follows:

    String, parameter, sDocumentFilename

    If sDocumentFilename is a simple string and an entrable parameter in the web INTERFACE. You would set this to "myfile.xml" or anything that is appropriate.

    Then in the script:

    Set docWhatever = DOC [sDocumentFilename]

    This will properly set docWhatever on DOC [myfile.xml]

    This is probably a hidden game stage magic / the Document object that runs like this rather than using the name of the variable to the string in the variable for the Document definition. If I understand what you're asking correctly :-)

    Concerning

    Aaron

    Please evaluate the useful messages...

  • Using the name of the table to Insert variable

    Hello

    I'm trying to use a variable as the name of table to do an insert.

    The name of the table where my datas have to be inserted is EVV_ + the Ref_var of data.

    My code will be more explicit:

    SELECT 'EVV_ ' | Ref_Equip

    IN v_Ref_Equip

    OF user.c_equip

    WHERE clef_equip = v_clef_equip;

    INSERT INTO 'user '. || v_Ref_Equip (Clef_var, Date1, value)

    VALUES (v_clef_var, 18 May 01 ', 49, 156');

    I can't find the proper syntax for inclusion in. I tried a lot of syntax, but not good.

    So, how can I concatenate 'user.' + my v_Ref_Equip variable?

    Thanks for the help

    Have a look at this immediate execution method

    SQL> set serveroutput on;
    SQL> declare
      2  v_tab_name varchar2(20) := 'temp';
      3  begin
      4      execute immediate 'create table temp(id number)';
      5      execute immediate 'insert into '||v_tab_name||' values (1)';
      6      commit;
      7  end;
      8  /
    
    PL/SQL procedure successfully completed.
    
    SQL> select * from temp;
    
            ID
    ----------
             1
    
    SQL>
    
  • Apex.mail p_cc for several e-mail addresses which are variable

    This should be a very simple here is my code

    < tt >

    APEX_MAIL. SEND)

    p_to = > ' [email protected] ',

    p_cc = > ' events. CONTACT_EMAIL, [email protected]', <-next does not work because events. CONTACT_EMAIL is a variable

    p_from = > ' [email protected] ',

    p_body = > ' ',

    p_subj = > ' Date of scheduled critical event is close! Alert 1 - Variable try 3rd ',.

    p_body_html = > ' < b > < /b > RESSA team critical event notification! < br > < br > the ' | events. EVENT_NAME | ' critical event is not yet complete! < br > < br >

    Please fill out all the required measures and then mark the event as State finished in order to avoid escalation, thank you.

    < br > < br > a brief review of the event details: < br > < br > < table border = "1" style = "width: 100%" > < tr > ' | events. EVENT_DESC | ' < /tr >

    (< /table > ');

    < /tt >

    so the p_cc line is not error, but this isn't work. If I change this line to ' p_cc = > . ' [email protected] , [email protected] ',

    It will work but I need to use variables and addresses coded e-mail is not difficult. I'm looking for the simplest solution please.

    Any ideas? -Apex 4.2 - pc windows 7

    Hi Richie,

    You must concatenate your variables into a single string with email, separated by commas:

    p_cc-online variable1 | ',' ||  variable2

    Sergio

  • @HspNumToString () cannot pass the variable as a parameter?

    Hi all

    I create a rule that uses @HspNumToString () and pass a variable as a parameter.

    But it gives error on validation below the code associated with the @HspNumToString function.

    Var itemCounter = 1;

    ...

    DIFFICULTY ({UserEntity}, {period}: Dec,@MEMBER (@CONCATENATE ("Item", @HspNumToString (itemCounter))))

    ...

    ENDFIX

    and the error message is:

    "Error: formula [statement of DIFFICULTY] (line 97) parse error: invalid object type rule.

    IF I move a number as a parameter to @HspNumToString (), for example @HspNumToString (2) then the rule will be valid.

    Any suggestion?  Calculation Manager version is 11.1.2.4.001

    Best regards, Brian

    Hello

    I'm afraid that's how it is. You cannot use variables of calculation in trouble.

    Instead, you can set a static member of this dimension (i.e. "no element") and by your use of calculation an operator cross dimensional to calculate the item desired.

    See you soon,.

    Alp

  • Is it possible to make a variable of several variables?

    Which means that I can define a new variable as two existing variables?

    As in, I have already a username variable and one ID. I want a new variable called UserNameAndID that shows something like "Username, ID" or "username (ID).

    You can concatenate a new variable or one of the two existing variables, with an expression:

    If stored v_one 'Lieve' and stored v_two "Weymeis', the result for v_three will be"Lieve Weymeis".

Maybe you are looking for

  • Arrow 'Send' missing from the iMac email form

    The 'Send' arrow is absent form e-mail iMac

  • Pavilion 17-f024ng

    HelloI bought a HP Pavilion 17-f024ng and I installed windows 7 professional 64 bit.USB ports and the network adapter does not work. I can't find the drivers Help me

  • Parental control in Recovery Mode

    So I ran various web filters on my home computers to protect my family from garbage who lives in the internet, but I came into a slight problem for those who have a little know-how that any filter service cannot compete with, the darned recovery mode

  • J8x12ua #aba: Hp 8 to version 5. No start or recover

    Goes to black screen at startup. I did some of the steps to recovery, testing and startup options. I noticed it says it was a 5... Past to a blue screen every now and then and since I do not know my outlook password that I can't. It shows a memory er

  • HP pavilion dv 6700 express card slot

    Hello everyone I have the laptop next HP PAVILION dv6700 S/N {deleted private information} P/N FG787EA #B1A Serial number dv6860ev ID SERVICE 20090 My laptop has an ExpressCard Slot My question is if I can use this slot to use an ExpressCard USB3.0 T