[JS] [CS3] Create pageItem in the View Centre

Hi
I'm building script which adds new item into product catalogue based on the
code from the prompt() dialog.
When I run :
App.activeDocument.rectangles.add()
The new rectangle is created on the first page of the document.
app.activeDocument.layoutWindows[0].activePage.rectangles.add()
is better, but it always places the rectangle on the first page of the
spread, which is not very helpful for the user who is zoomed into the
opposite corner of the spread
app.activeDocument.layoutWindows[0].activePage.rectangles.add().select();
app.cut();
app.paste();
does exactly what I want but is awfully slow, when I deal with complex
object
Is there a way to position page items in relation to the screen coordinates?
Thanks for help
weller

Hi Weller,
If you're looking for hacks...
Do exactly what you suggested, but make sure to do it only on the simple
object like you did. Note the bounds of the object, and remove it. You
then create your complex one using the bounds of the pasted object as a
base position...
Harbs
http://www.in-tools.com

Similar Messages

  • How to map the node which i have created dynamically into the view

    Hi All,
    Many thanks to all ur answers in advance.
    I have created a node dynamically.I want to display the fields which i have fetched in that node.
    i dont know how to map the node which i have created dynamically into the layout of the view.
    Other than Using ALV is there any other way to do.
    for example usin table control

    Hi,
    use the reference variable of view to access the corresponding UI element and then use the method of that UI element to do data binding with context node.
    for ex:
    Context node = flights
    element = inputfield, ID = inp_name
    data view type ref to if_wd_view.
    data lr_inp type ref to cl_wd_input_field.
    lr_inp ?= view->get_child_element( ' INP_NAME' ).
    use following methods of input field to define the data binding.
    SET__DDIC_BINDING( )
    BOUND__PROPERTY( ).
    BOUND__PRIMARY_PROPERTY( ). " for input field it is value property.
    Get the reference of view from wddomodifyview method as importing parameter(view). Store this parameter as controller attribute.
    Thanks,
    Rahul

  • Bridge to InDesign contact sheets (CS3) creating frames around the images

    Forgive me if this topic should not be here.
    We use the contact sheets to ID from Bridge script quite a lot at work (when it works -> CS2). Since upgrading to CS3 it works (hooray) however, it creates two boxes with a black stroke around each image. Removing them manually is a schlep (I was reading this forum in the hopes of finding a script to run that will remove them faster).
    Is there a way I could edit the script to stop it creating the boxes in the first place?
    Does anyone else have this problem?

    Hi Bob,
    we found your script (I think it was yours) but it only removes one of the boxes I think.
    Hi Robert,
    We are mostly working on Macs, but scripting directly in ID would be great.
    Thanks!

  • Creation of Leads through the Interaction Centre (IC_AGENT) Role

    Hi,
    How Can I create Leads through the Interaction Centre(IC_AGENT) Role in WEB UI?
    Regards,
    Srinivas

    Hi,
    If you are using IC_AGENT as the role you can try it this way,Go to the INDEX Workcenter and from there you can try creating a LEAD.
    Hope this helps you out!
    Regards.

  • Do I need to recreate the View when the underlying field changes?

    Re: Do I need to recreate the View when the underlying field changes?
    I did an ALTER TABLE1 to change FIELD1 from varchar(5) to varchar(7). TABLE1.FIELD1 is in VIEW1. When I do a SELECT * FROM VIEW1 it shows 7 characters. But when I look at VIEW1 in object explorer (after refreshing), FIELD1 is varchar(5). Do I care?
    Should I recreate the VIEW1?

    If you have refreshed using sp_refreshview stored procedure then you are good, if not then here you go...
    The metadata for the view is not automatically updated when the tables are modified.
    The fix is to either drop and re-create or alter the view or to use the sp_refreshview stored procedure.
    Example :
    EXEC sp_RefreshView View_Tablename
    GO
    http://msdn.microsoft.com/en-us/library/ms187821.aspx
    Raju Rasagounder Sr MSSQL DBA

  • Dreamweaver CS3 creates "_notes" directories. I don't want the "_notes" directories. How do I configure DW CS3 to not create those directories?

    Dreamweaver CS3 creates "_notes" directories. I don't want the "_notes" directories. How do I configure DW CS3 to not create those directories?

    No, it makes no difference to Run-time styling.
    A design-time stylesheet is a stylesheet that is only applied to the page as you are working in DW. This is very handy if you have elements on the page which are normally hidden/visible and you want to toggle that visibility while in Design view. Or when you have content that is styled in a way that DW doesn't understand, but the browsers do - you can use a DT stylesheet to modify this styling in Design view only. I'll give you an example -
    There is a metric that is used for font sizing called "rem". A rem is a relative em value - in other words, it specifies the ratio between the actual character size and the size of a base definition for the character size on the page. In previous versions of DW, this metric was not supported. So text content was abnormally large as a result when looking at a page using Design view. A DT stylesheet solves that problem by redefining the character size in px, but only when I am working in DW. Here's a good explanation (http://www.css-tricks.com/rems-ems/)
    You also will lose (I believe) details about which files have been recently synched, and some of your local settings for guides and snap to guides.

  • How can I create a URL for a PWA for MS Project Server 2010 project file that includes the view?

    Hi, this question has been answered for 2013. The answer here suggests that it can be done in  2010.
    See:
    http://social.technet.microsoft.com/Forums/projectserver/en-US/3affdc4f-36bf-4381-8b75-27c73465efd4/action?threadDisplayName=how-can-i-create-a-url-for-a-pwa-for-ms-project-server-2013-project-file-that-includes-the-view
    Who knows how?
    Regards
    Sander

    Hi Sander,
    As far as I tested it, it is not possible either with PS2010. The URL only contains the PDP name and the projUID.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Can new PWA views be created whereby a filter can be set and associate to the view by default? (Project Server 2013 ONLINE)

    My main question is: Can new PWA views be created whereby a filter for that view can be set, and associate to the view by default? (Project Server 2013 ONLINE)? and can I have a filter set to filter on person logged on to...
    In previous versions of Project Server, when CREATING a PWA view, we were able to apply/ define a filter for that view.  Does not seem like it is the case in Project Server 2013 Online.  And if I remember, we could also use the URL Guid_view_id. 
    Please confirm; and / or tell me how-to.
    What I was hoping to do is the following... Given that our standard that we have adopted for reporting time is 'My Timesheets' (fyi, Single Mode Entry=ON), we have some resources who have others who do it on their behalf via 'My Tasks' (ie., accomplished
    by using the 'Assignment Owner' field, accordingly).  Therefore, when entering time on someone else's behalf within 'My Tasks', we like to present the user that is logged in only the tasks that they are are assigned to update on others' behlaf.
    I know that there is another more elegant approach to doing this which may be to use the Delegation feature. But since we are trying to stick to Sharepoint Security mode for now, this is not an option for the time being.
    Any help appreciated would be greatly appreciated.
    \Spiro Theopoulos PMP, MCITP. Montreal, QC (Canada)

    Hi Spiro,
    1- You still can define in Project Online a filter in the view settings, it is located just above the category setting. Here is a screenshot of the summary project center view:
    2- The view GUID is not anymore in the URL, since the URL triggers an action only on the webpart and not on the whole page. I agree this is annoying since it was great to send a URL with a specific view.
    3- Concerning the access to my timesheet versus my task, I'm not sure to get a full understanding but on a general way, it is much more easy to deal with those situation using categories which you cannot do with the SP permission mode.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Why can't I create a response to an email from the Viewer window?

    Why can't I create a response to an email from the Viewer window?
    When I select an email to respond to in the viewer window and click on the respond arrow that appears just under the header, a new response email opens for a split second then disappears.
    I have to actually click on and open the email message in its own screen to be able to then click on the respond arrow and succeed in having Mail open a response email that I can edit - one that remains open.
    This seems to be a bug that we need to have squashed.
    Steve

    Do I have to connect the iPad to a computer to make this work? Is the fact that I used another email address to set up my Apple ID years ago causing the problem? A friend of mine just got a new iPod and he was able to set up a me.com account. I am feeling rather stupid. Hope someone here can help.

  • Can't access object created in the view from controller

    Hi
    In the view, I create a simple HTML control with a DIV tag.I need to access the DIV tag from the view.  The function this.getView().byId() returns nothing.
    view
    createContent : function(oController) {
                            var aControls = [];
                            var html = new sap.ui.core.HTML(
                                        content : "<div id='obj1' style='width: 300px; height: 200px;'></div>"
                            aControls.push(html);
                            return aControls;
    controller
    onInit: function() {
    this.getView().byId("obj1");
    Thanks.

    Hi Chen,
    The reason for this is the at
    this.getView().byId("obj1") would only work for XML views
    but for JS views
    sap.ui.getCore().byId('obj1') would work
    The difference between JS views and XML views is that the id's on DOM are different for JS view each control would get the same id as used in the definition but for XML views the id would get generated.
    Hope this helps.
    Thanks and Regards, Venkatesh

  • How to create a shortcut menu in the VIEW panel of Diadem

    Hi everyone,
    Is it possible to create your own shortcut menu in the VIEW Panel of Diadem? 

    Hi Ovidius,
    What do you mean by "shortcut" menu?  You can add a custom menu to the top of any DIAdem panel and fill it with whatever menu items you want.  You can also add/customize any icons at the top or the left of any DIAdem panel and program them to do what you want.  There is additionally limited support in DIAdem 2010 and prior versions for adding custom context menus to VIEW areas.  We are looking into expanding this support for DIAdem 2011.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Error while creating the view from one instance to another instance

    Hi Experts
    I want to Create a view which reside in one instance for example xxx Instance . I want to create the same view which reside in xxx instance to another instance for example YYY Instance How to acheive this ?
    I tried desc the View take the view script from XXX instance and copied the view script to YYY instance when I compiled Iam getting an Error
    For Example My view in XXX Instance
    CREATE OR REPLACE FORCE VIEW xxx.sample
    First_name,
    last_name
    as
         select "F_NAME",
                 "L_NAME"
         FROM  EMP;When try to copy and compile the same view in my YYY Instance
    i am getting error
    ORA: table or view does not exist
    Advance Thanks
    AT

    A.T wrote:
    Hi Experts ,
    Thanks For all your valuable information I amTrying Of DB Link i think so
    As per My understanding If wrong anywhere please advice me
    Here Instance is Like : One DB 10g divided into several Instance like (test , devlopement , production Instance)
    Now hope i ll make my req clear .
    Coming to my reqirement
    the actual table EMP is in xxi.TEST (Here xxi => Schema and test is an Instance )
    I want to create the view which is based on by table EMP which in my test instance to devoplment instance
    For example xxo.development (here xxo => Schema and development is an Instance )
    Need to access the xxi schema in Test Instance How can I create a DB Link please share your ideas and advice me
    Advance Thanks
    ATIt's still not at all clear, but let me outline what I think you are after
    Given a database, ORCL_A
    In database ORCL_A we have a schema, HALFTRACK
    User HALFTRACK has a table, MYSTUFF
    Given a database, ORCL_B
    In database ORCL_B we have a user GREENBRASS
    User GREENBRASS needs to be able to query the table HALFTRACK.MYSTUFF.
    In database ORCL_B, as user GREENBRASS
    create database link mylink
    connect to halftrack identified by halftracks_pswd
    using ORCL_A;
    select * from mytable@mylink;The db link defines a connection specification to ORCL_A, using the credentials of a user on ORCL_A. The target of the USING clause in the link definition must be an entry in the tnsames.ora file on the server hosting database ORCL_B.
    When querying through the link, database ORCL_B is simply acting as a client to ORCL_A, no different that a sqlplus session on ORACL_B's server. As far as ORCL_A is concerned, ORCL_B is just another client requesting a connection, connecting with the credentials defined in the link definition.

  • I have created a email in Fireworks and wanted to make a line of text a hyperlink that would take the viewer to a page on my website. I want to attach the final document to my email and sending it out.

    I have created a email in Fireworks and wanted to make a line of text a hyperlink that would take the viewer to a page on my website. I want to attach the final document to my email and sending it out.

    1) design for no wider than 600px (otherwise it may not fit in email clients).
    2) Slice up your newsletter design in segments for images and html areas with the slice tool.
    3) add the <a href="http://www.yourwebsite.com">my website</a> link in one of the html areas.
    4) export as generic html 4 code, and put the images in a separate folder.
    5) upload all the images to your website's server in a folder (you cannot embed images in an email newsletter - they must link to externally hosted images).
    6) change all the links in your html page to the ones that were loaded up on your server. For example, an image's source link would work out similar to this: <img src="http://www.yourwebsite.com/newsletter/image1.jpg" alt="alternate description of your image">
    7) open the newsletter with working external images in Chrome or Firefox. Select the entire page content (ctrl-a), and copy it (ctrl-c).
    8) create a new email in your mail client. Place the cursor in the body. Paste the newsletter (ctrl-v).
    9) send your newsletter to hundreds of recipients, and get blacklisted by several email servers. Receive warning messages from your own hosting provider not to spam other users' email accounts.
    10) realize this is too much of a hassle, and instead opt for a service such as MailChimp.
    (The result in (9) depends on whether you sent out your newletter only to acquaintances, or not. But even then you might be warned off.)
    Btw, many email clients turn off images in an email by default. You must provide the most important content as html, not as images.

  • How to create a context node for "IBHeader" at the view "BuPaIBaseDetail"?

    hi, experts
    for the requirement, i have to get data from a root BO-IBHeader in the view of "BuPaIBaseDetail".But the view already has IBHeader's child object-"IBComponent", whose controller class is "CL_CRM_IC_BUPACONTROLLER_CN08", how can i create the context node for "IBHeader"?
    angerly wait for the answer. thanks a lot

    If you right click on an empty container or a container with an object in it, it has the same available choices to select. However, if you create a blank property node on the block diagram, and wire up the .net object to it, you will see a much different list of properties.
    So, the property node created from right clicking a .NET container will be for that container, even if there is an object inside. To create a property node for the object, you must wire the .NET object to an empty property node on the block diagram.
    Chris Van Horn
    Applications Engineer

  • Grant access to all the views created in user schema to another schema

    How to grant access for all the views created in own HAGGIS schema to comqdhb schema on the HAGGIS database.
    Oracle Grant Privileges
    ===============
    Object privileges assign the right to perform a particular operation on a specific object
    I read that we can use select 'grant select on' ||view_name||'HAGGIS' user_views where owner='COMQDHB'
    Is this right
    Oracle System Privileges
    ===============
    System privileges should be used in only cases where security isnt important,because a single grant statement could remove all security from the table
    Role based security
    ============
    Role security allows you to gather related grants into a collection-since the role is a predefined collection of privileges that are grouped together.privileges are easier to assign to users.
    [http://www.dba-oracle.com/art_builder_grant_sec.htm]
    can we grant select update to all the views at a time to the other schema.
    Are there any other ways to secure the data other than creating users and assigning roles.
    Thank you
    Edited by: Trooper on Dec 23, 2008 9:24 AM

    I think what was suggested was that you use SQL to generate the grants on each and every view, that is, you use SQL to generate SQL where the SQL being generated is "grant select on view_name to role'"
    If you users to connect to Oracle you have to create usernames for them though if the users only connect via an application the application might run just as one user and access to the application is controled via application security. The control on the application can be via Directory Services such as OID or MS Active Directory. User access to Oracle can also be controlled via OID.
    To connect to Oracle you can use OS authenication (not recommended), usernames with passwords, or via Advanced Security Option which supports single sign-on products like Kebros or Oracle Internet Directory etc....
    Example using SQL to generate SQL
    How do I find out which users have the rights, or privileges, to access a given object ?
    http://www.jlcomp.demon.co.uk/faq/privileges.html
    HTH -- Mark D Powell --

Maybe you are looking for