Inspector Property: Dynamic tags

Hi,
I am working on an extension for Dreamweaver, currently on an
Inspector. So what I understand is, that if you use the following
tag:
<!-- tag:mytag,priority:9,selection:exact,vline,hline
-->
It will recognize any tags that look like <mytag>, and
the js function will be called. But what if I have dynamic tags,
e.g. take this: <%email_a%> <%email_b%>
So the word before the underline "email" tells me, what kind
of Property I have, and a or b are defining an array of values,
that are going to be saved in an xml file.
What I am looking for is some sort of function that will
allow me to use regular expression to decide which Property
inspector should be called.
(everthing with %email_ in the beginning should call the
email inspector, everthing with %address_ the address inspector
etc.)
Thanks for any help in advance, I hope its possible to this.
Regards
David

"nyDavid" <[email protected]> wrote in
message
news:gd7hpa$jmi$[email protected]..
> What I am looking for is some sort of function that will
allow me to use
> regular expression to decide which Property inspector
should be called.
> (everthing with %email_ in the beginning should call the
email inspector,
> everthing with %address_ the address inspector etc.)
>
> Thanks for any help in advance, I hope its possible to
this.
Have you checked the docs for canInspectSelection()?
Massimo Foti, web-programmer for hire
Tools for ColdFusion, JavaScript and Dreamweaver:
http://www.massimocorner.com

