Problem opening the current selection

Hey guys,
This one has really got me stuck. I'm writing a Dreamweaver Extension and I need to programmatically select a page in the current site and then open it. Simple right? Well the opening step only seems to work when I already have 2 pages open.. Does the editor need to be in some special mode to make this happen? Here is my code:
    site.locateInSite("local","somepage.html"); // THIS WORKS
    site.open(); // THIS ONLY WORKS WHEN 2 pages ARE ALREADY OPEN ON THE WORKSPACE
Thanks!

The underlying code for this function is available anytime in dreamweaver.
Have you checked with the DW API documentation that you are using and referencing it correctly (I have found that DW has these functions in some strange places, so if you have not included the js file it will not work correctly).
The DW API docs are here (including links to download in pdf format) :
http://help.adobe.com/en_US/Dreamweaver/10.0_API_Ref/index.html
PZ

Similar Messages

  • Inspecting the current selection using the HTML5 SDK

    I have been banging my head against the wall trying to get what I thought would be something very simple working.
    What I want to do is have an InDesign panel, the contents of which changes based on the current selection on the page.
    Now, I can access the event "afterSelectionChanged" in the native scripting environment, but there appears to be no way for the native environment to trigger an event in the HTML5 panel unless I use a C++ hybrid extension and call the PlugPlugDispatchEvent() method.
    The events available in the HTML5 API are incredibly limited and don't seem to include any selection-based events.
    This makes it nigh-on impossible to use an HTML5 panel as an inspector of any kind without making an overly complex hybrid extension, which I want to avoid.
    Is this correct? If so, it seems amazingly short-sighted. If there is a way to do this, can someone please show me the way?

    Hi Samuel,
    I didnt clearly understood  your problem. When you are selecting a particular row in a table you are executing a web service named Get Mail. Are you passing any input parameter(any selected row data)  while executing a web service. And when you get the response node where you have a attribute in the node getmail. Am I right.
    If this is the case, then first check if the GetMail node is present or not by comparing it will null or checking its size. If the node is null then you will not get attribute as the element itself is null as nothing is retrieved in response. And if the node is not null then the element at 0th position is selected by default. you can retreieve the attribute by directly using the following code
    if(wdContext.nodeGetMail() !=null)
        String profileId= wdContext.currentGetMailElement().getProfileID();
    Check if this works for you.
    Regards,
    Ardhendu Sarkar

  • Need help on how to specify the current select row in a View Object

    Hi,
    I have a ADF table on my page, when I was selecting the rows in this table, I want the set and get methods in the ViewRowImpl class to do some customized actions. I found out that each time regardless the row I select in the table, the viewrowimpl class will always return the data in the first row, I tried to use getCurrentRow in VO row impl. but still, gets the first row.
    Does anyone know how to get the selected row value in the View Object, or View Row Impl rather???
    Thanks!

    Hi,
    you can call a method exposed by the AM and pass teh rowKey of the selected row as an argument. When you configure the exposed AM method in the pageDef (creating a method binding) the argument is shown in a dialog from where you can use EL like #{bindings.iteratorName.currentRow.rowKey} to access the current selected row.
    Frank

  • WIndows 8.1 printer error: windows cannot print due to a problem with the current printer set up

    My HP OFFICEJET 8500 PRO was working just fine wirelessly until I installed the Windows 8.1 update from the Microsoft.  Now I cannot print at all.  I get an error that says,  "windows cannot print due to a problem with the current printer set up".  I have tried reinstalling and a ton of other solutions to no avail.  Can someone PLEASE Help!

    Hello there, @jesseangelique ,
    Welcome to the Community!
    I would love to help you with the printing issue you're having, since the Windows 8.1 that was done.
    Please run the Print and Scan Doctor. Write me back with the results or post a screen shot of the results and I will have a look at them.
    This diagnostic tool will check for any conflicts that could be causing the issue. The tool will show you a report at the end. If there was a problem that the tool could not fix, you will notice it in the results.
    Also, let me know which Officejet 8500 Model you have:
     HP Officejet Pro 8500 All-in-One Printer - A909a
     HP Officejet Pro 8500 All-in-One Printer - A909b
     HP Officejet Pro 8500 Premier All-in-One Printer - A909n
     HP Officejet Pro 8500 Wireless All-in-One Printer - A909g
    Hope to hear from you!
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • How to get the current selected value of a combo box or a option button?

    Hello All,
    I want to catch the current selected value of a combo box and also of a option button and want save it into different variables in my code. These option button and combo box are in a SAP business one form which I have created through VB dot.net coding.
    But I don't know how to do that, can any one send any example code for this.
    Regards,
    Sudeshna.

    Hi Sudesha,
    If you want to get the selected values you can do it as follows: The Combo Box value you can get from the combo box. If you want to get it on the change event, you must make sure that you check when BeforeAction = False. If you want to get an Option Button value you should check the value in the data source attached to the option button.
            Dim oForm As SAPbouiCOM.Form
            Dim oCombo As SAPbouiCOM.ComboBox
            Dim oData As SAPbouiCOM.UserDataSource
            oForm = oApplication.Forms.Item("MyForm")
            oCombo = oForm.Items.Item("myComboUID")
            oApplication.MessageBox(oCombo.Selected.Value)
            oData = oForm.DataSources.UserDataSources.Item("MyDataSourceName")
            oApplication.MessageBox(oData.ValueEx)
    Hope it helps,
    Adele

  • Cannot print due to a problem with the current printer

    Cannot print (anymore) due to a problem with the current printer is the message I get every time I try to print something out. I tried to reinstall the printer's software, I changed the cables, but nothing happened. It seems to be something related to the printer setup utility. Any big idea on how to solve this? I was printing without problems until this afternoon. I have a HP Laserjet 1022 and sometimes I use Adobe Acrobat Writer. None is currently working.
    Thanks for any help.
    Power Book G4   Mac OS X (10.3.9)  

    I just had the opererational system (10.3.9) reinstalled . Back to normality again.

  • When trying to open a PDF format using Adobe XI I get an error message that there's a problem opening the document (57)

    When trying to open a PDF format using Adobe XI I get an error message that there's a problem opening the document (57)

    Hi chasore,
    Are you still facing this issue?
    Is this issue happening with all the documents you have. If yes, i would suggest try uninstall and reinstall. Or if the documents are located on some shared drive try to copy them on local machine and test again.
    Regards,
    Ajlan Huda.

  • JTree: How to get the currently selected node

    How do I get the currently selected node in JTree?
    getLastSelectedPathComponent() this method always return the last selected node and not the current one.
    Thanks in advance
    Sachin

    Use
    TreePath selectedPath = tree.getSelectionPath()If your tree allows multiple selections, use
    TreePath [] selectedPaths = tree.getSelectionPaths() this will return an array of all selected tree paths.
    Once you get the tree path, call the treePath.getLastPathComponent(). this should tell you the currently selected node.
    Hope this helps
    Sai Pullabhotla

  • DataSource or Crosstab -- List of all Members in the current selection

    Hey Design Studio Experts,
    i need a collection of the  >>current<< member list of a datasource,
    Example: i have the Datasource DS_1, which is filtered by 2-3 filters, so the number of lines, that is delivered by the DS_1 is less than the number of lines in the Query of the DS_1.
    I have checked already the built-in Methods: getData delivers only a Sting (single value), but i need all members of the current selection.
    Thank You in advance.
    Alex

    Nikhil ,
    There are many IDs in the selection, and i need the complete list of them,
    i repeat my requerement again:
    1) WE have query that delivers following lines:
    ID          Color                    Amount
    a               red                              3
    b               blue                            3
    c               Magenta                     1
    d               blue                            10
    2) We set a filter : Filter_1 (Color) = Blue.
    3) After the upper filter got active, we see only two lines:
    ID          Color                    Amount
    b               blue                            3
    d               blue                            10
    As i said im interested in the IDs of the selected lines. So i need a list of values = (b, d)
    meanwhile i think there is now suitable method that delivers the needed result.

  • Revealing the current selection.

    One thing thats always annoyed me is how the current selection disappears when you change the images viewed in the Browser window.
    As an example, you are in the Photos view of the library. All your images are displayed. You then create a filter which narrows down the images displayed to say 5. You select one of those images then remove the filter. All you images are displayed again but the image you had selected is buried. It still has the selection but there is no easy way to find it.
    This service could also be used to return to the selection if you scroll away from it.
    This workflow is installed in Apertures Service menu as showSelection. Any time you invoke it it will reveal the current selection.
    To install it, download it. Uncompress it and move the showSelection.workflow to your Home/Library/Services folder. (Home stands for your home folder on you Mac).
    Once installed it should show up in Apertures Services menu.
    Download [showSelection here|http://cms.crystal-objects.com/blogs/frank/revealselection_aperture_workflowservice021011]
    Message was edited by: Frank Caggiano
    Good idea to add the script!
    .

    Frank Caggiano wrote:
    Sorry won't work for the projects. The 'selection' around a project isn't the same selection for an image. However it is possible to have a project 'reveal' itself so if you described what it is your looking for project wise it may be possible to come up with something.
    First I want to confirm that:
    - the arrow keys do not change the selected Project in Project view. If your mouse cursor is over a project, the arrow keys change the image shown as the Project thumbnail. This is by design -- the arrow keys give you keyboard control of "skimming" the Project. (NB: This behavior is doubly buggy -- sometimes it acts on the currently selected Project, sometimes on the hovered-over Project, and sometimes on another Project neither selected nor hovered over, and sometimes you skim full thumbnails, and sometimes you skim thumbnails cropped as they would be were the "current" image selected as the key photo.)
    - there is no way I can find to change the selection in Projects view with the keyboard, other than "Edit→Select All" and "Edit→Deselect All".
    DLS has brought up a couple of instances of "losing" the selection (not shown on screen) or having the selection change unexpectedly (collapse Stacks w. a non-pick selected). The one I mentioned is exactly analogous (in Project view) to the situation you addressed (in Browser view): filter Projects view using the search field (it searches the Project name and Project description fields), select a Project, and then clear the search field. The selected Project remains selected -- but if it is not shown on your screen, there is no way to find it other than scrolling the entire roll/list/table/sheet of Projects until you notice the one with the selection highlight. As mentioned, the arrow-key trick doesn't work in Projects view. The functionality I'd like to see added to Aperture is the ability to automatically scroll to the currently selected Project in Project view. (And apologies in advance if this functionality already exists.)

  • There was a problem opening the catalog 'My Catalog' PSE 4.0

    In the new PSE 4.0 I always get the message "There was a problem opening the catalog 'My Catalog'", then after pressing the start button again, the catalog starts. Is that the same error that was solved in Version 3.0 with the update 3.0.1.
    That would be not very nice!!!! :(.
    Fraenzchen

    Have you done a catalogue recover?
    File > catalogue > recover
    Chris French

  • No CSS properties apply to the current selection

    I have a style sheet in my root directory. It is showing as being connected to my html page. It is written in with <link href="_css/main.css" rel="stylesheet" type="text/css /">.
    In my Manage Sites section it is shown in  "Advanced Settings" > "Local info" > "Site-wide Media Query file"
    Despite all that when I click on any element in the Design view with either my CSS "Current" or "All" selected it keeps showing the error  "No CSS properties apply to the current selection"
    I have studied other sites of mine line by line where it works and compared it to this one and cannot see anything missing.
    So I really would appreciate being pointed in the right direction.
    Thanks
    keith47

    I don't know as I apply all css manually BUT you have a / after css in the link to the stylesheet you provided below (if its not a typo) which may be causing the issue:
    <link href="_css/main.css" rel="stylesheet" type="text/css /">

  • A filter cannot be applied to the currently selected field. Select a different field

    Hi,
    I am using an InfoPath form to submit the data. In my form I am using one dropdown and one textbox in a repeating table, and the data is fetching from the SharePoint list.
    Scenario: In my SharePoint list there is a column of Company name and other is of Focal Point name. In dropdown contains the company name column.
    I want the functionality that when i select the Company name the associated focal point name should appear in the textbox.
    To achieve this I am using the filter for dropdown but it is showing me error "A filter cannot be applied to the currently selected field. Select a different field."
    Can anyone please tell me how can I do this.
    Thanks in Advanced,

    Hi,
    Please update me any solution for this as I am not able to resolve this.....
    Thanks,

  • I am having a problem opening the safari on my ipad. In the settings it shows that I am connected but when I go on the safari , it says that I am not connected.... any ideas. thanks..

    I am having a problem opening the safari on the ipad. In the settings it tells me that I am connected to the internet but when I open the safari, it tells me that I am not connected. any ideas ?... thanks

    Start with a reboot of your router and power the iPad off and on. Then look here for more help.
    http://support.apple.com/kb/TS1398

  • Detect blue email reply at the current selected line

    Hi all,
    I want to detect whether a blue email reply line (see picture below) is at the current selected line and do some action. Is this possible to detect it? I think observing the ParagaphFormat of the current selection could be work.
    Jens

    Hi jfrederich,
    In addition to Eugene's reply, you can get the paragraph's Borders property, check the sub-properties of this property to determine if this selected paragraph has some blue border line:
    Outlook.Inspector inspector = Globals.ThisAddIn.Application.ActiveInspector();
    Outlook.MailItem currentOpenedMail = inspector.CurrentItem as Outlook.MailItem;
    Word.Document doc = currentOpenedMail.GetInspector.WordEditor as Word.Document;
    string s = doc.Application.Selection.Text;
    //doc.Application.Selection.ParagraphFormat.Reset();
    Word.Paragraph para = doc.Application.Selection.Paragraphs[1];
    Word.ParagraphFormat format = para.Format;
    Word.Borders borders = format.Borders;
    //check properties of borders variable to determine if this paragraph has some blue left border
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for