How to set a LinkElement ID using IEditManager.applyLink

I use the code for the form:
IEditManager (_textFlow.interactionManager) .applyLink (" http://www.cnn.com");
However, in my underlying markup, I would like to have something like this:
"" < flow: a href = " http://www.cnn.com" id = "myID" > my link here < / flow: has >

Because each element FlowElement have IDS in the latest versions of the Gumbo SDK, we use these identifiers to track the LinkElements which are then used to trigger specific events based on their identity papers, when the TextFlow is not editable mode. (we ignore the actual href).

The applyLink method of course only accepts a url as a string, but is it possible to add a general LinkElement using the IEditManager where we specify the LinkElement ID? We do not have directly add LinkElements to the TextFlow because our current application uses an IEditManager.

I suggest do like this pseudo-device code and combine the applyLink with the ChangeElementIdOperation operation.

editManager.beginCompositeOperation)
editManager.applyLink (...);
understand where is the linkElement
var idOperation:ChangeElementIdOperation(editManager.selectionState,_linkElement,_IdYouWant);
editManager.doOperation (idOperation)
editManager.endCompositeOperation ();

This allows you to combine several operations into a single unit voidable.

Thank you
Richard

Tags: Adobe Open Source

Similar Questions

  • How can I turn OFF any possibility of use of private browsing OR - how to set a password to use the private browsing?

    How can I turn OFF any possibility of use of private browsing OR - how to set a password to use the private browsing?
    My children are free to use the internet - but I don't want them to be able to hide their internet activity to me.
    Thank you.

    Try this new extension - turn off private browsing:

    https://addons.Mozilla.org/en-us/Firefox/addon/disable-private-browsing/

    Ignore the review I did there on the 22nd, as both versions again, improving have been released during the 6 days and most of the articles I've written about have been fixed.

    Richie just needs to get to the function disable compensation no browsing history, who works at.

  • How to set up a connection using a Toshiba Satellite C655D-S5508 mobile access point?

    How to set up a connection using a Toshiba Satellite C655D-S5508 mobile access point? I am trying to connect a Samsung Galaxy stellar and receive an error page indicating that the DNS search failed. I do not know how to set up my computer, I have the wireless power and know how to connect to the hotspot from the phone. The phone is able to recognize the computer and its IP address, and the computer recognizes the phone and tries to connect but then displays the error message "DNS search failed.

    Any help would be great!
    Raquel

    Hi Raquel,.

    Do you have any security program installed on the computer?

    I suggest to go through the steps from the link provided and check if it helps.

    Add a Bluetooth device or other wireless or network device: frequently asked questions

    http://Windows.Microsoft.com/is-is/Windows7/add-a-Bluetooth-or-other-wireless-or-network-device-frequently-asked-questions

    You can also consult the manual of the computer for the same and check.

    If the problem persists, you can also contact manufacturing for known problems:

    Support.Toshiba.com

    http://www.CSD.Toshiba.com/cgi-bin/TAIS/support/JSP/home.jsp

    Hope this helps and let us know if you need more assistance.

  • How to set up web hosting using parallels plesk panel?

    Hello

    After you resolve my wampserver question, now I came to stuck in another problem how to set up my purchased GoDaddy VPS hosting using parallels plesk panel 11? I'm just trying to find some tutorials or guide on this in order to easily configure and complete. But it was really hard to do, that I do not know a lot on the technical side with the server, hoping that this could make bad if I did something wrong in there during the configuration. So, I want to help a person who can help me here to implement all of this.

    Kind regards

    Babu RAM

    Hi Ram,

    The problem you are having is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public.

    Please post your question in the TechNet Forum.

    You can follow this link to ask your question:

    http://social.technet.Microsoft.com/forums/en-us/category/w8itpro

    For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.

  • How to set the doctype node using dbms_xmldom?

    Hi all

    IM using oracle 10g. I generated an xml file using dbms_xmldom.

    I need set the version xml and doctype to my xml file.

    XML version I've defined using dbms_xmldom.writeTofile.

    But not able to set the doctype... tried with dbms_xmldom.makedocumenttype... But no result...

    How to set the doctype using dbms_xmldom?

    Concerning
    Sankar MN

    Published by: SankaraNarayanan.M.N on October 17, 2011 05:40

    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_xmldom.htm#i1121082

  • How to set the NFS storage using the HA function

    HI friends,

    How to configure NFS storage to use the HA?

    Do all esx hosts, see cluster the same lun, comfiguration files?

    Thank you.

    You need:

    • VMkernel for NFS ip Storage

    • Mount the NFS on each cluster host esx (as shared storage) group so that all ESX hosts see your virtual machines

    How to:

    • Create new Cluster

    • Edit the Cluster and enable HA for the cluster

    • For the game from the beginning to 'use the cluster configuration' default virtual machine

    • Then you're ready to go

    Others, I think, someone will add for you...

    System engineer

    Zen Systems Sdn Bhd

    Malaysia

    www.no-x.org

  • How we set up Thunderbird to use the e-mail of the company through Google

    We have emails business through Google, gmail. How configure you Thunderbird to use a Gmail in the form user.cadpartsusa.com?

    Enter your information in the installation wizard. When it fails, enter the name of the server and all the other features of the site and test the setting you have done manually.

  • How to set the sampling interval using DAQ hardware?

    Now I have a sensor capability and hardware DAQ 24 bit (http://www.mccdaq.com/usb-data-acquisition/USB-2404-10.aspx).

    The DAQ hardware has the 50kS/s maximum sampling rate. My question is how to define the range of data collection. For example, if I set the sampling rate of 2000, continuous sample mode, I use read.vi DAQmx in a while loop and set the "number of samples per channel" to 100. I want to plot these data over time using a XY Chart and also save this data. So I add a 'Medium' function to get the average of 100 samples per each loop (medium, there are 20 release of data per second). But when I put a 'number of samples per channel' much more small (for more data per second), there are a few problems. It seems that the program cannot read the data as much and get the average at a higher frequency. I don't know where is the problem. Overall, the collection of data more frequently? Maybe I didn't articulate my question. I'll upload a simple program later if necessary. Thank you.


  • How to set up the project using the settings correct vid

    Hi guys/Steve

    Apple macbook pro, lion

    version on licensees of the 10 elements, IE no trail.

    How can I identify exactly what my new project parameters should be when I want to set up a new project.

    I have a dvd with a number of vob files.

    The vob files play great in vlc on my dvd player.

    If I use the normative action, see screenshot.

    Screen Shot 2011-12-29 at 9.12.09 AM.png

    When I click on get media, the files are imported.

    When I try to read (after rendering), the first second, they play, they are clear, but then they blurred in a manner similar to the difference between hd on youtube and rate of 240.

    Then I tried setting up the project clearly using incorrect settings. When I insert the video in the timeline, the application tells me it's the wrong setting and I want to automatically change the settings depending on the video, if I say NO, then the video plays without being distorted and blurred, however he jumps because it's the wrong setting.

    If I say YES, then the video plays but plays fuzzy.

    It tells me that the application cannot identify the setting correct video project for this or any other file that I have to insert either of vob or avi.

    Here's a printscreen of the properties of the file, maybe this will help. It will not download here that I'll add to the next channel.

    Thank you very much

    Simon

    Mazel tov!

    Finally found!

    So simple.

    nothing to do with rendering.

    Steve, you deserve a big hug for all your hard work to try to help me and I feel like I owe you a lot of time, however, the solution was so simple and provided by ted smith, on the playback screen right click and change the playback to high quality and the quality is 100% clear.

    Thank you all for your help.

    BTW, who knows how to export an mp3 from a video file?

    Thank you

    Simon

  • How to set global variables for use by all THE #subform [0] items of form1. ?

    Hi all

    I don't know how to code javascript but am new to Adobe LiveCycle.  When I open the script editor, I have the following code (the code is in United Nations in bold):

    -form1. #subform [0]: initialize :-(FormCalc, client).

    //////////////////////////////
    TO START: SET GLOBAL PRICES.
    //////////////////////////////

    var Cityscope_Sydney_CostUser1 = 60,39;
    var Cityscope_Sydney_CostUsers2to5 = 3.02;
    var Cityscope_Sydney_CostUsers6to20 = 1.21;
    var Cityscope_Sydney_CostHardCopyWithOnline = 14.59;
    var Cityscope_Sydney_CostHardCopyWithoutOnline = 54,67;
    var Cityscope_Sydney_CostHardCopyAdditional = 14.59;

    var Cityscope_NorthSydney_CostUser1 = 48,40;
    var Cityscope_NorthSydney_CostUsers2to5 = 2.42;
    var Cityscope_NorthSydney_CostUsers6to20 = 0.97;
    var Cityscope_NorthSydney_CostHardCopyWithOnline = 14.59;
    var Cityscope_NorthSydney_CostHardCopyWithoutOnline = 43,54;
    var Cityscope_NorthSydney_CostHardCopyAdditional = 14.59;


    ////////////////////////////
    END: SET GLOBAL PRICES.
    ////////////////////////////

    -form1. #subform [0]: enter :-(FormCalc, client).

    -form1. #subform [0]: output :-(FormCalc, client).

    -form1. #subform [0]: calculate :-(FormCalc, client).

    -form1. #subform [0]: validate :-(FormCalc, client).

    -form1. #subform [0]: preSave - (FormCalc, client).

    < < = etc etc etc = > >

    -form1. #subform [0]. Item1Cost::initialize :-(JavaScript, client).

    -form1. #subform [0]. Item1Cost::enter :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::exit :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::calculate :-(JavaScript, client).

    Store the values of the form of friendly names.
    var AreaSelected = Item1Area.rawValue;
    var NumberOfUsersSelected = Item1Users.rawValue;

    Declare other variables.
    var Users1Calculation;
    var Users2to5Calculation;
    var Users6to20Calculation;


    Calculate the cost to the "components" user will depend on the number of users selected for the region.
    Switch (true)
    {
    If (NumberOfUsersSelected < 2):
    Users1Calculation = NumberOfUsersSelected * Cityscope_Sydney_CostUser1;
    Users2to5Calculation = 0.00;
    Users6to20Calculation = 0.00;
    break;
    If (NumberOfUsersSelected > 1 & & NumberOfUsersSelected < 6):
    Users1Calculation = Cityscope_Sydney_CostUser1;
    Users2to5Calculation = (NumberOfUsersSelected - 1) * Cityscope_Sydney_CostUsers2to5;
    Users6to20Calculation = 0.00;
    break;
    If (NumberOfUsersSelected > 5):
    Users1Calculation = Cityscope_Sydney_CostUser1;
    Users2to5Calculation = 4 * Cityscope_Sydney_CostUsers2to5;
    Users6to20Calculation = (NumberOfUsersSelected - 5) * Cityscope_Sydney_CostUsers6to20;
    break;
    by default:
    Alert ("BROKEN: calculate the individual components of cost of use will depend on the number of users selected for the region.");

    }

    apply the total cost for this article
    Item1Cost.RawValue = Users1Calculation + Users2to5Calculation + Users6to20Calculation;

    -form1. #subform [0]. Item1Cost::validate :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::MouseEnter :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::mouseExit :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::change :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::full :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::MouseUp :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::MouseDown :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::click :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::preSave - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::postSave - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::prePrint - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::postPrint - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::preSubmit:form - (FormCalc, client)-

    -form1. #subform [0]. Item1Cost::docReady - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::docClose - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::ready:form - (FormCalc, client)-

    -form1. #subform [0]. Item1Cost::ready:layout - (FormCalc, client)-

    -form1. #subform [0]. Item1Users::initialize :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::enter :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::exit :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::calculate :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::validate :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::MouseEnter :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::mouseExit :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::change :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::full :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::MouseUp :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::MouseDown :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::click :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::preSave - (FormCalc, client).

    -form1. #subform [0]. Item1Users::postSave - (FormCalc, client).

    -form1. #subform [0]. Item1Users::prePrint - (FormCalc, client).

    -form1. #subform [0]. Item1Users::postPrint - (FormCalc, client).

    -form1. #subform [0]. Item1Users::preSubmit:form - (FormCalc, client)-

    -form1. #subform [0]. Item1Users::docReady - (FormCalc, client).

    -form1. #subform [0]. Item1Users::docClose - (FormCalc, client).

    -form1. #subform [0]. Item1Users::ready:form - (FormCalc, client)-

    -form1. #subform [0]. Item1Users::ready:layout - (FormCalc, client)-

    .. and so on and so forth...

    In short, I want the code in:

    -form1. #subform [0]. Item1Cost::calculate :-(JavaScript, client).

    .. .to be able to access the variables I created in:

    -form1. #subform [0]: initialize :-(FormCalc, client).


    (I guess that's where I store global variables)

    At this point, global variables are not accessible with the above configuration.  Was the only one I can get this working is to cut and paste the Globals in each item of form1. #subform [0], which of course defeats the purpose of global variables!  I intend to have a lot more items so wouldn't duplicate global variables for each of them!

    Can someone show me how to do this?

    Any help is very appreciated!

    Thank you

    Stanbridge

    Post edited by: stanbridgej - colors and fonts or not will not save.  Are bolded my question make (non-fat) code easier to read (I hope).

    I haven't used Formccalc, but I thought it would be the same regardless. Insert a script object to the top of the hierarchy and call it, for example "sco." Paste the Globals. Then refer to variables of the extent that sco. Cityscope_Sydney_CostUser1, etc. Make one

    App.Alert (sco. Cityscope_Sydney_CostUser1);

    one of the fields. If the debugger is activated, it will tell you if it cannot resolve the reference as "sco. In this case, you may need to use the som expression to reference the script object, for example

    var scoScript = xfa.resolveNode ("topOfHierarchy.sco");

    scoScript.Cityscope_Sydney_CostUser1

    But if as close as possible to the top of the hierarchy above should work.

  • How to set point without the use of fields values in the block of the branch action?

    Well, I'll try to say this in an easy way, isn't weird.

    I created a button, RECORD, which is a branch of the type of management: management of the function return A Page. This is my code for the branch:

    If: P2008_NAP_SUPPORTING_MATERIALS = "Yes" then
    return "2092";
    on the other
    return '2040';
    end if;

    The code for this type of service is stored in the block the ACTION of the direction of the page. The ACTION block for a branch of the type of direction: direction to the function return A Page is different from that of the ACTION block for a branch of type branch: branch Page or URL.

    I need to set some values of point with specific values, which I can do with a type of branch: branch Page or URL. This is not possible with the type of direction: direction of the function return A Page. The ACTION block is totally different.

    How can I set certain values on Page 2040 of 2008 Page say without using field block action of the branch?

    Thank you in advance,
    Maggie

    You must change the Source used to "only,...". "If you want the value passed to use instead of the value of the extraction of the line. However, in case you go to the page and look for the value of line-extraction used, you must pass in a flag of some sort, the presence or the absence of which can report a process header before or calculation to set the item null, allowing the extraction line value to use.

    Scott

  • How to set an application built using the C API for myRIO 3.0 to run when starting on a myRIO-1900

    It is even possible to define such an application to run at startup? If so how would you do it?

    I've compiled a program using the API and eclipse distribution OR and can run Eclipse or by running while SSH in the myRIO. Is the only document I could find about this one: http://digital.ni.com/public.nsf/websearch/B37FA04A1CB84B6C862571A30060EF03?opendocument&Submitted&&...

    The link is a little outdated, so I'm not sure of the relevance, it is today. I changed the lines of lvrt.conf to:

    RTTarget.ApplicationPath=/c/ni-rt/startup/startup.rtexe
    RTTarget.LaunchAppAtBoot = True

    None of the settings seem to do anything. I also tried to run the program as a script using rc.local which does not seem to be used in the same way as it is in Ubuntu. My compiled pogram does not include the .rtexe extension although I can add it later that might not be the same.

    I made sure that startup programs 'disable' has been disabled on the Server Web myRIO.

    Thank you

    Just in case someone has a similar question:

    https://decibel.NI.com/content/message/144527#144527

  • How to set the hp7510 to use only black ink

    C311a model HP 7510

    How can I use black ink only each time unless as otherwise defined. I use a Mac Book Pro & P command does not offer this option.

    Hey,.

    You can follow these steps:

    Step 1:

    Select Print on the file menu.

    Step 2:

    Click on the popupbutton and select the quality and the media.

    (under Mac os x tiger select Colorsync and after that select gray tones)

    Step 3:

    Check printing in grayscale.

    Step 4:

    Press the button print.

    Source: Mac Support

  • How to set the title when using InvokeManager (MediaPlayer)

    Hi Im using InvokeManager to play the video file (Media Player)

    How to change the title when media player to play the video (above)-> it by default uses the name of the file being played

    but I want to change this

    How to do this?

    Thank you

    Try this

    InvokeManager * invokeManager = new InvokeManager();
    InvokeRequest cardRequest;
    cardRequest.setTarget ("sys.mediaplayer.previewer");
    cardRequest.setAction ("bb.action.OPEN");
    cardRequest.setUri ("* video url *");
                QVariantMap map;
    Map.Insert ("contentTitle", "My title");
    QByteArray requestData = bb:psObject::encode (map, NULL);
    cardRequest.setData (requestData);
    Response InvokeTargetReply * = invokeManager-> invoke (cardRequest);

    Note: Mark your post as solved, if this solves your problem

  • How to set the settings without using the name?

    In my OpenGL\DirectX C++ engine that I wrote a material format clever for managing shader and texture settings, I do the same Molehill help now, but I can't find a way to know a registration number parameter.

    I use PixelBender3D shaders, I want to use setProgramConstantsFromMatrix and setProgramConstantsFromVector to set my values instead of this helper class settings that allow you to by name (things with strings during execution should never used in vidogames and store name instead of the register number is just more painful)

    I have seen that there is a ParameterRegisterInfo class, which inherits from RegisterInfo, that cointains a variable 'register', but it seems to be private, and I can't access the number of registry from there (I don't even know if register.baseNumber is really the one I need, but seems that Yes).

    So, is it possible to get the registration number of a parameter to use with setProgramConstantsFromMatrix\setProgramConstantsFromVector?

    If not, please, it implements! Functions such as setMatrixParameterByName are certainly useful, but should not be the only way to set a parameter.

    I know that some of the samples use setProgramConstantsFromMatrix already, but every time the registry value is simply coded hard in and is not calculated.

    I hope it's clear and thanks in advance!

    This complaint has developed a couple of times since we released the beta version. You should have access to this information, we'll fix it in a future release.

Maybe you are looking for

  • illegal mode 0 x 72 in GenEA

    Hello I have a LV 2010 project and I wanted to build now in LV 2011. When I try to do that I have received a message "illegal mode 0 x 72 in GenEA», and that comes in the main vi. Cannot open, LV is telling me that he was not possible to compile the

  • How to format an original Dell Inspiron 1525?

    I tried to restore my computer to its original state and had difficulties doing so. I watched a lot of videos on youtube, and none of them have worked. Any suggestions? Thank you.

  • Foglight 4 integration Issos

    Hi experts: I know that foglight 4 was support. In my case, there is a large customer used Foglight 4 for a long time. So can not install 5 Foglight immediately. But unfortunately, the customer will have integration of foglight 4 to another system. W

  • 0xx0000005

    When I type regedit in RunPress Yes to try to get in my registry editorAfter about 10 seconds, an error window appears and tells me: The application failed to start properly (0xx0000005).  Click OK to close the application. Even though I have a moder

  • know the columns updated in a table

    Hi allI use jdevelopper 11.1.2.4. is there a way to know if a column is changed by the user or not? something like the entityState object but at the level of the attribute?Thank youKHALIL