Similar Messages

  • How to create a dynamic tag in MII

    Hi  ,
    I want to repeat this item tag for different segments and for each segment the <SEGNAM> will be changing and <SDATA> i am fetching from DB. Is there any way to make this item tag a dynamic tag. so that i will use the same item tag for different segments.
    <SEGNAM> I am inputting the value manually for each segment.
    <item>
    <SEGNAM>Name1</SEGNAM>
    <MANDT/>
    <DOCNUM/>
    <SEGNUM/>
    <PSGNUM/>
    <HLEVEL/>
    <SDATA>11111</SDATA>
    </item>
    Thanks ,
    Duvvurus

    Sounds as if you are using link type Assign XML. Please check the [link type|http://help.sap.com/saphelp_mii121/helpdata/en/43/e80b59ad40719ae10000000a1553f6/frameset.htm]. To append a node, you can either use Append XML or Append After XML.
    Michael

  • Dynamic TAG - Simple Transformation

    Hi All,
    I need work with dynamic TAGS (Elements) on Simple Transformation?
    The tag should be <Invoice> or <DebitNote> depending on a Variable.
    How can I achieve this?
    Thanks and Regards,

    We work with Microsoft Outlook, but I'm sure this could work with any email system.
    This error only came from external emails - what we did in the end is to get the third party to email a particular email (email1) in our company.  This is set up as a regular email account.  On this email put a forward rule to email2 for a particular sender/subject.  email2 is set up as POP3 so that XD1 can poll it - we also block any emails except from email1.
    Doing this accomplishes a couple of things:
    1)  We get around the error because XI polls email2 (which has adapter settings of IMAP4 so we can see MAIL adapter attributes ie. sender, subject etc...When we originally had as POP3 we were not able to see these - but setting as IMAP4 causes the error for external emailers)
    2) We have a SPAM filter - the XI email is clean from SPAM and the adapter will not have errors, as it only receives valid emails to process
    3) We have a central email (email1) which is used to archive all XI emails - we use this for all email scenarios (as we also save to folder and forward in the rule)
    Hope this helps your situation.

  • Openbox with dynamic tags for windows (wmii/dwm style)

    Well I tried wmii and a series of other tiling WMs and 1 concept I liked a lot, and that's the dynamic tag idea used in wmii and dwm.
    In short, a single window can appear in an arbitrary number of desktops you choose, thus clever grouping of windows task-wise is possible, something like the "show on all desktops/sticky" flag, except only on some of the desktops.
    The whole tiling part didn't appeal that much to me, but this concept I really liked, so now I am wondering if there are some non-tiling WMs or perhaps it is possible to emulate this in Openbox, does anyone have any ideas on this?

    You need to quote each part of the command, like this:
    static const char *skypecmd[] = { "apulse32", "skype", NULL };

  • Changing the Alert style Property Dynamically

    hI..
    Is there any way to change the Alert Style Property Dynamically.... if there please tell me its urgent
    thnks in advance
    Regards
    Yashavanth

    yes, u can change properties dynamically through set_alert_property and set_alert_button_property
    here is an example
    DECLARE
    err_txt VARCHAR2(80) := Error_Text;
    al_id Alert;
    al_button Number;
    BEGIN
    al_id := Find_Alert('My_Error_Alert');
    Set_Alert_Property(al_id, alert_message_text, err_txt );
    al_button := Show_Alert( al_id );
    END;

  • How to set FileAdapter Append property Dynamically - SOA 11.1.1.3

    Hi,
    At the manual (http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10231/adptr_file.htm) I found that I can use:
    Append Mode
    The Oracle File and FTP Adapters enable you to configure outbound interactions that append to an existing file. The Append to Existing File option allows the outbound invoke to write to the same file. There are two ways in which you can append to a file name:
    * Statically - in the JCA file for the outbound Oracle File Adapter
    * Dynamically - using the header mechanism
    I need to set this dynamically, but I can't find the property that I must set, like jca.file.append....
    Thank You in advance.
    JP

    http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10231/adptr_propertys.htm#CHDJDGFD
    Append
    If this property is set to true, it causes Oracle File and FTP Adapters to append to a file on outbound. If the file does not exist, then a new file is created.
    The file name can either be specified in the JCA file for the outbound operation or in the jca.file.FileName header.

  • Dynamic Tag Query  with dynamic tag name.

    Hi,
    In our implementation we have 10+ users. Each one want to monitor only one production line ( eg. one tag value ) in the dashboard by default when they login.
    I was able to design this requirement CONCEPTUALLY but facing some trouble technically.
    Here is my issue.
    Tagname will be coming from one of the BLS Transaction input parameters (Transaction.Tagname). I am able to build tag query using xMII Tag Query block, able to configure repeater. Here is the spot where I was struck. While assigning tag value to XML Row
    i.e IlluminatorRow_0.Tagvalue = Repeater_0.Output{/Row/AssetUtil1}.
    In the above assignment link it requires a hardcoded tagname. In my case it will be dynamic. I tried different ways like
    1. IlluminatorRow_0.Tagvalue = Repeater_0.Output{/Row/@Transaction.Tagname}.
    2.IlluminatorRow_0.Tagvalue = Repeater_0.Output{/@Transaction.Tagname}.
    But no luck.
    Can someone help in how to do this dynamic tagname assignment.
    Thanks,
    Srinivasa.

    Hi Srinivas,
    another option is to use "Dynamic Links" which from your sample code is what you were trying to do. For this, the proper syntax is:
    Repeater_0.Output{/Row/#Transaction.Tagname#}
    Make sure that the tag name you pass to the historian is the same as the tag name returned by the historian as part of the data set, and make adjustments for that. For example, some historians escape non-alphanumeric characters when they process your request (e.g. passing "abc.def 12-rt" as the tag name can be returned from the historian as "ABC.DEF_12_RT", etc.).
    Hope this helps,
    Sascha

  • XML Transformation - Dynamic tags?

    Hi All,
    I am trying to dynamically generate an xml tag based on a parameter.
    I.e.   <tt:root name="V_TYPE"/>    where V_TYPE = MyTag
    I am trying to generate the following from the transformation.
    <MyTag>.... </MyTag>
    Any help would be much appreciated.
    Regards,
    Jason

    Hi Rafael,
    Well its actually a call transformation from an event within table maintenance.
    The table is generic such that the tag names and values are specified by fields in the table.  Ie. 3 fields.
    1) Block
    2) Tag
    3) Value
    I want to generate XML that looks like.
    <Block>
      <Tag>Value</Tag>
    </Block>
    Regards,
    Jason

  • Dynamic tag's folder

    Hi,
    I'm writing here to find how to add the dynamic folder "all the tags" in the Dock.
    I had already tried but it's only possible to had every tag folder (one folder per tag) in the Dock.
    What i would like is a folder which contains the existing tags in a "t" moment (the french expression is "a un instant "t" and i don't know if this is an english equivalent).
    Thanks for helping me

    No, only the default colors, but you can have more than one tag on a file.

  • Dynamic tag issue

    Hi,
    Am rendering a jsp with a set of fields, whose tagIds have been given dynamically.
    That is,
    tagId="strRemarks_${container.item.strFollowupCode}"
    where,
    ${container.item.strFollowupCode} -> is a dynamic value that will get populated when the jsp is rendered.
    (NOTE: The values are getting populated properly and getting rendered well on the screen)
    But, when this is done, am getting couple of javascript issues in the browser as given below:
    *netui_tagIdNameMap is not defined     --          ...Instance_4{pageFlow.lstBarrierPgFour[0].lstBarrierList[6].lstRecos[0].lstFollowu...*
    *missing ; before statement       --        netui_tagIdNameMap.isSelectd_D.7.1.5="portletInstance_4{pageFlow.lstBarrierPgFou...*
    Need some help in resolving these js issues. Let me know if i had done anything wrong on my part.
    Thanks
    Giri
    Edited by: Giri on May 4, 2012 1:17 AM
    Edited by: Giri on May 4, 2012 1:19 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi Anony,
    Thank you for your question. 
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Thank you for your understanding and support.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Digital Signature Turns Invalid while setting the Property Dynamically to an Input Field

    I have an Input box that turns mandatory only if a check box is clicked.
    The Script goes Something Like This;
    if(chkbox.rawValue === 1){
         inputField.mandatory = "error";
         inputField.mandatoryMessage = "This Field cannot be left Blank";
         inputField.presence = "visible";
    } else {
         inputField.mandatory = "disabled";
         inputField.mandatoryMessage = "";
         inputField.presence = "hidden";
    I am working with Assembler Service and the Signature field is placed in the cover page after which this form is attached.
    Any clue of why the property change Invalidates the Signature?
    Note: The stand alone form where the Check box and Input field is present doesnot have a preSign event as this form doesnot contain a Signature field unless its merged using assembler. This Script is added to the Click Event of the Checkbox.
    Cheers
    Mahesh Krishnan

    weblogic.common.resourcepool.ResourceDisabledException: Pool mds-soa is Suspended, cannot allocate resources to applications ..Check server logs to find out why mds-soa is suspended. Make sure that datasource mds-soa is up and running on SOA servrs before deploying an application.
    Regards,
    Anuj

  • Set Tab Page property -  Label property dynamically

    Hi All,
    I have a Tab page canvas.
    My 1st tab canvas Label is "Projects".
    If i entered 2 record means i need to change the Tab page label as "Projects 2".
    IN which trigger , i will write a coding for that?
    If i am in the Tabbed canvas , it is working .If i come to Main canvas the Tab canvas label is clearing.
    Can u tell me suggestion for that.

    You could go with a combination of a Calculated item of type "Summary" and another calculated item of type "Formula":
    Create a calculated item :BLOCK.IT_COUNT of type "summary" which counts one of the NOT NULL-items in your data-block.
    Create a Program Unit liek that:
    FUNCTION FK_CHANGE_COUNT
    RETURN NUMBER IS
    BEGIN
      SET_TAB_PAGE_PROPERTY('YOUR_TAB_PAGE', LABEL, 'The Text' || :BLOCK.IT_COUNT);
      RETURN 1;
    END;Create a second calculated item of type "Formula", in the formula enter FK_CHANGE_COUNT.
    Now, everytime the count of the block changes, the "dummy" function will be called to calculate whatever, and the function sets the Tab-Label to the desired value.

  • BPS Web Application - How to change function button property dynamically

    We have created BPS web application for sales force, it contains 2 button.
    1. To send Workflow notification to Managers 'Request for Approval' - This would be used by sales person
    2. Button for Manager to approve the Plan 'Manager Approval' - This would be used by the Manager
    We are using Territory Management in CRM to determine who is the manager and sales person.
    We would like to use the same Web application to be used by both sales person as well as the manager. However depending on the user ID, we need to access the Territory Management table in BW to determine whether the person logging in is Manager / Sales person. If it is a Sales Person, we need to display 'Request for Approval' button and hide 'Manager Approval'  button. Similarly, if it is Manager,   'Manager Approval'  button to be displayed and 'Request for Approval' button to be hidden.
    Would appreciate, if any one has faced similar requirement and how to do this.
    Thanks,
    VJ Sudharsan

    Thanks Ananad and Srini for the suggestion. Actually I was working on the direction Anand Suggestion and make it working but I am not sure what I did is correct or not.
    I have a bogus variable that checks for Manager / Sales person and brings back following code in the variable, if it is manager:
    '<style> #Req_Approval_s </style>'
    and I added a new text component of type HTML and code
    <%=descr(VarvlSel2/value)%>
    it works. Is this the correct way of doing the enhancement. Or is there a different place where we can add JavaScript.
    Srini - I am using exit function, can you explain how we can I use BPS authorization to achieve this.

  • Access of undefined property (dynamic text box)

    Hi guys,
    I have a movie clip working as a button that is disabled after click. I need to add a scoring option, so that on click it also adds to the score. When I add the scoreGame function, it says the text box is undefined. Ideas?
    Here's the code:
    package
              import flash.display.MovieClip;
              import flash.events.MouseEvent;
              public class DisablingButtons extends MovieClip
                        var labels:Array;
                        var thisParent:*;
                        var score:Number = 0;
                        var goalScore:Number = 8;
                        public function DisablingButtons()
                                  trace("it's working!");
                                  labels = this.currentLabels;
                                  this.addEventListener(MouseEvent.CLICK, scoreGame);
                                  this.addEventListener(MouseEvent.CLICK, disableButton);
                                  this.addEventListener(MouseEvent.ROLL_OVER, over);
                                  this.addEventListener(MouseEvent.ROLL_OUT, out);
                        function scoreGame(myEvent:MouseEvent):void
                                  score++;
                                  score1.text = String(score);
                                  if (score == goalScore)
                                            gotoAndStop(201);
                        function disableButton(event:MouseEvent):void
                                  for (var i:int = 0; i < labels.length; i++)
                                            if (labels[i].name == "disable")
                                                      this.gotoAndPlay("disable");
                                  this.removeEventListener(MouseEvent.CLICK, disableButton);
                                  this.removeEventListener(MouseEvent.ROLL_OVER, over);
                                  this.removeEventListener(MouseEvent.ROLL_OUT, out);
                        function over(event:MouseEvent):void
                                  for (var j:int = 0; j < labels.length; j++)
                                            if (labels[j].name == "over")
                                                      this.gotoAndPlay("over");
                        function out(event:MouseEvent):void
                                  for (var k:int = 0; k < labels.length; k++)
                                            if (labels[k].name == "out")
                                                      this.gotoAndPlay("out");

    When you instantiate the class in your fla, you would pass the textfield to the class...
    import DisablingButtons;
    var btn:DisablingButtons = new DisablingButtons(score1);
    addChild(btn);
    And in your class file you would need to adjust it to accept the textfield such as what I show below.  Just realize that I have manipulated the naming to preserve your score1 name at both ends of your code by naming the argument that the class sees differently (txt).  Otherwise I would have normally used a differewnt variable name within the class than score1
    package
              import flash.text.TextField;
              import flash.display.MovieClip;
              import flash.events.MouseEvent;
              public class DisablingButtons extends MovieClip
                        var labels:Array;
                        var thisParent:*;
                        var score:Number = 0;
                        var goalScore:Number = 8;
                       var score1:TextField;
                         public function DisablingButtons(txt:TextField)
                                  trace("it's working!");
                                  score1 = txt;
                                  labels = this.currentLabels;
                                  this.addEventListener(MouseEvent.CLICK, scoreGame);
                                  this.addEventListener(MouseEvent.CLICK, disableButton);
                                  this.addEventListener(MouseEvent.ROLL_OVER, over);
                                  this.addEventListener(MouseEvent.ROLL_OUT, out);
    etc...

  • Chnage Itemrenderer property dynamically

    I am creating a simple image album. I use List control to display images. My custom Item Renderer has one Image control and label control. I like to increase and decrease Image control with the help of a HSlider control which I have placed in the panel. It should change the size of the Image when the user tracks the slider control. This is my requirement. But I am not clean how to implement this. Can anyone give some hints?

    Thanks for your answer
    Science I am not clear. Because Slider control and List have placed in the panel container.  How can I fire event or pass vale to Item Render when user selects Hslider?   I need a way to pass value to my Custom Item Render (It can event or function call) from the HSlider control.

Maybe you are looking for

  • Is there any way to create multiple users in a single shot in oracle db

    Can Any one tell me, is there any way to create multiple users in a single shot in oracle database.

  • IPhone needs to be reactivated every day

    Ive gone through some problems for the last week where I need to re-activate my phone everyday, and the re-activation takes about 2 days The first time, I was getting NO SERVICE, or No Bars, or Full Bars, but with no AT&T Next to it. So every call I

  • Spotlight and Papyrus

    I'm playing around with a new word processing program called Papyrus (new to me, anyway), but Spotlight can't seem to find the contents of any files I've created in Papyrus. Is there a way to address this, a work-around or an add-on that will index P

  • How to use a JButton to exit?

    what is the easiest/best way to implement a close when a JButton is pushed? what can I put inside the ActionPerformed method so this will take place? I don't want to use Runtime.exit(). I want it so just this window closes. Thanks

  • I need guidance putting an invoice together and printing it out...

    My next big task is pulling informaton from my DB, organizing it into an invoice template and then printing it out. I know the DB stuff but what do I need to use in order to organize that information into a pre-designed invoice and then printing it o