Conversion number

I have a BI imported table using ODBC 3.5 and OCI10g / 11g, they have the same results.

My column number (10,0) is available as a double. Thus, 579 is now showing that 579,0.

I tried to change the data type of int column, always 579.0.

How can I get rid of the fuite.0?

Thank you
Kathy

You can change the data type in the column properties (answers), tab type data, override datatype checkbox, no decimals to 0.

Tags: Business Intelligence

Similar Questions

  • ORA-06502: PL/SQL: digital or value error: character conversion number e

    Hi all
    I work with DBLOCALE , which is
    Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
    PL/SQL Release 10.2.0.3.0 - Production
    CORE     10.2.0.3.0     Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.3.0 - Productio
    NLSRTL Version 10.2.0.3.0 - Production
    and DBREMOTE
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    PL/SQL Release 9.2.0.8.0 - Production
    CORE     9.2.0.8.0     Production
    TNS for IBM/AIX RISC System/6000: Version 9.2.0.8.0 - Production
    NLSRTL Version 9.2.0.8.0 - Production
    Leave a procedure on DBLOCALE I run SCHEMA. MYPROCEDURE@dbremote (NUMBER, stringPar VARCHAR2, datePar DATE numberPar)

    I use this procedure only to call a function in a package of DBREMOTE with education booleanresult: = MYPACKAGE. MYFUNC (NUMBER, stringPar VARCHAR2, datePar DATE numberPar)

    In the service, I try to INSERT IN MYTABLE (numberPar, stringPar, datePar) and the error
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    is triggered.

    I missed something basic? Where is my mistake?

    I have check all types of past data and types of data in the table, that I have to insert.

    Any help or suggestion will be appreciated. Feel free to ask me any questions that need me to explain or for more details.

    Best regards
    Alex

    OraclePSP wrote:

    It starts with a page of APEX who call a procedure in DBLOCALE.

    Apex point (page) variables are all text - and bind as text variables when used in PL/SQL and SQL code.

    In this procedure, ii assess the past, then insert into a few tables@DBREMOTE without errors.
    The end of it, I'm calling the remote packaged function.
    In the function I use parameters to open a cursor and insert into MYTABLE.

    That you pass as parameters? The variable element of Apex (e.g. : P1_DATE) or do you attribute the object variable to a PL/SQL variable and the neck of the PL/SQL variable as a parameter?

    Even if I agree with you on the copy & paste I don't know what part of the process, I can speak to you.

    Well, you can try the following. Create a dynamic PL/SQL region on the page. This region should be implemented and made that the page has been sent (in other words, element variables used in the page need value for this region, for the record). You can create a condition for this region that must be met to be made - and this can check the QUERY variable, or to check if the relevant variables have values.

    In this dynamic PL/SQL code for the region block, use HTP.prn () as you would use DBMS_OUTPUT.put_line () in client-server test normal (using TOAD or SQL * more). And in this block of code, call the remote procedure.

    For example

    --// dynamic PL/SQL region code block:
    HTP.prn( 'Item P1_DATE = ['||:P1_DATE||'] 
    ' ); HTP.prn( 'Item P1_NUMBER = ['||:P1_NUMBER||']
    ' ); ..etc.. HTP.prn( 'Calling remote procedure:
    ' ); begin RemoteProc@RemoteDB( param1=>:P1_DATE, param2=>:P1_NUMBER ); HTP.prn( 'Call was successful
    ' ); exception when OTHERS then HTP.prn( 'Call failed with: '||SQLERMM(SQLCODE)||'
    '); end; ..etc..
  • String conversion number

    Hi all

    I need to convert the string like "-73.28" to the number - 73.28. With decimal string to number Vi I get only - 73,00 output with "-73.28" Dim input As string. What I've done wrong? How to get the required results? Also, note that it must be. the number of output!

    Thank you!

    Hi Nina,

    Firstly: have the decimal separator ',' in a digital indicator is just for aesthetic purposes, you can always calculate using the value...

    (1) you can change the settings of the operating system (Win: settings regional aka regional Einstellungen). I do this for all my computers as it seems "natural" for me when working with scientists/measurement data

    (2) you can move LV to ignore the decimal separator system settings - you will find in the dialog box options...

    But when using properly formatted output functions you do not need to change any setting...

  • Conversion number to a hex string

    Hello

    I want to send a command string hex to a device via the serial port. The chain includes a fixed part (address, function, register) and editable part (setpoint). The fixed part is a string constant hexa (0106 0022) the editable part is a number (1000) converted to string hex (03E8). Finally, the two are coding pour get the final string. The problem is that instead get: 0106 0022 03E8, I get: 0106 0022 3033 4538.

    After concatenates two strings, it seems that the second part is turned into ASCI.

    I can't find the solution!

    Thanks for your help.

    Sorry, I saved the vi in a different version.

  • conversion number need help

    Hello

    I have this string.

    23.527705

    can someone help me with this? I know I should know how to do this, but I can't seems to think properly now. been 3 hrs trying this.

    I need to round 24?

    Like this:

    Alternatives to the rounding to the nearest are round worms + infinity and round - to infinity.

  • Conversion number entry

    Hi all

    I have another problem with my application. I have a texfield where user entry numbers. I want to do the application automatically convert the user input to for example 1000000 to 1 000 000. I can do that with c ++? I searched the forum, but does no do this with c ++ response.

    Any help would be appreciated. Thank you.

    Problem solved, I just use math. Round (value) to solve the problem. I think it is the best way for now.

  • string conversion number in Unix

    I'm extremely sorry to post this here. I googled a Unix category for this post here. But could not find one.
    I have a string in Unix. I need to remove characters from the string.
    var=2012/03/26
    I need to remove the special char's('/') from the string. It should be 20120326. 
    I tried expr substr, but did not get the result.

    Sorry again to post in the wrong category.

    Try

    newvar=`echo $var|sed 's/[^0-9]//g'`
    

    Who's going to shoot anything that isn't a digital character in the string in the variable ${newvar}.

    Seems you watch a channel that will (eventually) be interpreted as a date, what happens when the string 'date' lack of zeros? It won't be pretty.

  • String MySQL DateTime to the number

    Hey... I have a problem with mysql date-time conversation number string.

    ID like converse in digital format date excel.

    My LV conversation for beginning 2013-01-22 10:00 is 3, 44169E + 9 and for

    the same day in a conversation of exel is 41295,4166666667.

    Why is this?

    TNX for your explonations.

    LV: "seconds that have elapsed since 12:00 a.m., Friday, January 1, 1904.

    Excel: "days since January 1, 1900 00:00".

    If you have a scale of 86400 and the shift of 1461 days factor (assuming that 1 year scot)

    /Y

  • Hexagonal n.o decimal whole conversion?

    How to convert 1 byte hexadecimal n.o in decimal form to the decimal integer of 8-bit data.

    Hello

    You can use the hexadecimal number fucntion. This option is available in - programming > String > String Conversion/number.

    Alternatively, you can search for hexadecimal number conversion.

  • Table Vision Builder & features of the calculator

    Hello

    I have a question about VBAI. I couldn't find these features in the software and I couldn't be sure if the software did these features or not. So, I just wanted to ask here, and if these features do not exist, I'll post to the exchange of ideas of Vision.

    -When I'm on tables in VBAI, on the stage of the calculator, I don't see the results of all computations of element tab measures. Only a few of them are visible, and there is no way to scroll left and right to see the other.

    Also, when I try to use these results table on the custom recovery stage, I can only use them as a whole, without any choice of format string.

    Are there other ways to do this or not?

    I see the same behavior on my end with digital pictures. I want to play with it some more, but I will probably be filling a CAR for that.

    To work around the problem, you can convert the digital table in an array of strings. It seems that tables of channels is displayed correctly the decimal parts after the conversion. I suggest using the fractional string function number, located in the String-> String Conversion/number. This will allow you to input a table 1 d of slna and specify the precision.

  • Find the right Partition for swap Partiton when there are PARTITION and SUBPARTITION

    Hi all

    I have a small problem:

    I want to find the right cause of partitions of the partition key.  I have a partition and a Subpartition (sample - table in annex).

    I leave the database to generate the partition (and name), the name is generated. I need to find for the exchange of partition

    the right of Partition has cause of a given value of the partition key (in this case EVOD_PART_DATE and 20141101 value).

    When I try to find the right partiton name, I would use generally not:

    SELECT DISTINCT dbms_rowid.rowid_object(ROWID) data_object_id
       FROM F_CONTRACT_EVENT
       WHERE  EVOD_PART_DATE = TO_DATE ('20141101','YYYYMMDD')
    

    Okay, I get 2 rows, I'm expecting one, but cause the result are the subpartions, I get this:

      SELECT *  FROM ALL_OBJECTS WHERE DATA_OBJECT_ID IN ( 155159,155154);
    

    I see:

    EVO_DM    F_CONTRACT_EVENT    SYS_SUBP4292    155159    155159    TABLE SUBPARTITION
    EVO_DM    F_CONTRACT_EVENT    SYS_SUBP4287    155154    155154    TABLE SUBPARTITION
    

    But I don't want the subparts, I want the PARTITON!

    The table:

    CREATE TABLE "EVO_DM"."A0_F_CONTRACT_EVENT" 
       ( "EVOD_DDATE_ID_VALID_FROM" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DDATE_ID_VALID_TO" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DTIME_ID_START" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DSUST_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DCHAN_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DARTI_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DCAMP_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DUSAG_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DOPSY_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DDEVI_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DSHOP_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DPLFO_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DACCO_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DDECL_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DOBJT_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DOFFR_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DCNTR_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DCURR_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DCONT_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DIVWC_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "DD_SUBSCRIPTION_ID" VARCHAR2(50 BYTE) DEFAULT '~' NOT NULL ENABLE, 
        "SINGLE_ISSUE" NUMBER(8,0) DEFAULT 0, 
        "SUBSCRIPTION" NUMBER(8,0) DEFAULT 0, 
        "RENEWAL" NUMBER(8,0) DEFAULT 0, 
        "CONVERSION" NUMBER(8,0) DEFAULT 0, 
        "DOWNLOAD" NUMBER(8,0) DEFAULT 0, 
        "UPDATES" NUMBER(8,0) DEFAULT 0, 
        "NET_VALUE_IN_EUR" NUMBER(10,4) DEFAULT 0 NOT NULL ENABLE, 
        "GROSS_VALUE_IN_EUR" NUMBER(10,4) DEFAULT 0 NOT NULL ENABLE, 
        "COMMISSION_IN_EUR" NUMBER(10,4) DEFAULT 0 NOT NULL ENABLE, 
        "TAX_IN_EUR" NUMBER(10,4) DEFAULT 0 NOT NULL ENABLE, 
        "POSITION_NR" NUMBER(3,0) DEFAULT -1, 
        "DD_ORDER_NR" VARCHAR2(50 BYTE) DEFAULT '~' NOT NULL ENABLE, 
        "EVOD_SOURCE_CD" VARCHAR2(50 BYTE) DEFAULT '~' NOT NULL ENABLE, 
        "FLAG_STOCK_RELEVANT" NUMBER(1,0) DEFAULT '0' NOT NULL ENABLE, 
        "RENEWAL_NR" NUMBER(3,0) DEFAULT -1, 
        "EVOD_DDATE_ID_SUBSCRIPTION" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DPRCG_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
      
       EVOD_PART_DATE DATE  GENERATED ALWAYS AS ( TRUNC(TO_DATE(TO_CHAR(EVOD_DDATE_ID_VALID_FROM),'YYYYMMDD'),'MM')) VIRTUAL)
    PARTITION BY RANGE(EVOD_PART_DATE)
    interval(NUMTOYMINTERVAL (1,'MONTH'))
    SUBPARTITION BY LIST(EVOD_SOURCE_CD)
    SUBPARTITION TEMPLATE(
    SUBPARTITION "P_ITUNES"  VALUES ('ITUNES') ,
    SUBPARTITION    "P_WSP"  VALUES ('WSP'),
    SUBPARTITION   "P_GOOGLE"  VALUES ('PLAYSTORE'),
    SUBPARTITION   "P_DEFAULT"  VALUES ('~') ,
    SUBPARTITION   "P_AMAZON"  VALUES ('AMAZON_EREADER', 'AMAZON_MANUELL', 'AMAZON_TABLET') ,
    SUBPARTITION    "P_MSD"  VALUES ('MSD')
    )
    (
     PARTITION P01 VALUES LESS THAN (TO_DATE('200310','YYYYMM')) SEGMENT CREATION DEFERRED
    )
    PARALLEL 10  ;
    

    Any ideas?

    Thanks for Berlin

    First of all - the DOF you posted is INVALID - you do not specify a delayed segment creation for partitions. Specify you for the table.

    Also, you must remove the DEFAULT value - 1 for the partitioning column. The value '-1' cannot be converted to a valid date for the virtual partitioning column value.» The default value is useless and will give confusion around the year exception err when the exception should actually provide a NULL value for a column not null.

    The documentation explains how to use the EXCHANGE PARTITION and has the code example

    Maintenance of Partitions

    Exchange a Partition of a partitioned Table interval

    You can exchange of range partitions in a partitioned table interval. However, you must make sure that the partition of the interval was created before that you can swap partition. You can leave the database create the partition in the partition of the interval of locking.

    The following example shows an Exchange partition for the interval_sales table, range-partitioned using the monthly from partitions of 1 January 2004. This example shows how to add data to the table using charge Exchange partition for June 2007. Assume there is only a local index on the interval_sales table and equivalent index have been created on the interval_sales_june_2007 table.

    LOCK TABLE interval_sales  PARTITION FOR (TO_DATE('01-JUN-2007','dd-MON-yyyy'))  IN SHARE MODE;    ALTER TABLE interval_sales  EXCHANGE PARTITION FOR (TO_DATE('01-JUN-2007','dd-MON-yyyy'))  WITH TABLE interval_sales_jun_2007  INCLUDING INDEXES;
    

    Note the use of the FOR syntax to identify a partition that has been generated by the system. The name of the partition can be used by querying the *_TAB_PARTITIONS view of data dictionary to find the partition system-generated name.

    Given that the last paragraph? That's what showed Solomon.

    NOTE:-special attention to the FIRST paragraph. If you use segment carried OVER creating the partition you want to Exchange could NOT have been created yet.

    Make SURE that you lock the partition as the example shows, or you will get an exception if it has not been created.

    Also - we know NOT what PROBLEM you're trying to solve.

    If you exchange a PARTITION of a table subpartitioned your working table should actually be partitioned using the SAME parttioning as the subparts in the source table:

    See my response in this thread:

    https://forums.Oracle.com/forums/thread.jspa?threadID=2482090&TSTART=30

    In this thread I have provide the code example illustrating how the table should be created and made Exchange.

  • ORA-06502 error digital or value of PL/SQL.

    Hi experts,

    Oracle Apex 4.2, 11g database, using windows 7.

    I created a form and trying to create automatically generated # (sequence of not) with logic and SQL.

    My requirement is to generate the good good exercise only and exercise begin from 01 July and ends 30 June each year. This means if the 07/01/2015 start it will create a new voucher No.

    The table name is GL_PV and the columns are:

    Number of PV_No

    Date of PV_Date

    Number of CC_code

    number amount

    Remarks varchar2 (100)

    What I did: -.

    Created a process to submit before the calculations and validations.

    Code are

    IF TO_NUMBER (TO_CHAR (: P15_pv_date, 'MM')) < = 6 THEN

    SELECT MAX (to_number (nvl(pv_no,0))) + 1

    IN: P15_pv_no

    OF GL_PV

    WHERE pv_date

    BETWEEN

    TO_DATE ('01 - JUL' |) ' -'|| (TO_NUMBER (TO_CHAR(:P15_pv_date,'YYYY'))-1), 'DD-MON-YY')

    AND

    TO_DATE (30 - JUN'|) ' -'|| To_char(:P15_pv_date,'YYYY'), 'DD-mon-YY')

    and cc_code =: P15_cc_code;

    ON THE OTHER

    SELECT MAX (to_number (nvl(pv_no,0))) + 1

    IN: P15_pv_no

    OF GL_PV

    WHERE pv_date

    BETWEEN

    TO_DATE ('01 - JUL' |) ' -'|| To_char(:P15_pv_date,'YYYY'), 'DD-mon-YY')

    AND

    TO_DATE (30 - JUN'|) ' -'|| (TO_NUMBER (TO_CHAR(:P15_pv_date,'YYYY')) + 1), 'DD-MON-YY')

    and cc_code =: P15_cc_code;

    END IF;

    If: P15_pv_no is null then

    : P15_pv_no: = 1;

    end if;

    and press the button when Conditions = Generate_Button

    I have the default assign to pv_date = sysdate, when I launched the point Pv_date form shows the current date and I click on Generate_button now show error.

    Error ORA-06502 PL/SQL digital or value. Conversation number character.

    One last thing, I checked this code already in TOAD, type I assigned as DATE-value = 10/11/2014 (today's date) works fine without error.

    Please guide what this evil is stated.

    Best regards

    : P15_pv_date is probably not a date but a varchar2 in Apex

    Try this

    NVL SELECT (MAX (to_number (nvl(pv_no,0))) + 1, 1)

    IN: P15_pv_no

    OF GL_PV

    WHERE pv_date

    BETWEEN to_date (' 01-07-' |) (extract (year of to_date (: P15_pv_date, "dd-mm-yyyy")) + case when extracted (months to_date (: P15_pv_date, "dd-mm-yyyy")))<= 6="" then="" -1="" else="" 0="" end="" ),="" 'dd-mm-yyyy'="">

    AND to_date (30 - 06-' |) (extract (year of to_date (: P15_pv_date, "dd-mm-yyyy")) + case when extracted (months to_date (: P15_pv_date, "dd-mm-yyyy")))<= 6="" then="" 0="" else="" 1="" end="" ),="" 'dd-mm-yyyy'="">

    and cc_code =: P15_cc_code;

  • Exception: "could not validate SAML token.

    We have a configuration of rating system that we use to generate a PDF of Psalm we you connect through the EJB client and usually have had no problems. Until today. At some point today we started seeing some exceptions are thrown on the client:

    Caused by: com.adobe.idp.um.api.UMException | [com.adobe.idp.um.api.impl.AuthenticationManagerImpl] errorCode:16421 errorCodeHEX:0 x 4025 message: SAML - Assertion impossible to validate the token has expired and therefore not valid for user [administrator@DefaultDom]. Its valid until time [kill Feb 04 10:58:45 MST 2014] turns out to be before the current time [kill Feb 04 16:04:41 MST 2014]

    Bounce just the application server running the client code has solved the problem, but we would like to better understand what is happening and why. Nothing of what I can find in the docs seems to indicate the cause/solution and possible solutions have links which seem to no longer work: http://cookbooks.adobe.com/post_Renewing_the_context_to_handle_session_expiry-16410.html

    Any suggestions or insight would be greatly appreciated. Thank you!

    PROBLEM

    Using the same instance of ServiceClientFactory to call remote services exposed by the LiveCycle container can lead to

    exceptions related to the expiration of the assertion

    Solution

    To handle the timeout use the ThrowHandler mechanism provided by the ServiceClientFactory framework

    Detailed explanation

    LiveCycle provides a client sdk for java-based client call its services remotely.

    An invocation involves the creation of an instance of ServiceClientFactory setting user credentials in thefactory instance passes this factory to a customer of service or creating an InvocationRequest directly

    Use the client to perform the actual request.

    For more details, see Invoking

    LiveCycle ES using the Java API .

    An instance of ServiceClientFactory once created is valid for a certain

    period of time that is default 120 min., if the same instance is used to call beyond that period, while he leads to an exception indicating that

    the session has expired [com.adobe.idp.um.api.impl.AuthenticationManagerImpl]

    errorCode:16421 errorCodeHEX:0 x 4025 message: could not validate SAML

    Token - Assertion has expired and therefore not valid for the user

    [administrator@DefaultDom]. Its valid until time [Thu Oct 22

    17:07:53 IST

    2009] turns out to be before the current [Thu Oct

    [22 17:58:18 2009 IST]

    This isn't a problem if the ServiceClientFactory instance is used for a short time. However if you want to make a long

    the task as great conversion number of documents to PDF, applying the policies their etc., then it would be a problem.

    Session time-out

    Before fxing the question some info on what is session time-out.

    • When you use an instance of ServiceClientFactory to invoke service suite fow arrives
    • You set credentials in the properties and call the service
    • LiveCycle server side validates the credentials and issues a context. It's the kind of a ticket which can be reused later rather than the actual credentials.
    • After receiving the response from the server the ServiceClientFactory instance deletes its own copy of credentials and instead stores the context for calls more later on that this instance of context is passed instead of the credentials of the user
    • This fow everything is done to ensure that the credentials of the user are not sent for each remote call, thus improving security.

    For more information about the context, refer to

    Identity of the user in LiveCycle .

    Solution

    Fx this problem you need to re authenticate to LiveCycle and get the context new draw. the best way to do this is to use the ThrowHandler provided by the ServiceClientFactory framework

    Step 1 - create a Throwhandler

    ______________________________________________________________________ ______________________________________________

    /**

    * This ThrowHandler caches the credentials of the user and use them

    to update the framework in the

    * ServiceClientFactory to expiration.

    */

    private public static class SimpleTimeoutThrowHandler implements

    {ThrowHandler}

    private String username;

    private String password;

    public SimpleTimeoutThrowHandler (String username, String

    {password)

    me.username = username;

    This.password = password;

    }

    public boolean handleThrowable (Throwable t, ServiceClient

    SC,

    ServiceClientFactory EFC, MessageDispatcher md,

    IR InvocationRequest, int numTries) survey

    {DSCException}

    {if (timeoutError (t))}

    The call to AuthenticationManager does not require

    the authentication if the default properties

    are the people

    AuthenticationManager am =

    New

    AuthenticationManagerServiceClient (ServiceClientFactory.createInstance (getDefaultProperties()));

    AuthResult ar = null;

    try {}

    AR =

    AM. Authenticate (username, Password.GetBytes ());

    } catch (UMException e) {}

    throw new IllegalStateException (e);

    }

    Context ctx = new Context();

    ctx.initPrincipal (ar);

    Refresh the ServiceClientFactory instance with

    the new context

    scf.setContext (ctx);

    Logger.info ("refresh the related context

    ServiceCLientFactory");

    Now say CFS to try again, the invocation

    Returns true;

    }

    Check so that we do not again wrap the exception

    If (t instanceof DSCException)

    throw (DSCException) t;

    If (t instanceof RuntimeException)

    throw (RuntimeException) t;

    How is it possible to get that much?

    throw new IllegalStateException (t);

    }

    Private boolean timeoutError (Throwable t) {}

    If (!) () t.getCause () instanceof UMException)) {}

    Returns false;

    }

    UMException EU = t.getCause ((UMException));

    Check that UMException is due to the

    expiry of the assertion/context

    if(UMConstants.errorCodes.E_TOKEN_INVALID ==)

    {ue.getErrCode ()}

    Returns true;

    }

    Returns false;

    }

    }

    ______________________________________________________________________ __________________________________________

    This ThrowHandler would be invoked by the ServiceClientFactory to receipt of any exception. The manager would then determine if it's a timeout on the exception and then update the context associated with the instance of the factory and told him to retry the invocation.

    STEP - 2 record Manager

    ______________________________________________________________________ __________________________________________

    ServiceClientFactory.installThrowHandler (new

    SimpleTimeoutThrowHandler (username, password));

    ______________________________________________________________________ __________________________________________

    Note: the Manager should be listed only once in the application

    STEP 3 - make your invocation

    Following example would try to apply policies to all the fles present in a directory

    ______________________________________________________________________ __________________________________________

    Properties p = getDefaultProperties();

    p.setProperty (DSC_CREDENTIAL_USERNAME, username);

    p.setProperty (DSC_CREDENTIAL_PASSWORD, password);

    EFC ServiceClientFactory =

    ServiceClientFactory.createInstance (p);

    Now, to make a long running operation

    String inputDirName = "path-of-entry-dir";

    String outDirName = "path - to the-out-dir";

    String policyName = "the-policy-name ';

    Download the file = new File (inputDirName);

    Folder outDir = new queue (outDirName);

    RightsManagementClient rmClient = new

    RightsManagementClient (CFS);

    DocumentManager docManager = rmClient.getDocumentManager ();

    Iterate over all in the inDir pdf and apply the

    policies. If it takes a

    {for (file pdfFile: {inDir.listFiles ())}

    The inDoc document = new Document (pdfFile, false);

    Document securedDoc = docManager.applyPolicy (inDoc,

    pdfFile.getName (), policyName, null, null, null);

    securedDoc.copyToFile (new

    File (outDir, pdfFile.GetName ()));

    }

    ______________________________________________________________________ __________________________________________

    Now the invocation would end even if it takes a lot of time. If any session time-out occurs then our ThrowHandler would take care of it.

    Here's a sample:

    TimeOutSample.zip

  • In a table - looping through the rows and the stored procedure call

    APEX version: 3.2.0.00.27

    Hello

    I searched the forum and tried a few things but could not make it work.

    I have a tabular presentation, developed with the help of the ATD (Cascading LOV - method of tabular presentation - AJAX - ATD )

    What I'm trying to do now:
    -After submit and validations, loop through all the lines and
    -call a stored procedure passing 3 parameters obtained from each of the lines on the form of tables. This procedure will be an update of a database table.

    On the forum, I found that I could do the loop "* FOR i IN 1..." APEX_APPLICATION.g_f03. "LOOP COUNT *" syntax.

    Only for testing purposes, I tried just to view information with the following (On Load - after a footer) process (example of Denes Kubicek == > http://deneskubicek.blogspot.com/2009/05/execute-javascript-throuhg-plsql.html):
    declare
      v_today  varchar2 (200);
    begin
    --  :P40_test := APEX_APPLICATION.g_f03(1);
    --  :P40_test2 := APEX_APPLICATION.g_f04.COUNT;
      :P40_test2 := 100;
    
      v_today := to_char (sysdate, 'dd.mm.yyyy');
    
    --FOR i IN 1.. APEX_APPLICATION.g_f03.COUNT LOOP 
    
      :P40_test := APEX_APPLICATION.g_f02(2);
    
      HTP.p ('<script type="text/javascript">');
      HTP.p (   'alert(''Today is '
              || v_today
    --          || APEX_APPLICATION.g_f04(APEX_APPLICATION.g_f03(i))
              || '.\n'
              || 'end!'');'
             );
      HTP.p ('</script>');
    
    --    :P40_test := APEX_APPLICATION.g_f02(APEX_APPLICATION.g_f02(i));
    
    --END LOOP;
    
    end;
    The foregoing would give me a ' * ORA-01403: no data found * ' message. I tried through various variants of APEX_APPLICATION.g_f0* #*, but still can't get anything to display correctly. In commenting on all the lines referring to APEX_APPLICATION.g_f0x above, the date would be are they displayed fine.

    I tried uncomment the FOR... LOOP and play with the code (defining the process runs "On submit - after calculations" and Validations), I got was a ' * ORA-06502: PL/SQL: digital error or value: character conversion number error * "message.

    Here is the script of the form in a table:
    select 
    "V"."MSLINK",                                       -- hidden (number)
    "V"."INSTALLATION_DATE",                        -- editable date picker
    "V"."MANUFACTURER_INDICATOR",              -- editable (cascading LOV -- text)
    "V"."MODEL_INDICATOR",                           -- editable (cascading LOV -- text)
    "V"."DIAMETER_INDICATOR",                      -- editable (LOV -- number)
    "V"."PURPOSE_INDICATOR",                        -- editable (LOV -- text)
    "V"."VALVE_NUMBER",                                -- shown but not editable -- number
    "V"."MODIFY_DATE",                                  -- shown but not editable
    "V"."MODIFY_USER",                                   -- shown but not editable
    "V"."VALVES_STYLE"."FEATURE"                  -- shown but not editable -- number
    from "#OWNER#"."VALVES" "V"
    Where
      "V"."PROJECT_ID" = :P1_PROJECT_NUMBER AND
      "V"."VALVES_DFLAG" = 0
    Regarding the parameters for the stored procedure, it would the MSLINK, VALVE_NUMBER and the VALVES_STYLE. FEATURE.

    Help, please!
    (Sorry for the long post).

    Thank you

    Tan

    Hi, Tan,

    I have not seen that type of object - I've only used custom types for purposes of test years ago and have never used their within Apex!

    One possibility is that the value of checksum being is based on all of the content of these fields, rather than only the part of the FEATURE. If there are other parts of the object, you could include those items as well.

    Otherwise, as you f01 KP for a record, you will need to retrieve the values of the FUNCTION in your PL/SQL code directly from the table (because the user cannot modify these fields, you can be sure that the values in the table will be still valid).

    Andy

  • Draw a line from any Point to any Point B dynamically using AS3

    I'm doing an animation where there are several places (for example A, B, C, D,...) on a map. If a person clicks a location A and then B elsewhere, I wanted to draw a dotted line from point A (from the destination of the aircraft) to point B (to destination of the flat) using AS3. Please help me...

    Here's a quick timeline and dirty code it does (class is below):

    var line:Shape;
    var lineGraphics:Graphics;
    var clickSwitch:int = 0;
    var mousePositions:Array = [];
    var conversion:Number = 180 / Math.PI;
    
    init();
    function init():void {
         drawBackground();
         line = new Shape();
         addChild(line);
         lineGraphics = line.graphics;
         stage.addEventListener(MouseEvent.CLICK, onClick);
    }
    
    function onClick(e:MouseEvent):void
    {
         clickSwitch = 1 - clickSwitch;
         mousePositions[clickSwitch] = new Point(mouseX, mouseY);
         if (clickSwitch == 0) {
              drawLine();
         }
         else {
              removeLine();
         }
    }
    
    function removeLine():void
    {
         lineGraphics.clear();
         line.rotation = 0;
    }
    
    function drawLine():void
    {
         lineGraphics.lineStyle(1, 0xff0000);
         lineGraphics.moveTo(0, 0);
         var dotDistance:Number = 2;
         var nextX:Number = dotDistance;
         while (line.width < Point.distance(mousePositions[0], mousePositions[1])) {
              lineGraphics.lineTo(nextX, 0);
              nextX += dotDistance;
              lineGraphics.moveTo(nextX, 0);
              nextX += dotDistance;
         }
         line.rotation =  conversion * Math.atan2(mousePositions[0].y - mousePositions[1].y, mousePositions[0].x - mousePositions[1].x);
         line.x = mousePositions[1].x;
         line.y = mousePositions[1].y;
    }
    
    function drawBackground():void
    {
         var s:Shape = new Shape();
         var g:Graphics = s.graphics;
         g.beginFill(0xC0C0C0);
         g.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
         g.endFill();
         addChild(s);
    }
    

    Class:

    package
    {
         import flash.display.Graphics;
         import flash.display.Shape;
         import flash.display.Sprite;
         import flash.events.MouseEvent;
         import flash.geom.Point;
    
         public class DottedLine extends Sprite
         {
              private var line:Shape;
              private var lineGraphics:Graphics;
              private var clickSwitch:int = 0;
              private var mousePositions:Array = [];
              private var conversion:Number = 180 / Math.PI;
    
              public function DottedLine()
              {
                   init();
              }
    
              private function init():void {
                   drawBackground();
                   line = new Shape();
                   addChild(line);
                   lineGraphics = line.graphics;
                   stage.addEventListener(MouseEvent.CLICK, onClick);
              }
    
              private function onClick(e:MouseEvent):void
              {
                   clickSwitch = 1 - clickSwitch;
                   mousePositions[clickSwitch] = new Point(mouseX, mouseY);
                   if (clickSwitch == 0) drawLine();
                   else removeLine();
              }
    
              private function removeLine():void
              {
                   lineGraphics.clear();
                   line.rotation = 0;
              }
    
              private function drawLine():void
              {
                   lineGraphics.lineStyle(1, 0xff0000);
                   lineGraphics.moveTo(0, 0);
                   var dotDistance:Number = 2;
                   var nextX:Number = dotDistance;
                   while (line.width < Point.distance(mousePositions[0], mousePositions[1])) {
                        lineGraphics.lineTo(nextX, 0);
                        nextX += dotDistance;
                        lineGraphics.moveTo(nextX, 0);
                        nextX += dotDistance;
                   }
                   line.rotation =  conversion * Math.atan2(mousePositions[0].y - mousePositions[1].y, mousePositions[0].x - mousePositions[1].x);
                   line.x = mousePositions[1].x;
                   line.y = mousePositions[1].y;
              }
    
              private function drawBackground():void
              {
                   var s:Shape = new Shape();
                   var g:Graphics = s.graphics;
                   g.beginFill(0xC0C0C0);
                   g.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
                   g.endFill();
                   addChild(s);
              }
    
         }
    
    }
    

Maybe you are looking for

  • tabs, windows and keep opening with ads and downloads that I can't stop

    New tabs with ads, downloads etc. keep opening on firefox also of new windows getting install supposed repair tools (eFix now). Executed ADWCleaner, Malware Bytes, TDSSkiller, uninstalled and reinstalled firefox but not anywhere... help greatly appre

  • Equium A110: How replaceme hinges

    Hi, I am looking to source replacement hinges for my Toshiba laptop, could someone point me in the right direction that I can't find anything on the net :( Thank you very much

  • iWeb window configuration

    I use iWeb 2011 with all its configurations obsolete and, of course, with a relative width of 700px. I found that it works with all devices without changing anything:

  • Spider solitaire games is numbered

    I want to know is if solitaire games spider window is numbered and, if so, how to find the number.

  • Wi - Fi turned off at startup-Windows 7

    I have a Toshiba laptop that was recently refused to turn on wi - fi at startup. It by default will be turned on, but still no show all available networks. I have to turn wi - fi off and on again so that it can detect my wireless network. I use am At