Caputre event on html/js view for PS Document open and change

I want to refresh the extension view(html/js) when a new document is opened in photoshop or photoshop documents are switched.
tried to add a listener via CSInterface.addEventListener but may be I am not doing it correct. I would appreciate if I can get some sample code for it.

<div id="home_but"><a href="../index.html"><img src="../images/navbar_imgs/home_off.jpg" alt="home" width="78" height="28"........>
If I try to link everything again from scratch, it gives me the "../images..." instead of just "images" as the index page.
The part "a href="../" before the images source is the difference, I deleted those (not before backing up my page) with no avail.
Sorry for the long post, but trying to explain as much as possible as a newbie in DW, help will be appreciated.
I don't know the steps you're following when you get that result, but you should be able to use site-root relative. Try changing them to:
<div id="home_but"><a href="/index.html"><img src="/images/navbar_imgs/home_off.jpg" alt="home" width="78" height="28"........>
or
<div id="home_but"><a href="/"><img src="/images/navbar_imgs/home_off.jpg" alt="home" width="78" height="28"........>
(removed index.html)
Worst case scenario, you might get away with using a BASE href=... element.
Mark A. Boyd
Keep-On-Learnin' :-)
This message was processed and edited by Jive.
It shall not be considered an accurate representation of my words.
It might not even have been intended as a reply to your message.

