Object - want the user to see selection

Dear experts,

I came in the store and found a marker. I want that the user sees in the document, what I found.

The problem is: how to get an object to an object TextSelection and TextLocation? What I found is going the other way.

currentMarker = GetFirstMarker (doc, "#calc"); // this does its job
doc.TextSelecton = currentMarker;              // no error, no effect 
doc.ScrollToText(...);                         // requires TextLocation

Have studied more than a diagram of the DOM, I still don't see through the fog.

Klaus

Hi Klaus,

I have to say sorry. I lacked concentration.

Here, the right solution. (I hope that, this time with the best concentration)

This is the way:

you get the textlocation.

you create a textrange.

you select the text.

var tloc1 = currentMarker.TextLoc;

var tloc2 = currentMarker.TextLoc;
tloc2.offset = tloc2.offset+1;

var myTextRange  = new TextRange(tloc1,tloc2);

doc.TextSelection = myTextRange ;

doc.ScrollToText (myTextRange );

Tags: Adobe FrameMaker

Similar Questions

  • Can I activate LabVIEW select a scope OR automatically instead of the user device by selecting manually?

    Hi, is it possible to programmatically select a device rather than allow the user to manually select the device OR scope? And use these data as a resource for niScope Initialize name entry?

    I want to do is enable LabVIEW to find the MAX find the device scope nor available and introduce this value in the Initialize resource name of niScope entry. I tried different ways (property NI DAQmx device, NI Scope property node, node get DAQ Info.vi) but I can't convert the data in Session IVI niScope class.

    Thank you

    For devices OR-SCOPE, you can use the NOR-ModInst interface to query for which devices are available.  He is buried in the Utility Functions in the range of NOR-SCOPE.  Or you can search the palette OR ModInst.

  • The user can see all the resources, not only allowed for access to its organization

    Hello

    I put three self-serviceable resources resources authorized for a specific organization. So if I click on resources authorized for this organization, I can see only these three...

    When a user of this organization click on request for new resources, all self-serviceable resources are listed to the user, not only allowed resources. I thought that the user can only see authorized resources...

    If I connect as sys admin and request resources for a user of that organization, I can see that the three resources allowed.

    I saw the sql statement that run of IOM to inventory resources:

    Select
    obj.obj_key, obj_name, obj.sdk_key, sdk_name, obj_order_for, obj_auto_prepop, obj_type,
    obj_allow_multiple, obj_self_request_allowed, obj_autosave, obj_allowall,
    obj_rowver, obj_note, obj_autolaunch
    to obj obj
    outer join Software Development Kit sdk left obj.sdk_key = sdk.sdk_key
    where obj.obj_key in
    (
    Select distinct obj.obj_key from obj obj
    outer join Software Development Kit sdk left obj.sdk_key = sdk.sdk_key
    Left outer join acp acp on obj.obj_key = acp.obj_key
    OBA oba on obj.obj_key = oba.obj_key left outer join
    where
    (
    obj.obj_self_request_allowed = '1' or obj.obj_key in
    (
    Select obj_key in acp where act_key in
    (
    Select act_key
    of the usr
    where usr_key = 5 and acp_self_servicable = '1'
    )
    )
    ) and
    obj.obj_order_for = 'U' and
    (obj.obj_type ='Application ' or obj.obj_type ='Generic ') and
    obj.obj_key not in
    (
    Select pop.obj_key
    pop pop, pol pol, pog pog, PMU PMU, usg usg
    where
    pop.pol_key = pol.pol_key and
    pol.pol_key = POG.pol_key and
    POG.ugp_key = UGP.ugp_key and
    UGP.ugp_key = USG.ugp_key and
    USG.usr_key (5) and
    pop.pop_denial = '1'
    ) and
    obj.obj_key not in)
    Select distinct obj.obj_key
    to obj obj, obi obi, ost ost ouedraogo ouedraogo
    Join external orc orc left on oiu.orc_key = orc.orc_key
    where
    OIU.obi_key = Obi.obi_key and
    OIU.ost_key = OST.ost_key and
    Upper (OST.ost_status) "REVOKED" <>and
    OBI.obj_key = obj.obj_key and
    OIU.usr_key (5) and
    obj.obj_allow_multiple = '0'
    ) and
    obj.obj_key in
    (
    Select distinct obj_key
    pkg
    where pkg_type = 'Configuration '.
    )
    )

    As you can see in the query above, if I change the excerpt below the result is what I expect.

    ...
    obj.obj_self_request_allowed = '1' AND obj.obj_key in
    ...

    I missed to set something or something wrong?

    Thank you

    Renato.

    Sorry, but I do not understand your last answer. You mentioned the following:

    for option B, even if option A is not checked, you can set automatic ask for organization when assign authorized resources.

    -isn't that what you wanted? You define the resource resources as authorized in all organizations whose users can request this resource. I implemented this and it works fine. This works for both types of applications. (a) my resources-> request for new resources and b) applications-> resources-> Grant resources.

    In the case of b, according to the Organization to which the user is selected, the resource is displayed. all resources are not displayed.

    So the solution is to uncheck in RO and bring the resource authorized specific organizations as resources in self down. It should work fine. Let me know your exact problem if it works that way.

  • the user cannot see the data of an entity in a report

    Hello

    We have created an entity calle d 'aa' recently and we attributed it to a safety class. When the user running the report is showing the data for the entity, but for user 2 they receive "invalid object" error messages when they run the report, they have the same level of access. Why?

    Thank you

    MB

    We use the process command. The entity is a new entity and I haven't started the process for this entity. That's why he can not able to see it. I've started the process of this entity control, now, the user can able to see the data.

    Thank you

    MB

  • List of tables of objects or the user-defined type columns

    Hello

    SQL > select * from v version $;

    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE Production 11.2.0.2.0
    AMT for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production

    I have n number of tables in my db, since I have several
    tables containing "user defined type columns.
    so, how can I get/list db objects that contains the user-defined type columns only.
    Please suggest me on this

    Kind regards
    Faiz

    Dear Sir

    I have n number of tables in my db,from that i have several
    tables which contains"user defined type columns"
    so how could i get/list the db objects which contains user defined type columns only.
    Kindly suggest me on this
    

    Use this

    select
          tab.table_name
        , tab.column_name
        , tab.data_type
    from
        user_tab_columns tab
      , user_types typ
    where
        tab.data_type = typ.type_name
    order by
        tab.table_name
        ;
    

    Best regards

    Mohamed Houri

  • Can not get category, group, object of the user using CustomRecordTypeReadAll

    By setting the Inclure_tout to true, I get a lot of record types after calling the CustomRecordTypeReadAll web service, but there is no object category, users and groups.
    Someone knows why? Thanks in advance!

    I ran into this and similar items before. I never asked for a formal response, but it seems that the items that you cannot change in the CRM On Demand admin interface are not included in queries like CustomRecordTypeReadAll. For example, I don't think that you can rename the user object in the CRM On Demand, so the value is returned in CustomRecordTypeReadAll.

  • The user cannot see the movie online

    I have a user who opens one of our films, the window appears opn and nothing happens. I can't find what pluggins they need

    Welcome to our community, Jesse

    Needs of all your users is the Flash player. There is either a supplement to the Firefox browser or an ActiveX control (I think) for Internet Exploder.

    Assuming that all look to a server location, the fact that others see no question is indicative that all files are in place. The player would be the only thing that comes to mind.

    Maybe try upgrade to the latest version of the user? Refer them to this page:
    http://www.Adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash

    See you soon... Rick

  • How do you use BER if the value that you want the user to enter is 0?

    I have several TEB on a slide, but the value of input from the user to one of the ETB must be 0.  If the user clicks on the button submit without entering any value in the TEB, which is equal to zero, it will mark it as correct. I tried to set the value of the variable of the ETB 1 and then in the conditional action that I when the variable of the ETB is 0 perform different actions, but I get the same result.  I use 8 Captivate.  Any help would be appreciated!

    Well, I thought that out, but just in case someone already has this problem I'll explain what I did.  I did a tip for the slide action on enter and set the variables TEB 1 requiring the user to enter 0.  So if the user clicks on submit without entering values, the TEBs equal 0 would be marked wrong.

  • The user cannot see the tables

    Hello world
    I have a form where I can see all the data, run a query, but today, I created a new user, but when I run the same form, I'm not able to see all the data. Also, I went to sql and connected with the Preobrajensky of this user and when I run the following:
    Select * from cat;
    I'm not able to see the tables I created with the other user.
    Can someone help me please?

    Yes, grants and synonyms must be done for each table.

  • Problem with the role and the user; the user cannot see the table

    Hello forum,.

    I created a role:

    Enr_service CREATE ROLE;
    GRANT CONNECT TO enr_service;
    GRANT ALL ON tenants TO enr_service;
    GRANT ALL ON enr_service TO user;
    GRANT ALL ON sportsmen TO enr_service;
    GRANT SELECT ON test TO enr_service;

    and also a user:

    CREATE USER ENR1 IDENTIFIED BY password QUOTA UNLIMITED on USERS;
    GRANT enr_service to ENR1;
    ALTER USER ENR1 by DEFAULT ROLE enr_service;
    ALTER USER DEFAULT TABLESPACE USERS ENR1;

    I can connect to the database with this user, but when I try to query a table that has been granted access I get an error message:

    SELECT * ATHLETES;
    ORA-00942: table or view does not exist

    I don't see what I did wrong. Any help is appreciated.

    Sebastian

    user2019788 wrote:
    Hello forum,.

    I created a role:

    Enr_service CREATE ROLE;
    GRANT CONNECT TO enr_service;
    GRANT ALL ON tenants TO enr_service;
    GRANT ALL ON enr_service TO user;
    GRANT ALL ON sportsmen TO enr_service;
    GRANT SELECT ON test TO enr_service;

    and also a user:

    CREATE USER ENR1 IDENTIFIED BY password QUOTA UNLIMITED on USERS;
    GRANT enr_service to ENR1;
    ALTER USER ENR1 by DEFAULT ROLE enr_service;
    ALTER USER DEFAULT TABLESPACE USERS ENR1;

    I can connect to the database with this user, but when I try to query a table that has been granted access I get an error message:

    SELECT * ATHLETES;
    ORA-00942: table or view does not exist

    I don't see what I did wrong. Any help is appreciated.

    Sebastian

    This is probably because ENR1 isn't any table named ATHLETES and he did not qualify the name of the table with the schema name...

  • I want the user to click on a link on the home page that opens to another page with the corresponding ToolTip target openedon this page. How can I go about it?

    I tried to place an anchor in the target area and linked the link to the homepage on the anchor link and it did not work. Tried to tweak the name of the link: services / #managedservices and got a page fault.

    I want visitors to be able to click on a link 'service' on the home page and to open service page with the target already open for this service. Any suggestions? I'm open to sending screenshots and link to view.

    Thanks, Nichole

    You should have no problem link to an anchor on another page. Simply select the anchor point in the menu for hyperlinks. In the case, it may not work are if the anchor is in a tab or a sign of accordion or other gadget.

  • Automatically select a TextInput box, so the user must first select with the mouse

    Hi guys,.

    Is it possible to automatically set the cursor to an area of TextInput in Flex 3? So that users can start writing without selecting the TextInputBox with the mouse?

    Like Google does on its homepage!

    Thank you

    K

    Just use setFocus().

    Example:

    myTextArea.setFocus ();

    Simply call this initialization program.

  • access to objects in the user interface of Labview ResultList

    Hello!

    I would like to have access to Locals.ResultList TS [] objects in UI (LV) during test report generation.

    According to TS help in this point I can get the context of the sequence to the sequence of process template file that sends the UIMsg_ModelState_PostProcessingComplete message.

    But my sights are found in the context of the client's sequence file.

    Can I have access to the Locals.ResultList objects with file for the model intended use context?

    Is there a way to get the desired data?

    I have references to the file in the sequence and execution in this point and tried to use the Execution.RunTimeVariables property.

    But not able to get the data searched with any supposed this object search string.

    Thanks in advance for any ideas.

    Hi, Horbert

    Thank you much for the help!

    This time I found useful object to me: Execution.ResultObject.

    It refers directly to ResultList.

    However your variant is also very useful.

    Thank you once again and I cancel this topic.

  • The user cannot see USB devices

    We use view 6.0.1 Client Horizon view 6.0.1 Agent 3.2.  Virtual machines are Windows 7 SP1.  Associates are the PCoIP connections for their machines.  They connect to a Pool of manual offices.

    I have a single partner who can't see USB devices.  I tried to reinstall the agent on their machine and it did not help.  I had this person use other USB devices, and they are not recognized as well.

    Does anyone have other suggestions I can try?

    Have you tried to uninstall the client of the Horizon and install the latest version?

  • Why should the user now manually select the toolbar as well as diapers and other tools rather than load them automatically?

    With the recent upgrade, I must now go to the Windows menu and manually select the toolbar as well as the layers and other tools rather than loading them automatically.

    is it a question of photoshop?

Maybe you are looking for