Get associated TextStyleRange of XmlElement

Hello All,
I am trying to retrieve the textStyleRange associated with an XMLElement in InCopy CS3. I am recursing the XML Tree to associate the characterStyle with the Xml Node Name. The key here is that I must recurse the XmlElements.
I tried something like
var xmlElement = xmlElementNode.xmlContent;
but this returns a Text Object not the textStyleRange.
How can I retrieve the textStyleRange associated with an element.

Sorry, I guess here is a clearer explanation.
How do you know if a XmlElement is associated with a paragraph style or character style.

Similar Messages

  • Getting associated values from F4 Help

    Hi all,
    i have already searched about it on SCN but not get any thread where i can resolve my problem so here i am posting it, i have created a screen in which i have provided F4 help, in this F4 help i am showing name and associated number of employeees, when ever user picks any values from F4 help i wants to capture the associated number from the screen, for this what i have done till now is.
    I have created a F4 help and when user enters the values, i have used a PAI event to capture the corresponding values by using translation like shown below. Here ztable-rm_name is the screen field for which F4 help has been provided, and emp_code is the value i have to capture.
    MODULE NUMBER INPUT.
    IF ZTABLE-RM_NAME IS NOT INITIAL.
       IF IT_ZINCEN IS NOT INITIAL.
       SORT IT_ZINCEN BY RM_NAME.
       LOOP AT it_zincen INTO wa_zincen.
           TRANSLATE wa_zincen-RM_NAME TO UPPER CASE.
           wa_zincen1-rm_name = wa_zincen-rm_name.
           wa_zincen1-emp_code = wa_zincen-emp_code.
         APPEND wa_zincen1 TO it_zincen1.
       ENDLOOP.
       READ TABLE it_zincen1 INTO wa_zincen1 WITH KEY RM_NAME = ZSDPROJECT1-RM_NAME.
       IF SY-SUBRC = 0.
         EMP_CODE5 = WA_ZINCEN1-EMP_CODE.
       ENDIF.
    As you can see that i am fetching the emp_code through it_zincen1 which i have already got through the database and it contains the list of all employees
    and its associated numbers, the problem which i am getting is that , while fetching the data by passing rm_name it will provide the emp_code of first matching rm_name, so it will give an ambiguity in result , if there will be more than one employee in the database.
    So, i am looking for any other approach, that will give consistent result , i have done it through DYNP_VALUES_READ also, but not getting proper result, please if someone has the idea about how to achieve it, please tell me the solution.
    Thanks in advance.

    This is the code i have written in my program, please tell me what is wrong with this code
    MODULE GET_VALUES INPUT.
         IF ZSDPROJECT1-TYPE IS NOT INITIAL.
         IF ZSDPROJECT1-TYPE = '1'.
           SELECT EMP_CODE
                  DOJ
                  NAME
                  FROM ZDST INTO TABLE IT_ZDST.
            SORT IT_ZDST BY EMP_CODE NAME.
            DELETE ADJACENT DUPLICATES FROM IT_ZDST COMPARING EMP_CODE NAME.
        s_mapping-fldname     = 'F0001'.
        s_mapping-dyfldname   = 'NAME'.
        APPEND s_mapping TO t_mapping.
        CLEAR s_mapping.
        s_mapping-fldname     = 'F0002'.
        s_mapping-dyfldname   = 'EMP_CODE'.
        APPEND s_mapping TO t_mapping.
        CLEAR s_mapping.
    IF IT_ZDST[] IS NOT INITIAL.
       CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
         EXPORTING
    *     DDIC_STRUCTURE         = ' '
           RETFIELD               = 'NAME'
    *     PVALKEY                = ' '
          DYNPPROG               = SY-REPID
          DYNPNR                 = SY-DYNNR
          DYNPROFIELD            = 'ZSDPROJECT1-RM_NAME'
    *     STEPL                  = 0
          WINDOW_TITLE           = 'Select the Value'
    *     VALUE                  = ' '
          VALUE_ORG              = 'S'
    *     MULTIPLE_CHOICE        = ' '
    *     DISPLAY                = ' '
    *     CALLBACK_PROGRAM       = ' '
    *     CALLBACK_FORM          = ' '
    *     CALLBACK_METHOD        =
    *     MARK_TAB               =
    *   IMPORTING
    *     USER_RESET             =
         TABLES
           VALUE_TAB              = IT_ZDST
    *     FIELD_TAB              =
          RETURN_TAB             = T_RETURN
          DYNPFLD_MAPPING        = T_MAPPING
        EXCEPTIONS
          PARAMETER_ERROR        = 1
          NO_VALUES_FOUND        = 2
          OTHERS                 = 3
       IF SY-SUBRC <> 0.
    * Implement suitable error handling here
       ENDIF.
    ENDIF.
    ENDMODULE.

  • Why am I getting "Associated object cannot be opened"?

    I have created a task that utilizes method CRMSALESPROCESSEDIT of standard BOR object BUS2000115 on our CRM sandbox.  As a test, I launched the Webclient UI from transaction BSP_WD_CMPWB by clicking on the Test pushbutton for component CRM_UI_FRAME.  I can see my task in the CRM Task List.  However, when I try to execute the task I receive the message, "Associated object cannot be opened; contact your system administrator".
    According to the second edition of the text "Practical Workflow for SAP", I "can use every standard BOR object type that is enabled for dynamic navigation for your own workflow without further customizing and implementation effort".  Accordingly, I checked in table BSP_DLC_OBJ_TYPE and found object BUS2000115.  So why am I getting the error message?
    I tried maintaining Object Specific Navigation for this method in the IMG but it did not make a difference.  But I might not have maintained it properly.
    When I execute this task in the Business Workplace of the SAPGui it takes me to the "Search for Business Transactions" screen.
    I am on version 'SAP CRM ABAP 6.0', with SAP_ABA and SAP_BASIS = 700.  SAP_AP = 700.  PI_BASIS = 2006_1_700.  ST-PI = 2008_1_700.  BBPCRM = 600.
    Thanks for your help.

    Hi Lars,
    I will do what I can to help but I am going from memory.  Our sandbox has been rebuilt several times in the the last few years.  Plus we only use our SAP CRM system for channel managment now.
    I think that I instantiated an instance of the business object BUS2000115 in a previous step of the workflow with a custom task that utilized method 'GENERICINSTANTIATE' of object 'SYSTEM'.  I bound that instance to a workflow container object (probably called BUS2000115).
    In a subsequent step I think that I failed to explicitly bind BUS2000115 to &_WI_OBJECT_ID&.  This was in the definition of the step.  In other words, from the workflow builder (transaction PFTC_CHG) I clicked on the "Workflow Builder" pushbutton.  Then I double clicked on the step where I wanted to change the sales transaction.  I entered the appropriate task and step name for changing the sales transaction.  Then I clicked on the Binding pushbutton just below the "Step Name".  In the top table control on the popup I entered &BUS2000115& on the left and &_WI_OBJECT_ID& on the right.
    Once I did that then the error message was resolved.  Hope that helps.
    Cheers,
    Paul

  • Google Map Issue in OBIEE - Subject area not getting associated

    Hi Gurus,
    We are trying to integrate Google map and OBIEE via mapviewer. We have done the following already - 
    1. Loaded World Sample data from Navteq.
    2. Configured mapviewer source and added Google map as a tile layer with the API KEY.
    3. Imported one layer (e.g. M_STATES_ABRV) in OBIEE and linked it with BI subject area (tried this step with importing other layers as well)
    4. Added background map.
    Now , in this step when we add the layer in the map, we select M_STATES_ABRV and change zoom levels. But Once we come back to main screen after Clicking OK, we see the background map is not associated with the subject area. Hence any map view report creation with this subject area fails.
    We have the tried the same theme with Oracle Maps (internal type like WORLD  MAP or DEMO MAP), it works fine. only Google Map gives this issue.
    This was not expected. Please suggest what we missed. We tried with cache clear, tile delete and recreation, service restart almost everything .
    We looked into other threads in this community, different oracle support documents - Doc ID 1485088.1,Doc ID 1346805.1 etc  and in different internet blogs -  where it's easy as child's play, but we are still out of luck.
    OBIEE version - 11.1.1.7.140527
    Environment- windows server 2008 R2
    Please suggest.
    Regards,
    Krish

    I have found the solution: You need to *select* zoom levels for the BI Layer.  When a BI Layer is added to a background map, by default no zoom layers are selected.  Once a zoom level is selected, the BI Layer will save.

  • Get associated avi file from avi file reference

    For normal bytestream files, there is a "refum to path" function (under File I/O -> Advanced File Functions) that will give the associated file path for the input file reference.  This does not seem to work when an AVI file reference (opened using IMAQ's AVI functions) is wired ("refnum to path" returns <Not a Path>).  Is there a way to extract the AVI file path from an AVI file reference?

    Thanks for your help.  The design of my program involves streaming video to disk (along with multiple other parallel functions, including DAQ interfacing and collection, playing back AVIs in mediaplayer, etc.).  Because of this, I have multiple "engine" loops running in parallel to the user interface loop.  In the UI loop, the target of the streaming video can be changed or even turned off, so I have a LV2 functional global holding the AVI file reference, which the video streaming engine checks for validity before proceeding through a loop iteration.  However, in the engine, certain decisions about extra data that needs to be saved with the streaming video is made by checking the directory of the file it is instructed to write to.  Therefore, a way to extract that file name from the reference in the LV2 global would be usefull.  The workaround I have to use now is to store the file path as well as the AVI file reference in the LV2 global and pass them around together.  This isn't that bad, but in the intrest of keeping block diagrams uncluttered with data I shouldn't need, I posted the question. 

  • How to get association between site and project on PWA_Content DB

    Hello everybody.
    I'm trying to get data from lists of all project sites on Project Server.
    I'm using this query to get it: 
    select c.ntext2,b.MasterUrl, c.tp_Modified
     from PWA_Content.dbo.Lists a left join PWA_Content.dbo.Webs b on b.Id=a.tp_WebId 
     left join PWA_Content.dbo.UserDataVersioned c on a.tp_ID=c.tp_ListId 
     where a.tp_Title like '%Postagens%' order by b.masterurl,c.tp_Modified
    But this query shows posts of lists Postagens of all project sites. I need to filter it by ProjectName to show only posts of one project on each search. 
    I looked for a match between projectname or projectid and something on PWA_Content.dbo.Webs or PWA_Content.dbo.Sites views. I tried to Split MasterUrl field to match project name but some projects have different site names and project names.
    Can somebody help?
    Thanks.
    Gabriel.

    Hi Gabriel
    I might be missing something here, couldn't understand your question fully, but if it is related to project sites, why not to query it from MSP_EPMProject_Userview from project server DB(reporting Db if version is 2010)and get it from there ?
    Something like this
    SELECT
    ProjectUID, ProjectName, ProjectWorkspaceInternalHRef
    FROM MSP_EpmProject_UserView
    Thanks | Sunil Kr Singh | http://epmxperts.wordpress.com

  • Business Server not getting associated with XI

    Hi
    I am just wondering why the "associate with XI" button doesnt associate a Integration server with XI. This is in the SLD ->System Landscape directory->Business system->integration Tab.
    So, when i goto the RWB , i find the Integration Server and IE disabled . Clearly the problems is with no Integration server being asociated with tthe BS.
    Regards
    krishna

    hi
    Try to configure intergration engine by going to the transaction code sxmb_adm
    there assign the integration server to the intergration engine and also give the path http://<host>:50000/sap/bc/xi/engin?type=entry.
    Reward if useful,
    Regards,
    srinivas.D

  • ID Getting associated

    Folks,
    I am facing a unique pblm !
    1.The roles got expired on 12/31/2007
    2.The SUIM report says the roles are deleted.
    3.My ID is attached to the "deleted by" USER.
    Supporting Statements:
    1. I dont own any batch jobs
    2. These users were created too long back for me to even know SAP then
    3. The SUIM report states that the roles were deleted by me on 01/09/2008 where as the roles  expired on 12/31/2007 --Why this difference in date?
    Thanks

    George,
    Did you perform a "user compare" at Jan 9th? That would explain this behaviour.
    Either transaction PFUD ('mass comparison' in PFCG's utility menu) or the button on the user tab in PFCG .
    These trigger report PFCG_TIME_DEPENDENCY I mentioned in your thread about batch jobs.
    The fact that the role is still there (in the user master) tells me this is working as designed, so I'm afraid your problem is all but unique :-).
    User comparison is meant to align profile assignments with role assignments and validity. I suggest you read [this page at help dot SAP dot com|http://help.sap.com/saphelp_47x200/helpdata/en/52/671583439b11d1896f0000e8322d00/frameset.htm] and the pages around it.
    Jurjen
    Edited by: Jurjen Heeck on Jan 18, 2008 8:05 AM

  • Has there been a way to unregister a phone number so it doesnt get associated with imessage? i've tried the suggestions given in past posts, so far nothing has worked. please help

    There are no products listed on my apple id support.
    I have taken the phone number out of my apple id support, after which i signed out of the imessage and signed back in, but my phone number is still grayed out and ticked.
    also, the sim card isnt even in the phone.
    Does anyone out there actually have a solution for this?

    This cannot happen this is like removing your phone number so no one can call it.

  • How do I check if the associated PageItem is there/exists from a XMLElement ?

    Hi,
    I have the following structure:
    Extension Builder 1.5;
    InDesign 5.0;
    Image (Rectangule Frame);
    XML tag associated with the Image.
    The following scenario:
    I do have an application that checks if this strucuture is available and intact, that is, the user has not deleted the tag (XMLElement) and/or the Rectangule Frame(PageItem);
    I do not want loop through allPageItems (the page should have many of them - more than 1000) and get the XMLElement;
    So, I loop over the XMLElements and get the associated PageItem through xmlElement.xmlContent property;
    The document images properties (image, epss, etc) never are populated (document.epss.length = 0);
    I can validate if the tag was deleted or untaged easy.
    The problem:
    User deletes the Image/Rectangule Frame (PageItem) and keep the xml tag (untag the XMLElement);
    The isValid property (xmlElement.isValid = true) is true;
    The associated PageItem becomes a Text and is valid as well;
    The question:
    How do I check if the associated PageItem is there/exists from a XMLElement ?
    Regards
    Marcos

    Found it, I think
        e.isControlDown()

  • Unable to get IP on one ssid of a two ssid autonomus 1141 AP

    We recently added a second ssid at a remote site AP but the clients cannot get an IP. They get associated to the AP but no IP.
    The ssid we added is using the default vlan 1 which is where the dhcp server is located.
    The other ssid vlan 101 is the visistor network and it gets an ip from the ASA. It works just fine.
    The AP is connected to a 3560 swtich like so:
    interface GigabitEthernet0/48
    description link to WAP
    switchport trunk encapsulation dot1q
    switchport mode trunk
    load-interval 30
    If we put a static reservation in the dhcp for the client mac address it works fine. But dynamic dhcp does not work.
    Attached is the config of the AP.
    Vlan 1 is the ssid that does not get a dynamic IP.

    Your config looks good, but like Rasika mentioned, I would remove infrastructure-ssid optional just to see if it works... now I would also configure a port on the same switch as the ap is connected to and set that to vlan 1 and make sure that laptop gets an ip address.
    Thanks,
    Scott
    Help out other by using the rating system and marking answered questions as "Answered"

  • Unable to generate the XML file through SQL script. getting error PLS-00306

    I am fetching the data from cursor and generating the xml output I am getting the below error.
    When I have checked the cursor query it is fetching the data in to single column.
    Input truncated to 1 characters
    Enter value for 7: EXEC FND_CONC_STAT.COLLECT;
    DBMS_LOB.append (tmp_file, r.core_xml);
    ERROR at line 95:
    ORA-06550: line 95, column 7:
    PLS-00306: wrong number or types of arguments in call to 'APPEND'
    ORA-06550: line 95, column 7:
    PL/SQL: Statement ignored

    Hi Alex,
    thanks for the responce..
    i have fixed the issue
    i have used XMLAttributes to get the value
    SELECT XMLELEMENT (
    NAME "TranACK",
    XMLAttributes ('1' as "TranNum",
    (select distinct to_char(SYSDATE,'yyyy-mm-dd')
    from DUAL) as "PrcDate"),
    XMLFOREST (
    a.PAYMENT_ID AS "PmtID"),
    XMLFOREST (
    a.ACK_TRANSACTION_RECEIVER AS "Name1"),
    XMLFOREST (
    to_char(a.VALUE_DATE,'yyyy-mm-dd') as "ValueDate" ),
    XMLFOREST (
    a.PAYMENT_AMOUNT AS "CurAmt"),
    XMLFOREST (
    a.CURRENCY_CODE AS "CurCode")
    ).getclobval ()
    AS line_xml
    FROM XXWAP_PAYMENT_LINE_TBL a
    where a.PAYMENT_BATCH_ID=P_batch_id;

  • How to make file associations in my java apps

    I am making a Graph maker in Java. Just give x = 1,2,3,4,5 and corresponding y = f(x) and get the discreate graph.
    The graph can then be saved as a file of extention .grf (say) on the hard disk, and can be opened in my graph maker software for editing, viewing e.t.c.
    Now my problem is that I want that when I dubble click on a file xyz.grf my graph maker should open automatically with this file opened in it, like other applications on windows say Notepad - dubble click on xyz.txt it will automatically launch Notepade with this file.
    In other way I want that any .grf file gets associated to my graf maker.
    Please help me and tell me the way, how should I proceed and how can I do this.

    aashishjava wrote:
    Yes Yes Yes It is 99% what I wanted to have. Thanks a lot ....You're welcome.
    But now I want some thing more,(hand to forehead) They always want more. ;)
    (a) There is a splash screen in my app. but JNLP always show its own splash screen, ...Webstart splash screens work differently to those of plain Jar files (which is unfortunate). A webstart splash screen has to be not included in the Jar, but available as a separate resource. The splash is defined in the JNLP launch file. For further details see the [JNLP File Syntax|http://java.sun.com/j2se/1.4.2/docs/guide/jws/developersguide/syntax.html].
    <quote>
    The optional kind="splash" attribute may be used in an icon element to indicate that the image is to be used as a "splash" screen during the launch of an application. If the JNLP file does not contain an icon element with a kind="splash" attribute, but does contain another icon tag, Java Web Start will display a splash screen consisting of the image specified by the icon element on the left and the application's title and vendor on the right.
    The first time an application is launched following the addition or modification of the icon element in the JNLP file, the old splash image will still be displayed. The new splash image will appear on the second and subsequent launches of the application.
    </quote>
    The 'ignored first time' is because the webstart client is more focused on getting the app. downloaded, cached and launched, than showing splashes. Once the app. is on-screen, it will download the splash in the background.
    One other 'gotcha' of splash screens is that the JNLP file must define a href in the JNLP element for the splash to be used. The webstart client assumes that a JNLP with no href is dynamically generated, and will not be the same twice. Because of that it ignores the splash!
    Edit 1:
    Unfortunately, I do not have any direct examples of using splash screens A splash is usually on my 'To Do' list for projects, but it is a very low priority.
    Edited by: AndrewThompson64 on Dec 10, 2009 11:35 AM

  • My 4th generation nano is no longer associated with my account

    I completed the trouble shooting steps suggested by Apple but my nano is still not an associated device under my iTunes account.  I have no idea how to fix this! Pls help!

    ??? A 4th generation nano doesn't get "associated" with your account. You load media onto it from an iTunes library. "Association" is for computers or IOS devices. "Authorization" is just for computers.
    tt2

  • KB2878233 corrupts PowerPoint file type associations (bis).

    Dear,
    I posted the question below a week ago in the Office forums on answers.microsoft.com, but did not receive any reaction. Allow me to repeat:
    Installing the KB2878233 security update corrupts the file type associations for PowerPoint files in the following environment: Windows XP SP3 ("fully" updated) / PowerPoint
    Viewer v. 14.0.7015.1000.
    PPT files get associated with MOC.EXE for opening them.  Uninstalling the update does not restore the original associations.  The problem can be alleviated by repairing the PPT Viewer installation manually.
    Question: can this High Priority security update please be re-released through Windows Update without the corruption effects?
    TIA.
    Kind Regards,
    Jan J.
    Brussels, Belgium

    Hi,
    We can try to change the file associate in Registry key:
    For all users on this computer, please change associate program of the .doc or file type you would like to under
    HKEY_LOCAL_MACHINE\Software\Classes.
    For current user account, please change associate program of the .doc or file type you would like to under HKEY_CURRENT_USER\Software\Classes. If there is no such extension, please create new keys for it.
    Hope these could be helpful.
    Kate Li
    TechNet Community Support

Maybe you are looking for

  • Raw 6.41 update issue blank white window

    Prior to Camera Raw 6.41 update, PSE9 Organize opened and performed as designed. Immediately after the update, and clicking Organize, it opens with an empty white square window appearing to mid right and half outside the PSE9 window. Organizer will e

  • Error (-1) while updating iPad 2 to ios 6

    i can only access to recovery mode and dfu mode....any solution?

  • Internal speakers no longer available under 10.4.8

    After I updated to 10.4.8, my computer seemed fine, and I was able to play sound, until I restarted it. Now it doesn't regonize my internal speakers. When I try to play anything, the red light in the sound out jack comes on. (any there is sound if I

  • Problems after upgrading to v6

    I've seen similar posts around and have followed the standard recomendations but no dice. Since i upgraded to 6, itunes will not detect my Ipod or my Moto SLVR w/ Itunes, even though windows detects both of them. I had no problems before the upgrade.

  • FDM validation report issue

    Hi, I am working on validation reports in FDM. My logic works fine and I see result by all Entities in Validation report. I need to see result by other dimension in validation report other than Entity dimension in FDM. Can you let me know how can we