Similar Messages

  • Different View for same document library on a Wiki Page

    Hi,
    I am developing a Provided hosted app which have a functionality to create a document library with two Views. Also we need to show this document library in a wiki page with two different views.
    I am using CSOM (C#). I am able to create the document library and the two views programmatically. But when I add the document library in the wiki page the default view (All Documents) is shown for both the web parts. There is an hidden view created with
    the WebPartDefinition from the xml provided through code. 
    Through CSOM we are able make a View as default with the link below.
    http://sharepoint.stackexchange.com/questions/90433/add-document-library-xsltlistviewwebpart-using-csom-or-web-services
    In my case both the webparts will get the same view, where I need different view for same document library in a wiki page.
    Also I tried to update the web parts with the following code.
    string viewString = @"<View Name='{0}' MobileView='TRUE' Type='HTML' Url='/SitePages/Home.aspx' Level='1' BaseViewID='1' ContentTypeID='0x' ImageUrl='/_layouts/15/images/dlicon.png?rev=23' >
    <Query><Where><Eq><FieldRef Name='KeyDocument'/><Value Type='Boolean'>1</Value></Eq></Where></Query>
    <ViewFields><FieldRef Name='FileLeafRef'/><FieldRef Name='DocumentOwner'/><FieldRef Name='Modified'/>
    <FieldRef Name='_UIVersionString'/><FieldRef Name='Editor'/></ViewFields>
    <RowLimit Paged='TRUE'>30</RowLimit><JSLink>clienttemplates.js</JSLink><XslLink Default='TRUE'>main.xsl</XslLink>
    <Toolbar Type='Standard'/></View>";
    WebPartDefinition wpd = wpfound.FirstOrDefault();
    string formattedstring = String.Format(viewString, wpd.Id);
    wpd.WebPart.Properties["XmlDefinition"] = formattedstring;
    wpd.SaveWebPartChanges();
    web.Context.ExecuteQuery();
    I created two views (viewString) as shown above.
    The above code did not throw error, but it did not update the web part.
    Please advise how to move forward.

    Hi Samir,
    When we click outside of the list view webpart on a webpart page (or allitems.aspx page) with containing multiple webparts, the list view webpart will lose the focus, and the selected items will be deselected, this is by design.
    You can look at the following article with using the approach/workaround of Javascript to prevent the specified list view webpart from losing focus.
    http://sharepoint.stackexchange.com/questions/44360/list-view-loses-focus-when-additional-webpart-added-to-page
    //Set focus on our list web part
    var webPart = document.getElementById('WebPartWPQ1');
    WpClick({target: webPart});
    //Prevent it from losing focus
    SP.Ribbon.WebPartComponent.$3_1.deselectWebPartAndZone = function() { };
    Thanks
    Daniel Yang
    TechNet Community Support

  • How to create a special view for sharepoint list A and deploy this view to specific user personal view?

    How to create a public view for sharepoint list A and deploy this view to specific user personal view? Is that possible OOTB?

    Views cannot be exported or moved. Can you elaborate your requirement?
    --Cheers

  • Which Event Classes i should use for finding good indexs and statistics for queries in SP.

    Dear all,
    I am trying to use pro filer to create a trace,so that it can be used as workload in
    "Database Engine Tuning Advisor" for optimization of one stored procedure.
    Please tel me about the Event classes which i  should use in trace.
    The stored proc contains three insert queries which insert data into a table variable,
    Finally a select query is used on same table variable with one union of the same table variable, to generate a sequence for records based on certain condition of few columns.
    There are three cases where i am using the above structure of the SP, so there are three SPS out of three , i will chose one based on their performance.
    1) There is only one table with three inserts which gets  into a table variable with a final sequence creation block.
    2) There are 15 tables with 45 inserts , which gets into a tabel variable with a final
    sequence creation block.
    3)
    There are 3 tables with 9 inserts , which gets into a table variable with a final
    sequence creation block.
    In all the above case number of record will be around 5 lacks.
    Purpose is optimization of queries in SP
    like which Event Classes i should use for finding good indexs and statistics for queries in SP.
    yours sincerely

    "Database Engine Tuning Advisor" for optimization of one stored procedure.
    Please tel me about the Event classes which i  should use in trace.
    You can use the "Tuning" template to capture the workload to a trace file that can be used by the DETA.  See
    http://technet.microsoft.com/en-us/library/ms190957(v=sql.105).aspx
    If you are capturing the workload of a production server, I suggest you not do that directly from Profiler as that can impact server performance.  Instead, start/stop the Profiler Tuning template against a test server and then script the trace
    definition (File-->Export-->Script Trace Definition).  You can then customize the script (e.g. file name) and run the script against the prod server to capture the workload to the specified file.  Stop and remove the trace after the workload
    is captured with sp_trace_setstatus:
    DECLARE @TraceID int = <trace id returned by the trace create script>
    EXEC sp_trace_setstatus @TraceID, 0; --stop trace
    EXEC sp_trace_setstatus @TraceID, 2; --remove trace definition
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • Enable Merge Documents and Relink documents views for a document library

    Hi All,
    I would like to have Merge Documents and Relink documents views for a document library (not a form library). I was able to see Combine.aspx and Repair.aspx in the document library open with explorer -> Forms folder. How do I enable these two views?
    Your help would be greatly appreciated. Thanks a lot.
    Merge Documents -> /Forms/Combine.aspx
    Relink Documents -> /Forms/repair.aspx

    These two views is actually hidden in SharePoint library, you can enable it by set hidden property to false.
    download SharePoint manager, then find the site, root to the specified library, click views, find the Merge documents view, you will see that the Hidden propery is by default set to true.
    http://spm.codeplex.com/releases/view/97332
    Qiao Wei &lt;br/&gt; My blog:<a href="http://blog.goobol.com">http://blog.goobol.com</a>

  • Number Range (series) for Billing Document (F2) and Excise Invoice

    Hi All,
    I want to know how the number ranges / number series is defined for billing documents (F2) and excise invoice, for India business scenario.
    In India, the excise invoice is given to the customer so that he can the excise duty/ cenvat. This invoice acts as the Tax invoice (having all pricing elements apart from excise duty) against which customer outstanding is considered. That is, the payment due will be tracked against this Tax (excise) invoice.
    But in SAP, the accounts posting is done (customer a/c debited) when we creaate and post the billing document (type F2). Hence, the outstanding amount is tracked against the billing document created. This billing doc/invoice will have all the pricing components like price, discount, freight, etc apart from excise duty.
    The excise invoice is created separately....with ref to the above billing doc....for posting the excise duty.
    If the number ranges for billing document and excise invoice are different then it is difficult to trace the outstanding amount from a particular customer on the basis of excise invoice created in the system.
    Can somebody provide inputs/solution on this?
    Thanks indvance.
    Rgds,
    Amit

    Hi Saurabh,
    My question is not how to define number range for billing doc and excise invoice? i mean what procedure / tcode to be used for the same?
    My question is whether we need to define same number range for Billing doc (F2) as well as Excise Invoice.
    For example: number range 1000 to 1999  --- same for F2 and excise invoice....
    Lets say billing doc 1000 is created. Further, when we create excise invoice w.r.t. this billing doc....the excise invoice created will also need to be 1000. ....so that we can identify that against this excise invoice, we need to collect the payment from customer.
    If the number ranges for billing doc and excise invoice are different, then it is difficult for the user to trace the outstanding payment .....because genarally the excise is treated as Tax invoice by companies in India ...(so that the customer can claim the excise duty....when he purchases the goods from the company).
    Whereas the customer account is hit when the billing doc is posted .....hence i feel, we need to keep the same number range for billing doc and exice invoice.
    Hope the question/scenario is clear now.
    I would appreciate the inputs on the above, from the consultants/experts who have worked on SAP implementation projects in India.
    Rgds,
    Amit

  • IDoc Configuration for Production Order Creation and Change

    Hi All,
    Please Help me out for IDoc Configuration for Production Order Creation and Change
    I have found the IDoc for Production Order
    Messgae Type : LOIPRO and IDoc type : LOIPRO01
    Actually my requirment is to send the (LOIPRO01 )IDoc from SAP R/3 to XI system ,when ever the Production Order Created and Changed,
    I have done following Configurations:
    1. RFC Destination created for XI system
    2. PORT was created for XI
    3. Partner profile created WE20 and LOIPRO01 IDoc is added in OutBound Perameter.
    I need to know how to do the followning.
    1. How do i configure the outbound Production order idocs when Production Order is created or changed.
    2. in NACE (Output control) which is the Application for Production Order.
    3. How can I set IDoc as output Type for Production Order Creation.
    Thanks in advance
    Dhanabal T

    Hi Michal,
    I know that it is the old thread but still want to get clarified from you out of curiosity.
    Unlike other IDOC, i actiavated change pointers for LOIPRO
    1.message and idoc type is linked
    2.function module , message type , idoc type is linked
    function module used is CLOI_MASTERIDOC_CREATE_LOIPRO
    3.BD64, distribution model is created and distributed
    4. port and partner profile is in place.
    5. IDOC is not getting generated after creating the process order.
    do we need to activate the change documents for the message type in BD52,
    if yes can you please provide the object types for the same.
    or i am missing something else. please guide me in this regards.
    Thanks in advance for your time.
    S.Janagar

  • When I have documents open and I walk away for a few minutes, when I come back and try to resume working, my computer seems to freeze up and the little pinwheel starts spinning and I literally have to unplug my computer to get it out of this frozen state.

    When I have documents open and I walk away for a few minutes, when I come back and resume working, my computer freezes up and the little pinwheel starts spinning.  I literally have to unplug it to get out of this frozen state.  This has been getting progressively worse over the past three months.  I recently took it into the Genius Bar and they could not find anything wrong.  They told me to add more memory, which I did.  However, the problem persists. Do you know why my computer would freeze up after the screen has had no activity for just a few minutes?  My screen saver is set for an hour so I know this is not the problem.

    What kind of documents? Office? iWork? Text Edit? What version?
    What settings do you have in regards to power saver and/or screen saver?
    For these kinds of system glitches I always recommend installing and running Onyx 'Automation'. If that does not work you should reinstall the offending software, if possible.
    Onyx - http://www.titanium.free.fr/download.php?sid=d1caebc01e3207556c6d75791305ccf2

  • Is there a Business Object for Sales Order Create and Change VA01 and VA02

    Hi experts -
    I am looking for a business object for Sales order create and change VA01 and VA02 respectively?
    Thanks,
    Mark

    Hi Mark,
    I think this question is best answered in [SAP Solutions|/community [original link is broken]; Forums.
    - Subhodeep
    Edited by: Subhodeep on Aug 29, 2009 11:14 AM

  • Function module which uses both BAPI's for sales order create and change

    Please name the function module which uses both BAPI's for sales order create and change.
    BAPI_SALESORDER_CREATEFORMDAT2
    BAPI_SALESORDERCHANGE

    Yup.
    you must write a piece of code for this.
    with if else condition.first check if SO is exsist than use second FM to change it else create new SO from first FM.
    logic somethig like this.
    Amit.

  • How to change to Icon View for some folders but and List View for the rest

    I've had a bear of a time with View options in my folders. I'd like some folders to be in Icon view and other to be in List view. For what ever reason if I change the view option of one folder it changes the view option of EVERY folder. What can I do to make this happen?

    I was about to ask the same. I'd like to use icon view normally, but list view for folders containing lots of text documents. It looks like the solution is using View > Show View Options, change the folder to the view you want, and then tick the box at the top fo the dialogue for "Always open in __ view".
    Message was edited by: Adrian Bolt
    Message was edited by: Adrian Bolt

  • Configuring Viewer for IPM documents in BPEL

    Hi,
    I am trying to integrate IPM with UCM and BPEL. The tasks i need to perform is
    1) Upload documents through IPM
    2) Add annotations to the document in IPM
    3) Push the documents into BPEL workflow
    4) View the documents from BPEL workflow along with annotations.
    While I am able to upload the document in IPM , add annotations and push it into BPEL workflow, I am not able to configure the viewer tool for the document in BPEL.
    The tasks i performed to setup the viewer are
    Created a view in BPEL workflow system
    Entries in IPM- AXF tables using the scripts similar to invoice processing with the view name like
    Insert into AXF_SOLUTION_PARAMETERS (SOLUTION_NAMESPACE,COMMAND_NAMESPACE,CONFIGURATION_NAMESPACE,PARAMETER_KEY,PARAMETER_VALUE)
    values (‘DocumentApprovalWorkflow’,'StartDocumentApprovalWorkflowProcessing','oracle.imaging.axf.web.backing.TaskList','VIEW_LIST','youeviewname');
    Updated my BPEL connection as
    Insert into AXF_SOLUTION_ATTRIBUTES (SOLUTION_NAMESPACE,PARAMETER_KEY,PARAMETER_VALUE)
    values ('AttachInvoiceImageOnly','BPEL_CONNECTION','yourbpelconnection');
    Run all the scripts with changes i mentioned above.
    And when i try to run http://localhost:16000/imaging/faces/Driver.jspx page with the required parameters, it throws the following exception
    ConversationId     e052ff72-283a-4c35-a822-b64580393e30
    Error Message     java.lang.NullPointerException
    Error Code     TCM-91000
    and for the command : OPEN_BROWSER
    i get the following URL
    http://localhost:16000/imaging/faces/Message/Message.jspx?errorId=dba1f32c-083b-4bf3-9ce9-4cf08df&_afrWindowMode=0&_afrLoop=19164096940812&_adf.ctrl-state=hms7vaajl_4
    Does anybody know how exactly we need to configure this? my IPM and UCM runs on my local machine where as BPEL runs on a seperate machine in the network
    Really appreciate any kind of help !!!!
    Regards,
    Poornima

    Hi,
    I have followed all the steps to check whether AXF installed properly or not.It's working fine.
    But In CommandAuthenticatorFacade.jsp when i click the link button(*ViewTask*) for a task generated from BPEL,i got a message as*There are no documents present in document viewer*.
    Can u tell me how to proceed.
    With Regards
    Jyoti

  • Ever since I updated to Firefox 7.0.1, it's takin twice as long for Mozilla to open and for websites to load. It's also started crashing more often. Is there anyway to revert back to the older versions?? I never had a problem with those..

    After the update to the newest version of Mozilla Firefox (7.0.1), it's taken the program twice as long to open and even more time for pages to load. I've also gotten error messages saying that the page can't be loaded, even though everything else I use (Skype, etc) is running fine and connected to the internet. I didn't have these issues with the older versions of Mozilla, so please put out a patch or something soon. Or if I could revert to an older version of Mozilla, I'd be just as happy.

    After the update to the newest version of Mozilla Firefox (7.0.1), it's taken the program twice as long to open and even more time for pages to load. I've also gotten error messages saying that the page can't be loaded, even though everything else I use (Skype, etc) is running fine and connected to the internet. I didn't have these issues with the older versions of Mozilla, so please put out a patch or something soon. Or if I could revert to an older version of Mozilla, I'd be just as happy.

  • Number ranges for material document (migo) and inventory  documents

    Hi Gurus,
    We need a different number ranges for goods receipt documents  and inventory documents because we have different company merged in to one box.Can any body tell me on what basis we differenciate the number ranges how to configure it.
    If we take PO, we have different doc types and we assign number ranges to those documents. in case of Miro , it  is the single transaction code used by different companies and how to give different number ranges.
    Regards,
    Sri........

    Hi,
    I think number ranges of inventory documents are on client level not on company code wise . because even though  your creating new document and assigned different number ranges for the documents but  these while assigning  ranges to T codes (MIGO or MIRO) you dont have option like company codes ( tcode OMBA) so number ranges for inventory documents are at client level  not at company code level.

  • Query For Finding Yearly Opening and Closing Balance for All the Items

    Hi Experts,
    I am working on Query Based Report for finding the Yearly Opening and Closing Stock for all the Items
    i will give yearwise selection and I want opening and closing stock in between that years
    Warm Regards,
    Sandip Kokate
    Edited by: Sandipk on May 20, 2011 1:58 PM

    Hi,
    Declare @SDate DateTime
    Declare @EDate DateTime
    Declare @Whse nvarchar(10)
    Set @SDate= (SELECT min(F_RefDate)  FROM  OFPR T1 where  T1.[Name] ='[1%]' )
    Set @EDate= (SELECT max(T_RefDate)  FROM  OFPR T1 where  T1.[Name] ='[%1]' )
    Set @Whse=(Select Max(s2.Warehouse) from OINM S2 Where S2.Warehouse = '[%2]')
    BEGIN
    Select @Whse as 'Warehouse', a.Itemcode, max(a.Dscription) as ItemName,
    sum(a.OpeningBalance) as OpeningBalance, sum(a.INq) as 'IN', sum(a.OUT) as OUT,
    ((sum(a.OpeningBalance) + sum(a.INq)) - Sum(a.OUT)) as Closing ,
    (Select i.InvntryUom from OITM i where i.ItemCode=a.Itemcode) as UOM
    from( Select N1.Warehouse, N1.Itemcode, N1.Dscription, (sum(N1.inqty)-sum(n1.outqty))
    as OpeningBalance, 0 as INq, 0 as OUT From dbo.OINM N1
    Where N1.DocDate < @SDate and N1.Warehouse = @Whse Group By N1.Warehouse,N1.ItemCode,
    N1.Dscription Union All select N1.Warehouse, N1.Itemcode, N1.Dscription, 0 as OpeningBalance,
    sum(N1.inqty) , 0 as OUT From dbo.OINM N1 Where N1.DocDate >= @SDate and N1.DocDate <= @EDate
    and N1.Inqty >0 and N1.Warehouse = @Whse Group By N1.Warehouse,N1.ItemCode,N1.Dscription
    Union All select N1.Warehouse, N1.Itemcode, N1.Dscription, 0 as OpeningBalance, 0 , sum(N1.outqty) as OUT
    From dbo.OINM N1 Where N1.DocDate >= @SDate and N1.DocDate <=@EDate and N1.OutQty > 0
    and N1.Warehouse = @Whse Group By N1.Warehouse,N1.ItemCode,N1.Dscription) a, dbo.OITM I1
    where a.ItemCode=I1.ItemCode
    Group By a.Itemcode Having sum(a.OpeningBalance) + sum(a.INq) + sum(a.OUT) > 0 Order By a.Itemcode
    END
    I hope this will work for you.
    In above query you can also user OFPR.Code, OFPR, Category OFPR.Indicator instead of OFPR.Name.
    Regards
    Vaibhav Anharwadkar
    Edited by: Vaibhav Ancharwadkar on May 24, 2011 9:23 AM

Maybe you are looking for