Adding elements to a Dialog after it's been created using a resource string

I can add elements using add but not with a resource string.
The following works in ExtendScript Toolkit but not in Photoshop. Any idea why?
var window_res = "dialog { \
     orientation: 'row', \
     alignChildren: 'top', \
     preferredSize: [500, 500], \
var btnPnlResource = "Panel { \
     orientation:'row', \
     text: 'Build it', \
     testBtn: Button { text:'Test' }, \
     buildBtn: Button { text:'Build', properties:{name:'ok'} }, \
     cancelBtn: Button { text:'Cancel', properties:{name:'cancel'} } \
var w = new Window(window_res, 'Testing');
w.panel = w.add(btnPnlResource);
w.show();
The error I'm getting is Server Interface error "
As a side note: I copied the code from Javascript Tools Guide but I had to remove ""btnPnl: " from the beginning of the btnPnlResource string. Otherwise you get "btnPnl: is unknown or invalid in this context" error.

Actually Paul, it doesn't look like its the bounds that make your code work. Just changing the P in Panel to lowercase p does the trick:
var btnPnlResource = "panel { \
     orientation:'row', \
     text: 'Build it', \
     testBtn: Button { text:'Test' }, \
     buildBtn: Button { text:'Build', properties:{name:'ok'} }, \
     cancelBtn: Button { text:'Cancel', properties:{name:'cancel'} } \
That must be a bug, no?

Similar Messages

  • Adobe X Standard cannot load/create EuroRoman.ttf font after file has been created using AutoCAD LT 2015. File was loaded and refereneced with Distiller X. Font has been installed to Win7

    Need suggestion on how to get Adobe X to create/load the font. Others in the office can create the same Adobe file with no issues. Help please.

    You have the required Xorg drivers and those errors appear to be expected (https://www.virtualbox.org/ticket/4789). As a matter of fact, Xorg is terminating successfully. Just to make sure, is your ~/.xinitrc setup correctly?

  • Printing Purchase Orders after they have been created using BAPI_PO_CREATE1

    Hi
    We have a requirement to develop a Z program to to alloow certain users to create and print "special" dummy Purchase Orders (PO).
    Using BAPI_PO_CREATE1 I have been able to create the PO no problem.  But how on earth do you get them to physically print out ?
    BAPI_PO_CREATE1 is meant to be an alternative to ME21N. In ME21N you can create a "PO message" which is actually a print output of the PO) and have it sent to the spool, depending on config. However, you can't use BDC with ME21N.
    I expected the BAPI to have some sort of table/structure to pass print parameters that emulated ME21N's  PO message, but there is none.
    Anybody done this ?
    cheers Hugh

    Well, if you had your PO output configured to print immediately when the PO is created, then the BAPI call would result in a printout.
    But if you don't want to always print a PO when a new document is created, you could set up a new output type for 'print immediately' and then attach a condition in the output configuration that checks if a certain criterion is met (so for instance if the PO was created via the BAPI), and only if this condition is met would the processing continue.
    That way, you could keep the current PO output process (on request only), and have a conditional output that'd only be processed for POs created by the BAPI.

  • CUP: Delete user certain time after request has been created

    Hi,
    Is it possible to define in CUP a delete account workflow that once the request has been created user deletion waits some time (i.e 1 month) before user is finally deleted? We would need a workflow without any approver.
    Delete User request creation >> 1 month >> User is deleted
    Thanks in advance. Best regards,
      Imanol

    Hi,
    Automatically deleting user IDs after a specific # of days is not possible in CUP. However, while creating the stage, you can define the wait time and then trigger the escalation. You can make the escalation to the Security Manager who can immediately take up the proper action, i.e., deleting the ID or making it inactive.
    Infact, this is the reason why it is recommended to have an alternative approver.
    Hope this addresses your question.
    Regards,
    Raghu

  • Problem adding elements to a group after removing everything...

    Hi everyone,
    I would really appreciate some help on something. I have a Group that has some Buttons in it. This Group is in one of fours States, and there is a componant for each State. After the user goes through the rest of the program and comes back to this State, I want to remove the old buttons, and add new buttons with new values. Bascially, I want to refresh the componant when it is visited a second time. I have a problem adding new Buttons to the group when the user revisits the componant / state.
    The group is created:
              <s:VGroup id="buttons"  x="0" y="35"  height="400" width="280" />
    When the init function for that componant is called, buttons are added from an array of buttons:
    for(var i:int = 0; i < 10; i++){
              var button:Button = questions[i];
              trace(button);
              button.addEventListener(MouseEvent.CLICK, myEventHandler);
              trace(buttons);
              buttons.addElement(button);
    When the user moves on to the next State, the buttons are removed:
    if(counter == 4){
              buttons.removeAllElements();
              FlexGlobals.topLevelApplication.currentState = 'Summary';
    When the user comes back to the initial state, the buttons are not added to the Group like they are the first time. The output of the trace as each button is added is also different the second time:
    First time: (successful)
    Main.MainBackground2.contentGroup.gameComp.buttons
    button8
    Second time:
    buttons
    button8
    Can anyone point me in the right direction? And better question, is there a better way I should be doing this?
    Is there a better way to refresh everything within a component upon viewing it s second time?
    Thanks in advance!

    I'm not sure why you are using addElement() to add the buttons. Aren't you supposed to let the state functionality handle when the buttons should be visible? That's the cleanest way to do it in most cases. You may want to post a larger code sample, where you have boiled down the code into a minimal sample that still enhibits the issue.
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex Training and Support Services

  • Adding a gap between tracks AFTER they've been purchased from iTunes?

    Hello.
    My son gave me his old iPod (white, 10gigs, 2nd generation?), mechanical click wheel. Very nice. Already backed up my System to the little devil.
    I've been buying music from iTunes, typically classical music. I just added to the Mac and to the iPod a small chamber music piece in four movements. Each movement is treated as a "song." When I play them in (from? on?) the computer, they run together without any gap in-between. Is there any way to add a very brief pause between the movements? These are not ripped from a CD where, I gather, you can add gaps between tracks. The question, here, is: Can I add a gap +after the fact+, once the purchased and downloaded tracks are in iTunes?
    Many thanks for your help!
    Alarik

    Ah I see. In that case, you have to switch your iPod over to manual updating rather than automatic updating...
    Managing content manually on iPod
    http://docs.info.apple.com/article.html?artnum=61148
    iPod: Frequently Asked Questions
    http://docs.info.apple.com/article.html?artnum=60920
    Patrick

  • How to add a virtual disk into a 'guest VM' after VM has been created?

    Well, it was easy when one need to add a virtual disk before creating a guest VM. All need to do was to edit the template and click on disk tab and create a virtual disk.
    However the challenge comes after created a 'guest VM'. I need to add additional virtual disk into this 'guest VM'.
    This is what I did.
    Click on Repositories tab --> Under repositories--> Virtual Disks. There is a green "+" sign. Click on it. It says create virtual disk. Follow the instruction, I enter the virtual disk name, size, and select if it is spare or non-spare. Hit ok. Well, everythings seems fine.
    Next, I click on the "blue folder" icon which indicated import virtual disk. It asked me about Virtual disk download location.
    According to the manual, http://docs.oracle.com/cd/E27300_01/E27309/html/vmusg-repo.html#vmusg-repo-vdisk
    Virtual Disk download location: The URL for the virtual disk file. The URL protocols supported are HTTP, HTTPS, and FTP. For example:http://example.com/vdisks/myvdisk.img
    How can I determine what is the URL in my case?
    Where is the newly created virtual disk located? Isn't it supposed to be in Oracle Server? But it doesn't have  a http server running there.
    Please help.
    Thank you.

    Virtual disks can only be added and removed at runtime from a PVM. You don't even need to know anything special. Just create the vdisk and use the VMs settings to occupy another slot with the new vdisk.
    But as I said… this works only with PVMs, not HVMs. In case of a HVM, you will need to shut down the VM and add the disk afterwards, then fire it back up.
    The little folder with the blue down arrow is for importing an existing vdisk file from a web- or ftp server. If you have already created the vdisk, you won't need that.

  • Sync a BlackBerry Remember Folder AFTER it's been created

    I can imagine in the urgency of planning a BB "LACKberry" 10 native app IN THE EARLY DAYS (in truth, not too long ago) with designated people planning the roadmap of an app native to the upcoming BB 10, yet the with pressure from the higher-ups to CRANK SOMETHING OUT QUICKLY:
    SCENARIO HYPOTHETICAL:
    AMAZING THAT PEOPLE, SITTING IN LITTLE OFFICES CONFIGURING A NATIVE BB 10 APP WITHOUT THINKING OUTSIDE OF THE BOX. That is to say, that I can envision a bunch of people coming in with their coffee early in the morning way back when the pressure was on to "get something out there quickly to integrate in the new BB10" and no one thinking that if, in the creation of this new BB Remember App, that if you're going to make it native and a power app in relation to other parts of the BB 10 OS body SO CONSUMERS WOULD NOT LOOK ELSEWHERE (say in BB App World) for a memo/task/productivity app), that ANY AND ALL OPTIONS would be insisted upon for the convenience and high power user.
    BUT, SUCH WAS NOT THE CASE HERE, as I have delved DEEP AS POSSIBLE into the all options that BB Remember does and "what it could do", yet BEREFT how limited this app really is in every sense of the word. Does anyone get tired of recommending apps outside of native BB apps when BlackBerry should be all inclusive so that the natural tendency is to not look elsewhere? To those who have BlackBerry in their blood, who wish not to look in app world all the time and want to be an all-BlackBerry-only con/pro-sumer, it is just sad...
    "The Dilemma":
    I'm finding it impossible to take an existing BlackBerry Remember Folder and edit it to "Sync". By default in 10.1 (Since AT&T is always last at giving an official update), I've 20 folders. When I click on edit, to edit for example, the name of the folder and color (Can't believe how limited these color choices are), if you pull down further my "Sync To" is grayed out.
    Is there any way to change this? What this means that ONLY at the start of creating a new folder (Infancy stage of creation of a Remember Folder and color) can you use the pull down as to whether or not the folder is going to sync, in this case, my only available option is Evernote when there should be a SLEW OF SYNC OPTIONS.
    Critical thought: But any existing ones I cannot edit to sync with anything "after" the fact. Maybe I am doing something wrong, but there's not a whole lot of use here as in BBOS was with my 4,780 memos and tasks that were perfectly synced together. In the twenty folders now with over 3,600 current entries, I am not going to create a "new" folder and jam them all into one and not have them segregated into folder sections just for the sake of syncing when they should sync 'at will' from and at any time and to any cloud service I choose or locally on the BB 10 device as well, e.g., "the media card"...
    Just crazy. No thought-arresting sense, mitigating the love and passion that each native app should be planned for inside of the blood and veins of a BB device, so that people NEVER,....NEVER, look elsewhere...
    Yes, I own a LACKberry... Z10

    I thought I was the only user having probs with the BB Remember app., it rarely features in the forums and as yet I've had no helpful replies. My prob is that since upgrading to 10.2.0.424 the facility to order by due date does nothing, the tasks simply remain in alphabetical order. The help video shows a button to enable a due date, I don't have this but I am able to add a due date - just wont show tasks in due date order, although it will order by last am ended date or created date! Any help/ suggestions appreciated.

  • How do I insert additional text into a form after it has been created? - Acrobat Pro XI

    I am trying to add additional text and fields into the middle of a form I have previously created.  I can copy and paste the information in there but it does not shift the lines below it down.  Is there any easy way to accomplish this without having to recreate the entire form?
    I appreciate any help I can get.
    ~Shannon

    If you need to make such changes to the layout of the form, you should go back to the source document, edit it, and generate a new PDF. You can then replace the pages of the old document with the new pages. Any fields that you've already added will be retained and can be move to their new positions and you can add any new ones you need.

  • After the test DB created using cold backup..things to do..

    Dear All,
    I had done Physical cold backup cloning to create the test DB using Production DB.
    After that ,Is anything need to do before give to the application team?
    For say,
    index recreation,
    index re-build,
    valid the invalid objects
    Please help me and input your suggestions.
    Thanks in Advance,
    Regards,
    DB.

    All objects should be fine – no need to rebuild/recompile anything.
    If tables in the production DB contain references to production HTMLs, production server names, production usernames/passwords, etc, they need to be changed or deleted. The DB password should be changed.
    If the production DB has DB links to other production DBs, those DB links have to be redefined.
    If any of the data in the production DB should not be visible to the developers, it should be masked.
    Iordan Iotzov

  • Billing Plan: order changes possible after FAZ has been created?

    Hi together,
    I've got a question regarding the billing plan functionality. Is it possible to change the order in case the FAZ is already created? Everytime when I try this the system increases the down payment value and a new FAZ will be created. Even when I enter a free of charge material the system creates a new FAZ with value 0... That#s strange, isnt'it?
    Thanks for your help, Christian

    Hi Stefen,
    We can do this ...but you can not look those fields .but you can through error messgaes . this you can do from user eixts or using BADI's. write code in such manner once if document delivey after that if user want to change any data just through error messages for him.
    Thanks,
    saleem

  • HT2714 Mac Mini won't launch after it has been reprogrammed using Command+Option+R?

    Out of nowhere while using my Mac MIni it goes whacky and I get a white/grey screen!! I diagnosed the hardware...read out "No Problems". I try restarting the computer. No luck...same old story! I tried to reprogram it holding down the Command button+Option+R....the unit starts to reprogram and finishes after about 34 minutes. Still same old story, white/grey screen! I will be making an appointment to get it fixed. It still under warrantee. In fact it only 44 days old!! Any ideas on how to restore it now, instead of me having to travel an hour to drop it off to get it fixed???

    Using CMD+r try erasing & reinstalling the OS.

  • Loading photo to slide show after movie has been created

    Hi Everyone,
    I created a slide show on iMovie and thought I was done so I created a movie through the Media Share feature (to eventually burn on iDVD).  Then, I realized there was one photo I hadn't yet included; so I went back and tried to insert that photo but it won't let me.  Does iMovie know that you've already "finalized" a project and not let you make any changes to it after that?  Is there any way around this without having to do the entire show over again?
    Thanks,
    Jen

    Hey Dazlari,
    I'm so sorry but I actually can't remember what I did!  I haven't used iMovie for over a year. I'm not that tech savvy though so it couldn't have been that hard to do :-)
    Keep experimenting...I hope you figure it out!
    Best wishes,
    Jen

  • Table does not Exist in Unix OS after it has been created In HTML_DB

    I created a table in HTML_DB and can see the table fine in my HTML_DB application. However, when I go to the Unix OS and try to look up the database using SQL*Plus, I am getting an error saying the table does not exist. Any help as to why this is happening would be appreciated.
    Kelly

    When I go to the Unix OS, I then try and search for the table in the exact schema that I used in >HTML_DB.I don't see what the Unix OS has to do with it here...do you mean you're connecting via SQLPlus?
    If you're connecting via SQLPlus, which schema are you connecting to? (i.e. are you certain you're connecting to the same schema that the table was created under when you were connected to Application Express).

  • Cannot save form error after form has been created

    I've created a form and fucntions well.
    It has been saved as a interactive pdf.
    When people with just the acrobat reader open the file and click anywhere on the form a window pops up stating that
    " you cannot save form..." then the OK button appears
    You are able to enter data into the fields and print, but can only save the form as a blank copy.
    Any help would be much appreciated.

    You need to reader enable the form in Adobe Acrobat. Click on Advanced >
    Enable Usage Rights in Adobe Reader and Click Save Now. You can then save a
    reader enabled version of the form and users will be able to save their data
    in the form.

Maybe you are looking for

  • Adobe Premiere Elements 11, Crashes When Rendering

    When I try and render a video I get the below error and the program closes. The video I'm rendering is roughly 15 min long. Any help would be great! I'm using windows 7, and I'm using the latest version of premiere elements 11, and this is on a deskt

  • Urgent doubt in WAD

    Hi, I have created a Web template which has two tabs. Every thing is working fine except... Initially when it is executed it is displaying all the items like text elements, gennav, check boxes, tables...Actually what is happening here is for the firs

  • How make Requisition required step before purchasing

    Hi everyone , how do i prevent entering a purchase order?, all purchase orders will be created through purchasing requisition. and i want to prevent change purchase order quantities according to the quantities that are entered in requisition. thanks

  • HT5299 My MacBook Pro doesn't have a mini DisplayPort

    My MacBook Pro doesn't have a mini DisplayPort what can I do so that I can use my Cinema Display?

  • ARE-1

    Dear All How to reverse /cancel ARE1 Document, I am  getting fallowing error Duty payable cannot be less than 77,088.00 WHt is the next steps pls give some tips Thx Gowrish