Translate a PDTextSelect to a PDEElement variable

I work with a PDTextSelect variable to obtain the text of the selected user. Is there a way to then transform this PDTextSelect variable a PDEElement? I tried a few thing to date including reinterpret_cast < PDEElement > but nothing has worked.

There is no direct conversion. They are quite different types of representation. The order of characters and the text may not be the same. Once you have the contact details of a PDTextSelect you can iterate elements PDEText to find items (not necessarily consecutive) which overlap in coordinates. The selection is likely to be only a part of a PDETextRun. It's complicated stuff (although important and obvious need). Text editing is a very complex task and usually works entirely in the edit PDF layer, implement its own logic of selection.

Tags: Acrobat

Similar Questions

  • Translate the report by updating the session WEBLANGUAGE variable

    Hi all

    My requirement is to have a report in different languages. The easiest way to do so is to create different versions of a report by language. But I think that this is not the ideal solution, because OBIEE can deal with different languages.

    I won't translate the full presentation layer, because it's for one report only. So, do not use the metadata externalize strings feature. I'll use the captions feature translate rather, as described here: http://gerardnico.com/wiki/dat/obiee/localization/obiee_webcat
    It works very well.

    Now, I want to go a little further. To see the report in another language, the user must change the language of its session (NQ_SESSION. WEBLANGUAGE). Using the standard features, the user must go to the screen of my account, change, its language, then we must refresh the dashboard.

    I don't think that it is very user friendly, so I want to simplify this, by adding a language invites to the dashboard. My idea is to update the session variable WEBLANGUAGE with a variable of presentation in a line of dashboard, as described here: http://oraclebizint.wordpress.com/2008/02/25/oracle-bi-ee-101332-updating-session-variables-from-dashboards-using-presentation-variables/

    But the result is the session variable is updated, but the captions are not translated. So it doesn't seem to work...

    Have you any ideas on why it does not work, or you have another solution?

    Thank you!

    Kind regards
    Stijn

    No, your answer is completely stupid.

    For me, it works on a dashboard page:

    In French:
    http://host:9704/Analytics/saw.dll?dashboard&PortalPath=YourPath&page=YourPage&locale=FR

    To Engels:
    http://host:9704/Analytics/saw.dll?dashboard&PortalPath=YourPath&page=YourPage&locale=en

    In Dutch:
    http://host:9704/Analytics/saw.dll?dashboard&PortalPath=YourPath&page=YourPage&locale=NL

    Then we must work for the Url to go but your edit the local for the complete environment variable.

    And it made me think to have a complete translation, you must use the LOCAL variable
    and not WEBLANGUAGE.

    See you soon
    Nico

    Just to add that the local value is maybe better with en_GB, fr - fr,...

    Published by: gerardnico on July 13, 2010 11:58 - bad locale value

  • Problem of extracting data from the XLIFF XML file

    Hi again,

    AS3 CS6 Flash Pro

    I have the XML loaded from a Flash panel language translation file strings in an XML variable. Works very well. Traces out - shown below.

    When I try to extract the data as XML < trans-unit >, I get an 1120: access of undefined property unit.

    function completeHandler(event:LoaderEvent):void {
        var stuff:XMLLoader = LoaderMax.getLoader(arrayXMLFiles[0]);
       var moreStuff:XML = LoaderMax.getContent(arrayXMLFiles[0]);
       ssDebug.trace(moreStuff); // this works with output shown below
       ssDebug.trace(moreStuff.xliff.file.body.trans-unit); // - error here
    }
    

    The Trace is here:

    <xliff version="1.0" lang="en" xmlns="http://www.w3.org/XML/1998/namespace">
      <file datatype="plaintext" original="CardJam.fla" source-language="EN">
        <header/>
        <body>
          <trans-unit id="001" resname="IDS_ZXP7_JAM_01">
            <source>If, while you are printing, your printer stops, ...</source>
          </trans-unit>
          <trans-unit id="002" resname="IDS_ZXP7_JAM_02">
            <source>look at the Operator Control Panel (OCP) for the fault description.</source>
          </trans-unit>
          <trans-unit id="003" resname="IDS_ZXP7_JAM_03">
            <source>If the fault is a card jam, open and close the Print Cover (or Options Cover).</source>
          </trans-unit>
          <trans-unit id="004" resname="IDS_ZXP7_JAM_04">
            <source>The printer will initialize and move the jammed card to the Reject Bin.</source>
          </trans-unit>
          <trans-unit id="005" resname="IDS_ZXP7_JAM_TITLE">
            <source>Card Jam</source>
          </trans-unit>
        </body>
      </file>
    </xliff>
    
    

    I found a code by looking at a similar problem - I do not know how to retrieve other data (as I guess) the rest of the HTML in the code. I need to find a better reference with details and examples.

    I fixed it by changing:

    ssDebug.trace(moreStuff.xliff.file.body.trans-unit); -error

    TO:

    ssDebug.trace (moreStuff.file.body ['trans-unit']); -no error

    with results expected (no error):

    If, while you are printing, your printer stops...

    get to the control panel (OCP) operator for the error description.

    If the fault is a card jam, open and close the Print cover (or cover the Options).

    The printer will initialize and move the card stuck in the compartment to reject.

    Card jam

  • APEX 4.2 translate data 'function and Global Variable declaration '.

    Hello everyone,

    I use APEX 4.2.1.00.08 and I wonder if there is a way to translate "Function and Global Variable declaration" textarea. Any other script text box is available for translation, but not this one.
    I know what the code is loaded on the header, but may contain important alert messages of global functions.

    Thanks in advance.

    Hi Grandmaster,

    "Function and global variables declaration" contains the JavaScript code, that is why it is not wise to include in the standard translation process.

    In my opinion, you have several options to access your translated messages:

    -) Use Application-> Substitutions or
    -) Store your message in the form of component shared-> SMS and and assign it to an application with the APEX_LANG element. Api MESSAGE (http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_lang.htm#CHDBCEAB)

    In 'Function and Global Variable declaration' use substitution syntax to replace the value. For example:

    var myDeleteMessage = "&G_MY_DELETE_MESSAGE.";
    ...
    alert(myDeleteMessage);
    

    where G_MY_DELETE_MESSAGE would be a part of the application or the request for Substitution.

    Concerning
    Patrick
    -----------
    Member of the APEX development team
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Shared variables is deployed several times

    Everyone has experienced problems with an application in development mode (LV2015) from deploy shared variables whenever it loads a VI?

    He suddenly began to arrive, and I don't know why or what I did. Now it charges 11 times before can run the application. Very annoying and I can't find where to select a VI not deply its Variables shared. Deploying them should suffice

    It was only a matter of time. I have a main VI calling several other VI that uses the same shared variables to communicate with each other. It translates the same loading variables each time the main VI called the next VI on startup.

    Solution was to right click on my computer in the project and check the option 'Disable Autodeplay Variables'.

  • For a sequence in real-time output variable

    VS 2011, I have a sequence of real-time voltage step that sets an AO for a voltage given for awhile, and then resets the output to 0.

    Just before setting the output to 0, I want to read the response of my this stimulus of an AI System I call StepResponse. To do this, I place this in FinalValue I set as a Variable in my script. In other words, it is a parameter or a local Variable.

    Now, how can I get this out FinalValue? I don't see anything on how to "test" this variable to one of my user variable... I was able to do with the stimulus inherited in VS2010 Editor. Now, I'm stumped.

    Here is the sequence:

    and this is the profile of stimulus and settings below. I can set the fine settings via the API of LV, or run the Publisher of the Stimulus. But I can't seem to get out this FinalValue...

    THX.

    L.

    The return for a sequence (in your case FinalValue) variable is returned to the caller once the sequence has been completed as a result of this sequence. In your example, the appellant is stimulus profile that you configured. In a profile of stimulus, two relevant things will come based on the return value of variable a sequence called:

    1. The return variable value will be get recorded in the file of test result ATML for stimulus profile

    2. You can configure an assessment of output for the call to test sequence make a basic on the return variable test to determine a pass/fail result. For a numeric variable to return such as FinalValue, you can do a check of numerical limits to test whether the value is in or out of the specified limits. For a Boolean return value, you can translate either directly in a pass/fail result, or you can reverse the logic as well as False implies Pass.

    In addition, the LabVIEW API has a function, you can call once the sequence finished to programmatically retrieve the return value.

    However, in your sequence after that you store the value StepResponse in the return variable, you reset to zero before the end of the sequence. If your sequence always returns zero. I think that you do not remove this line and let FinalValue what so that you will get the StepResponse back closure instead of zero value.

  • How to translate the declaration C++ and C

    Hello

    I have a DLL that I want to use in a program developed by CVI (FDS version 8.5.1). DLL comes with documentation including a file include (* .h), where all function declarations are given. So usually I would just include this header file, unfortunately, this file was written for C++ and contains the declarations of functions of the following type:

    empty typedef (__stdcal * fp SOMETYPE) (double &, double &, long &, long).

    The compiler and I are confused by the '&' I know 'double' and ' double *', but not "double &'..." The same for the CVI that complains with an error of syntax, found '&' expected ')'.

    Then of course I have to manually translate this C++ C style header file - but I have no idea how to proceed... Maybe someone could help me? Thank you!

    It's been a while since I've done any C++, but as far as I know, you can again declare the function as:

    empty typedef (__stdcal * fp SOMETYPE) (double *, double * long *, long)

    in the header and call it from your code by passing the variables or pointers "address of".

    In this case, '&' in the function statement means "by reference."  It's a bit like pointers in C, but allowing the error checking (for example - cannot be NULL, cannot be re-assinged, etc.) and probably makes the compiler optimizations.  If you are interested in, search google for References C++, or you can check out wikipedia:

    http://en.Wikipedia.org/wiki/reference _ (C %2% B 2 B)

  • RT target does not read shared variable hosted by host

    Hello

    I just started to move my LabView application to a system of RT, and I came up with a problem. When I host a shared variable network-published on the RT target, I can access through vi running on the target and the host (which is good!). However, when I have this host on the host variable (such as by simply dragging on 'My Computer' in Explorer projects or all create a new variable), the vi running on the target RT is not read.

    I wonder if there is a problem with my installation of LabView, or if there is some step I'm missing. Any suggestions would be greatly appreciated!

    My host is running Windows 7 x 64, with LabView 2009 SP1 32 - bit. The objective of the RT is a real-time OS-powered desktop PC. I have attached a very simple project to illustrate this problem: I start 'Target VI' and 'Host VI' at the same time. On 'Host VI', I change the values of the two shared variables: 'hosted host' and 'target hosted. Only the changes made to the target "hosted" appear on the 'target VI'.

    Thank you!

    Andrew

    Take a look at this link (software configuration and firewall hardware to support National Instruments products) and this link (configuration of firewalls and routers network address translating shared Variables) to see if this highlights exactly what you need to explain in your application regarding the definition of the firewall exceptions.

    David has.

  • Keep persistent variable values

    Hi all

    I'm about to create a random coefficients (FRC) for an Adaptive order blur in LabVIEW. The original design made in MATLAB/SIMULINK and I'm trying to translate functions in LabVIEW to my creations.
    The MATLAB function is then called in Simulink and returns the results. What I'm stuck with, is how PERMANENT is kept in LabVIEW. Consider the following script:

    e = [0.2 0.3];

    current_error = e (1);
    simulation_time = e (2);

    number of persistent;
    persistent previous_error;

    If isempty (count)
    Count = 0;
    end

    If isempty (previous_error)
    previous_error = 0;
    end

    Count = count + 1;

    control_activity = (current_error + previous_error) count;

    previous_error = current_error + previous_error;

    The above script retains the values of the persistent variables (County, previous_error) intact whenever this function is called in Simulink. But in LabVIEW how it's done?
    I'll probably call the same function in LabVIEW in a main loop. Am I supposed to use the shift registers to pass values between iterations?

    It will be the variable persistence?

    There is one post of the same problem in this forum, but the guy there wants to keep intact values using the VI. I, on the other hand, want to keep my values in a jar as soon as my function is called in a loop.

    Help!

    Kind regards.

    NapDynamite wrote:

    The above script retains the values of the persistent variables (County, previous_error) intact whenever this function is called in Simulink. But in LabVIEW how it's done?
    I'll probably call the same function in LabVIEW in a main loop. Am I supposed to use the shift registers to pass values between iterations?

    It will be the variable persistence?

    Yes, using shift registers

  • Java connector and env variable

    Hello

    When we connect to RDSH farm with java connectore we get an environment CLIENTNAME a variable IP address of the client machine, but when we connect to RDSH farm with connectore ordinary we get a CLIENTNAME variable a host name of the client machine.

    We use a published application that depends on the good CLIENTNAME variable (it must be a host name, not IP)

    Is it possible to force the java client CLIENTNAME hostname variable setting?

    Thank you

    Robert

    Hello Robert,.

    According to me, the problem which translates the behavior you described has identified as a defect in the current vWorkspace Java Connector. We have a default open with the description "Java connector has not managed a correct information on the connector of the station /" and the 213704 ID. This issue is considered by the development team and is currently scheduled to be fixed in the next version Java Connector vWorkspace.

    Best regards

    David

  • The translation of VRU road

    Due to the complexity in our scripts, I find myself need to requalify calls more often. Normally I need to go to an existing script that already has a route of translation to the node of the URV. Is there a way to check and see if it has already occurred to avoid errors when I find myself re - translate? I could just make duplicate scripts that do not include the node, but they would be the same otherwise, and that seems like the addition of the work and potential errors later when they change again.

    I tried to use the DN nodes to try to see if the calls come from a place that has already done the translation, but some of them now have a dozen or more points of origin and, once again, I want to minimize the places for the error later when changes are made.

    IPCC Enterprise 6.

    Maybe try to set FINES after make translation VRU road, in each script before the translation of VRU make a stetement if to check if the variable has been set.

    Chris

  • Looking for a SQL query to retrieve callvariables + ECC to a RESULTS of SCRIPT EXECUTE (translation VRUS)

    Hi team,

    I'm looking for a SQL query check data (ECC + CallVariable) due to a RESULT of SCRIPT EXECUTE when you ask an external VRU with a translation route to VRU with a 'run external Script '.

    In my view, that the data are analyzed between the termination call detail + termination call Variable.

    If you have already such a SQL query I would be very grateful to have.

    Thanks and greetings

    Nick

    Omar,

    respectfully, shorten the interval of a day might not be an option for a history report ;-)

    I recommend to take a look at the following SQL query:

    DECLARE @dateFrom DATETIME, @dateTo DATETIME

    SET @dateFrom = ' 2014-01-24 00:00:00 '

    SET @dateTo = ' 2014-01-25 00:00:00 '

    SELECT

    TCV. DateTime,

    TCD. RecoveryKey,

    TCD. RouterCallKeyDay,

    TCD. RouterCallKey,

    VME. EnterpriseName AS [ECVEnterpriseName],

    TCV. ArrayIndex,

    TCV. ECCValue

    OF Termination_Call_Variable tcv

    JOIN THE

    (SELECT RouterCallKeyDay, RouterCallKey, RecoveryKey IN Termination_Call_Detail WHERE DateTime > @dateFrom AND DateTime)< @dateto)="">

    THE tcv. TCDRecoveryKey = tcd. RecoveryKey

    LEFT OUTER JOIN Expanded_Call_Variable VME ON tcv. ExpandedCallVariableID = VME. ExpandedCallVariableID

    WHERE the tcv. DateTime > @dateFrom AND tcv. DateTime<>

    With variables, you can set up your code (for example, you could write SET @dateFrom =? and let the calling application to fill in the DateTime for you).

    In addition, join two large tables with all the lines, as you did (TCD - TCV) is never a good option.

    Another aspect to consider: all the ECC is actually arrays (always), is not good to leave aside the index value (tcv. ArrayIndex).

    G.

  • Bind Variables on the view objects child definition

    JDeveloper 12 c

    I have an interesting question.  I have a view (AisWebModulePrivsVO) object that uses a bindvariable hardcoded in the view object.

    SELECT * FROM SYS. DBA_ROLE_PRIVS where DEALER =: bvUserName

    If I put this in the request module I can programmatically set the variable binding (view object contains the getter/setter for the binding variable).

    AisWebModulePrivsVOImpl voTest = am.getAisWebModulePrivsVI ();

    voTest.setbvUserName ("ARAWLS");

    voTest.executeQuery ();

    System.out.println ("test reports:" + voTest.getRowCount ());

    and get the correct number of records based on return on the user and database roles. If it works.

    What does NOT work, it is when this display object is a recording of 'the child' to another display object (as specified by a link between the two and by setting the object from a point of view as one child of the other in the module of the application).

    AppModule looks like this:

    CgRefCodesVO

    AisWebModulePrivsVO

    In this case, I have a view called cgRefCodeVO parent object.  There is a link between this and the AisWebModulePrivsVO. The relationship works.

    AISMenuAppModuleImpl m = ADFUtils.getApplicationModuleForDataControl (appMod) (AISMenuAppModuleImpl);

    CgRefCodesVOImpl cgRefVO = am.getCgRefCodes1 ();

    AisWebModulePrivsVOImpl modsVO = am.getAisWebModulePrivs1 ();

    modsVO.setbvDBUserName ("ARAWLS");  This doesn't seem to work here...

    cgRefVO.executeQuery ();

    All lines rs = cgRefVO.getRowSet ();

    RS. Reset();

    While (rs.hasNext ()) {}

    CgRefCodesVORowImpl CgRefRow = rs.next ((CgRefCodesVORowImpl));

    System.out.println ("RvLowValue:" + CgRefRow.getAttribute ("RvLowValue"));

    RowIterator aisModulesRowIter = CgRefRow.getAisWebModulePrivs ();

    System.out.println ("number of children:" + aisModulesRowIter.getRowCount ());

    }

    The code compiles and runs.  She translates: "County of the child: 0" for each row returned by the

    I also tried:

    VM VariableValueManager = modsVO.ensureVariableManager ();

    vm.setVariableValue ("bvDBUserName", "ARAWLS");

    And:

    modsVO.setNamedWhereClauseParam ("bvDBUserName", "ARAWLS");

    and (of https://community.oracle.com/message/2746551#2746551 ( )

    @Override

    protected void executeQueryForCollection (Object, object, Object [] object2, int i) {}

    I coded everything hard to see if it would work.

    setNamedWhereClauseParam ("bvDBUserName", "ARAWLS");

    super.executeQueryForCollection (object, object2, i);

    }

    and from there, I changed around the order to execute the objects in view.    https://community.oracle.com/message/10632314#10632314

    How can I set the variable binding in the object view child?

    Thank you

    Stuart

    It is an interesting example how ADF works up to a certain point... then you need to start to make cuts to modify its behavior as you wish.

    I decided that it was just easier to delete 'the child' parent (in the app module) and create a view of criteria on this subject for what would basically query the records to get the same results, like a child.

    Perhaps not as elegant, but so much easier.

    Thanks for your help.

    Stuart

  • Invites presentation Variable causing problem.

    Hi friends,

    IM replacing it with the formula in the SQL filter as below

    "Time". "' Exercise date ' > = TIMESTAMPADD (SQL_TSI_MONTH, - TIMESTAMPDIFF (SQL_TSI_MONTH, TIMESTAMP'2006-01-01 00:00:00 ', CURRENT_DATE), TIMESTAMPADD (SQL_TSI_DAY,-DAYOFMONTH (CURRENT_DATE) + 1, CURRENT_DATE)) AND"Time ". "" Exercise date "< = CURRENT_DATE


    And so im get the values from my default year Feb-2006 up to current_date (say as im getting the values of jan 2006 Jun-2015)


    That's why I want to replace the presentation instead of the keyword CURRENT_DATE variable in the formula so that the report is expected to behave according to the prompt value that I select and I gave the formula as below


    "Time". "" Tax Date ' > = TIMESTAMPADD (SQL_TSI_MONTH, - TIMESTAMPDIFF (SQL_TSI_MONTH, TIMESTAMP'2006-01-01 00:00:00 ', @{T_DATE} {CURRENT_DATE}), TIMESTAMPADD(SQL_TSI_DAY, - DAYOFMONTH (@{T_DATE} {CURRENT_DATE}) + 1, @{T_DATE} {CURRENT_DATE})) AND "Time". "" Exercise date "< = @{T_DATE} {CURRENT_DATE}

    But when I checked the dashboard report after you apply the filter above to my report, it does not work and it translates to no value.

    I understand that this problem is with the data format of the variable of my presentation. So for this format should I I need to replace my variable of presentation as well as the above formula will work.


    Thank you

    Kind regards

    Saro

    Now add a command prompt and select the dates that... create variable presentation in that? What is 113?... I didtn you get...

  • Variable information from the Captivate .swf 8 integrated and vice versa

    Hello

    I use 8 Captivate and created a game in Flash with AS3.  I will have NO problem running commands from Captivate embedded Flash file, using the syntax:

    MovieClip (this.parent.root) .rdcmndNextSlide = 1;

    However, whenever I try to import or to export values for the variables defined by the user or even predefined such as cpQuizInfoPointsscored variables, the values do not translate back.  I tried using the same syntax as above to set the value of a variable (for example MovieClip (this.parent.root) .cpQuizInfoPointsscored = 20;).  Similarly, I tried to display the value of a Captivate variable inside the Flash file by setting an equal to the set value Captivate dynamic text field.  In the first case, nothing happens; in the latter case, the text field displays "undefined".

    I have not seen a post about this particular problem.  Any ideas on what I am doing wrong?  Or is that what I try to do possible?

    Thanks in advance for any thoughts.

    Look in the category film control: these can be changed (some examples are cpCmndMute, cpCmndCC).

Maybe you are looking for