Creating a popover segue

I'm using the Sams Teach Yourself iOS 5 Applications Development in 24 Hours, December 2011 printing to learn how to build an app I have in mind. In chapter 11 I'm creating a popover using the control-drag method from an Edit button. I'm supposed to get a dialog box asking me to choose which storyboard segue, the choices are Push, Modal, Custom but I'm told to select Popover.
I've tried the other three thinking maybe one has another choice for popover but that doesn't seem to be the case. Can someone please tell me how to create a popover segue in this way?
I'm using Xcode Version 4.3.2 (4E2002)
Thanks in advance for dealing with a new comer to the iOS development world.

I'm pretty sure I have it set up correctly. The divices is set to iPad. Did I miss another button or setting someplace that says iPad? Where could I check?
Thanks.

Similar Messages

  • Segue style Popover to UIViewController with UIWebView does not display

    I have a button on one View owned by a UIViewController. This button is wired to segue with style Popover. The destination UIViewController holds a UIWebView which loads a pdf.
    It displays blank.
    If I change ONLY the style of the segue to Push, the pdf is displayed.
    Has anyone tried this? Can someone point me to some details that I'm missing when using Popover?
    Thanks

    i found out that if i configure the segue in the parent vc of the popover, and call it from the popover, then it seems to work - not sure why this is so complicated though.

  • How can I create an icon that when clicked will open and maximize an image file?

    How do I create a icon that when clicked will open and maximize an image file?  I have tried to use the simple image widget with maximize upon tap/click - however I am can only size the image really small and put on the page.  I'd prefer to have a graphic that when clicked it simply opens up the image.  This is for a very simple question/answer book.   The user is suppose to look at a picture and locate something.  I want to put an 'Answer' graphic on the image and then the user can click the 'answer' graphic and it will open up the picture with the answer identified. 
    Is this possible?

    Have yiu tried the PopOver widget?  You can drop an image into it, maximise the image and the widgets window...But, you cannot get it full screen.
    With iBooks Author, you either learn to use what is available within the app, or look online for third party widgets to purchase which suit your project.

  • IOS 6 "embed Segues" causes unresponsive view

    WWDC 2012 contains a session video called: "Adopting Storyboards in Your App" that demonstrates how to embed view Containers by utilizing the "Container View" offered within interface builder for storyboards.
    Playing with this functionality I'm running into unpredictable behavior that cause some of the views to be unresponsive.  Here is a general summary of what I'm doing:
    1.  Drag a "View Controller" object into my storyboard and embed into a navigation Controller and assign my user-defined class.
    2.  Drag 2 "Container View" objects and embed each one within the "View Controller" created in step 1.
    3.  I insert a simple button on the left within the navigation toolbar when toggled,  moves the right embedded view to the right using the logic:
        UIView* rightView = [[self.childViewControllers lastObject] view];
        UIView* leftView = [self.childViewControllers[0] view];
        CGRect newPos = rightView.frame;
        newPos.origin.x += leftView.frame.size.width;
        main.frame = newPos;
    4.  Sometimes, this causes my left view (UITableViewController) to not respond to touch events (within Simulator).  If I add code to move the view
          back to it's starting point, the left view responds again.
    Other observations:  The placement of my views seems to affect the unresponsiveness.  For example, I overlaps 90% of the left view with the right one and
    when moved, it was fine.  If I overlap 80% for example, the left view doesn't respond - the right one always seems to respond.  In general, I have noticed that sometimes the views that are stationary, don't respond - depending on the placement of the view that I'm moving.  In all my tests, the view that I move always responds.
    thanks,
    Nick

    Through more research, it turns out that when I move my view to the right, visually it moves but the region that responds to touch events doesn't move.  This is weird.  I posted the question on this under: https://discussions.apple.com/message/20858628#20858628
    My initial thinking was that I was moving the wrong view but the 'view' property for a controller is the parent/root view and is the one I want to move.
    I'm going to try all of this without "embed segue" containers but if anyone has a deeper understanding of why the visual representation and the touch region separates, that would help.
    thanks.

  • Show data of a listitem in a popover window

    Hi Experts,
    I am trying to show the data of a listitem in some input fields which are in a popover window. After clicking on the listitem the data of that listitem will automatically appear on the popover window.  I am using sap.m library. I have coded
    In view.js
    createContent : function(oController) {
      var list = new sap.m.List("list",{
           headerText: "Contact List",
           items: {
               path: "/KEY",
               //sorter : new sap.ui.model.Sorter("FIRSTNAME"),
               template: new sap.m.ObjectListItem({
                 title: "{FIRSTNAME}",
                 number: "{PHONE}",
                 type: sap.m.ListType.Active,
                 press : function (evt) {
                   //var data = {};
                   context = evt.getSource().getBindingContext();
                   //var selectedIndex = data.context.sPath.split("/")[2];
                   //var Odata = data.context.oModel.oData.KEY[selectedIndex];
                   console.log(context);
           popover1.openBy(this,context);
                        firstStatus : new sap.m.ObjectStatus({
                            text : "{EMAIL}", 
                            state : "Success"
                          /*secondStatus : new sap.m.ObjectStatus({
                            text : ,
                            state : "Success"
                          attributes : [
                            new sap.m.ObjectAttribute({
                              text : "{LASTNAME}"
                            new sap.m.ObjectAttribute({
                              text : "{ADDRESS}"
      var popover = new sap.m.Popover({
           title: "Add Contacts",
           placement: sap.m.PlacementType.Top,
           footer:  new sap.m.Bar({
             contentRight: [
               new sap.m.Button({
                 text: "Save",
                 icon: "sap-icon://save",
                 press: function () {
                  var oParameters = ({
                  "Listid" : "List",
                         "First" : sap.ui.getCore().getElementById('First').getValue(),
                         "Phone" : sap.ui.getCore().getElementById('Phone').getValue(),
                         "Last" : sap.ui.getCore().getElementById('Last').getValue(),
                         "Email" : sap.ui.getCore().getElementById('Email').getValue(),
                         "Address" : sap.ui.getCore().getElementById('Address').getValue(),
                         "City" : sap.ui.getCore().getElementById('City').getValue(),
                         "State" : sap.ui.getCore().getElementById('State').getValue(),
                         "Zip" : sap.ui.getCore().getElementById('Zip').getValue(),
                  console.log(oParameters);
                  var url = "http://vikalp.webhop.net:8000/sap/bc/zrestateui5_lis?sap-client=800";
                  var model = new sap.ui.model.json.JSONModel();
                  $.ajax({
                         url : url ,
                         dataType : "jsonp",
                         type : "POST",
                         data: oParameters,
                         success: function(data,textStatus,jqXHR) {
                        data = JSON.parse(data);
                          console.log(data);    
                          model.setData(data);
                    sap.ui.getCore().setModel(model);
                    popover.close();
             contentLeft: [
                   new sap.m.Button({
                     text: "Close",
                     icon: "sap-icon://close",
                     press: function () {
                       popover.close();
           content: new sap.m.VBox({
             //width:"300px",
                     items: [
                             new sap.m.Input("First",{
                              type: sap.m.InputType.Text,
                              placeholder: 'First Name',
                              width:"240px"
                             new sap.m.Input('Phone',{
                                 type: sap.m.InputType.Number,
                                 placeholder: 'Phone No',
                                 width:"240px"
                             new sap.m.Input('Last',{
                                 type: sap.m.InputType.Text,
                                 placeholder: 'Last Name',
                                 width:"240px"
                             new sap.m.Input("Email",{
                                 type: sap.m.InputType.Email,
                                 placeholder: 'Email',
                                 width:"240px"
                             new sap.m.Input("Address",{
                              type: sap.m.InputType.Text,
                              placeholder: 'Address',
                              width:"240px"
                              new sap.m.Input("City",{
                              type: sap.m.InputType.Text,
                              placeholder: 'City',
                              width:"240px"
                              new sap.m.Input("State",{
                              type: sap.m.InputType.Text,
                              placeholder: 'State',
                              width:"240px"
                              new sap.m.Input("Zip",{
                              type: sap.m.InputType.Text,
                              placeholder: 'Zipcode',
                              width:"240px"
         }).addStyleClass("sapUiPopupWithPadding");
      var popover1 = new sap.m.Popover("pop",{
           title: "Contact Information",
           placement: sap.m.PlacementType.Right,
           beforeOpen: function(oEvent){
          oController.display(oEvent);
          sap.ui.getCore().setBindingContext(context);
    //      afterOpen: function (evt) {
           footer:  new sap.m.Bar({
             contentLeft: [
                   new sap.m.Button({
                     text: "Close",
                     icon: "sap-icon://close",
                     press: function () {
                       popover1.close();
           content: new sap.m.VBox({
             //width:"300px",
                     items: [
                             new sap.m.HBox({
                              items: [
                              new sap.m.Label({
                              text:"First Name",
                              width:"140px",
                              new sap.m.Label({
                              text:"{FIRSTNAME}",
                              width:"140px",
                                 new sap.m.InputBase("First2",{
                              type: sap.m.InputType.Text,
                              //value: sap.ui.getCore().setObject(oList)  ,  //
                              width:"240px",
                              placeholder : "{FIRSTNAME}"
                             new sap.m.HBox({
                              items: [
                              new sap.m.Label({
                              text:"Last Name",
                              width:"140px",
                             new sap.m.Input('Last2',{
                                 type: sap.m.InputType.Text,
                                 width:"240px"
                             new sap.m.HBox({
                              items: [
                              new sap.m.Label({
                              text:"Phone No",
                              width:"140px",
                             new sap.m.Input('Phone2',{
                                 type: sap.m.InputType.Number,
                                 width:"240px"
                             new sap.m.HBox({
                              items: [
                              new sap.m.Label({
                              text:"Email",
                              width:"140px",
                             new sap.m.Input("Email2",{
                                 type: sap.m.InputType.Email,
                                 width:"240px"
                             new sap.m.HBox({
                              items: [
                              new sap.m.Label({
                              text:"Address",
                              width:"140px",
                             new sap.m.Input("Address2",{
                              type: sap.m.InputType.Text,
                              width:"240px"
                             new sap.m.HBox({
                              items: [
                              new sap.m.Label({
                              text:"City",
                              width:"140px",
                              new sap.m.Input("City2",{
                              type: sap.m.InputType.Text,
                              width:"240px"
                             new sap.m.HBox({
                              items: [
                              new sap.m.Label({
                              text:"State",
                              width:"140px",
                              new sap.m.Input("State2",{
                              type: sap.m.InputType.Text,
                              width:"240px"
                             new sap.m.HBox({
                              items: [
                              new sap.m.Label({
                              text:"Zip Code",
                              width:"140px",
                              new sap.m.Input("Zip2",{
                              type: sap.m.InputType.Text,
                              width:"240px"
         }).addStyleClass("sapUiPopupWithPadding");
      return new sap.m.Page("page",{
      title: "mEstate",
      content: [list],
      subHeader: new sap.m.Bar("searchBar",{
      contentMiddle: [
                     new sap.m.SearchField( "searchField", {
                      placeholder: "Search",
                      showRefreshButton: true,
                      search: function onSearch(event) {
                             // alert(event.getParameter("query"));
                      jQuery.sap.log.debug("searchField: search for: " +
                      event.getParameter("query"));
                      if(event.getParameter("refreshButtonPressed")){
                           list.bindAggregation("items", {
                           path: "/KEY",
                           template : new sap.m.ObjectListItem({
                             title: "{FIRSTNAME}",
                             number: "{PHONE}",
                             type: sap.m.ListType.Active,
                             firstStatus : new sap.m.ObjectStatus({
                                 text : "{EMAIL}",
                                 state : "Success"
                               /*secondStatus : new sap.m.ObjectStatus({
                                 text : "{}",
                                 state : "Success"
                               attributes : [
                                 new sap.m.ObjectAttribute({
                                   text : "{LASTNAME}"
                                 new sap.m.ObjectAttribute({
                                   text : "{ADDRESS},{CITY},{STATE,{ZIPCODE}"
                      var filters = [];
                         var searchString = event.getParameter("query");
                         if (searchString && searchString.length > 0) {
                           var filter = new sap.ui.model.Filter("FIRSTNAME",
                           sap.ui.model.FilterOperator.Contains, searchString);
                           filters.push(filter);
                            var binding = list.getBinding("items");
                         binding.filter(filters);
                      width: "100%",
                      tooltip: "Search for objects..",
                      refreshButtonTooltip: "Refresh"
      showNavButton: true,
      navButtonTap:function(){ 
                     app = sap.ui.getCore().byId("myApp"); 
                     app.to("idfirst1"); 
      footer: new sap.m.Bar({
             contentLeft: [
                   new sap.m.Button({
                     text: "Add Contact",
                     icon: "sap-icon://add",
                     press: function () {
                      popover.openBy(this);
    In controller.js
    onBeforeRendering
      : function() {
       var url = 'http://vikalp.webhop.net:8000/sap/bc/zrestateui5_lis?sap-client=800';
          var model = new sap.ui.model.json.JSONModel();
       $.ajax({
              url : url ,
              dataType : "jsonp",
              type : "GET",
              //jsonCallback : 'himmm',
              success: function(data,textStatus,jqXHR) {
              data = JSON.parse(data);
              console.log(data);    
              model.setData(data);
        sap.ui.getCore().setModel(model);
       display: function(oEvent){
                 context = oEvent.getSource().getBindingContext();
    I am getting no output in the popover window. Can anyone please show me how can I get the data in the popover window.
    Thanks in advance
    Himadri

    Hi Himadri,
    first, it would be very useful if you can post a running example of the problem on jsfiddle.net or a similar plattform. And maybe you find the mistake by yourself when creating a minimalistic example...
    Second, I haven't used the Popover for now, but you call
    popover1.openBy(this,context);
    The second parameter is a context in your case, but the documentation states that it should be an boolean. What do you intend here?
    Greets,
    ben

  • Filling tab of an XML document created by DOM

    have a problem with filling tab of an XML file created by DOM
    I used this code to create the document:
    public class DOMCreation {
    public void createDOM( String a, String b ) {
              Document doc = new DocumentImpl( null );
              // Il codice che segue � indipendente dal particolare parser utilizzato
              // Creazione dell'elemento root del documento, identificato dal tag <DOCUMENT>
              Element root = doc.createElement("DOCUMENT");
              doc.appendChild(root);
              // Creazione ed inserimento di un nodo
              Element element1 = doc.createElement("USERNAME");
              root.appendChild( element1 );
              // Creazione ed inserimento di un secondo nodo discendente di <DOCUMENT>
              root.appendChild( doc.createElement("PIN") );
    System.out.println( a );
    System.out.println( b );
              try {
                   serializeDocument( doc, new FileOutputStream("d:/doc.xml"));
              } catch (FileNotFoundException e) {}
    private static void serializeDocument(Document doc, OutputStream output) {
              try {
                   DOMSerializer ser = new XMLSerializer( output, null);
                   ser.serialize(doc);
              } catch (IOException e) {
                   System.err.println("I/O exception while serializing document: " + e.getMessage());
    }

    The code lines:
    System.out.println( a );
    System.out.println( b );
    had the purpose to check if these two parameters were passed by another procedure. These two parameters, however, represent the content to be filled in the tag of XML document created by DOM.
    About the other question on "what parser do you use", I'm using Apache's Xerces. However that's the "import" that I include in this procedure:
    import org.apache.xerces.dom.DocumentImpl;
    import org.apache.xerces.dom.NodeIteratorImpl;
    import org.apache.xml.serialize.*;
    import org.w3c.dom.*;
    import org.w3c.dom.traversal.*;
    import java.io.*;

  • Camera view controller segues

    Hi,
    I have a question about adding a camera and photo editing component into an app, and think I have a general idea on how to achieve this but need some insight on whether I am thinking the right way. I want to capture a photo with an AVCaptureSession and present that photo in a UIImageView throughout a series of viewcontrollers for editing purposes (crop, to add caption, to submit to live feed etc...). I am thinking the way this would be acheived is to present each view controller for the capture and editing process modally, but what I am having trouble with is passing the captured image to the next view controller...what are the methods for taking the captured image and then moving it to the next view controller which presents the captured image...from what I have researched I would be using presentingViewControllers and presentedViewController methods...correct? Would I use a prepareForSegue method that once camera captures an image the following view controller is presented...?
    Essentially the segue process would be very similar to instagrams camera viewcontrollers replacing the filters with cropping the photo. But for now all I want to confirm / figure out is how to pass the image from view controller to view controller.
    Thank you very much for any feed back.

    Hi Ian,
    Create a component controller method check_mandatory_fields
    The following should the parameter interface of the method.
    I_VIEW_CONTROLLER     Importing     Type ref to IF_WD_VIEW_CONTROLLER
    In this method, call cl_wd_dynamic_tool=>check_mandatory_attr_on_view to do the validation.
    In main view, when you want to validate the records, do the following.
      DATA: lo_view_controller TYPE REF TO if_wd_view_controller.
      lo_view_controller ?= wd_this->wd_get_api( ).
      wd_comp_controller->check_mandatory_fields(
        EXPORTING
          i_view_controller = lo_view_controller ).
    These validation can be done at view level. So in detaild view, when you want to validate do the same as mentioned above.
    Regards,
    Sravan varagani

  • Replacement of detail view controller using segues

    Im trying to get a button in the master view controller of a UISplitView controller to change the image being shown in the detail view controller of the same UISplitView controller. Im trying to find out if it is possible to do this with segues alone without defining IBActions. If so, Im having trouble figure out what kind of segue would do this. I tried to control-drag from the button in the master view controller to the instance of the detail view controller that I want replacing the first instance(root instance) of the detail view controller and choosing the replace segue but that isn't working out. Any help would be greatly appreciated. I found this was easier to do in the UINavigationController using storyboard and segues because you just "draw" the different instances with different images on the IB canvas and they get pushed according to what button you pressed in the previously on screen view controller however Im having trouble doing this in a split view controller's detail side which in my case is not inside a UINavigationController.

    Hi Lakshmi,
    Doing with MVC would be simpler one compared to page with flow logic.
    Lakshmi you have specified that u have created HEADER IN ONE VIEW and the buttons needed foe the same page in another view.
    You can replace that by including the coding as follows.
    Write the codings needed for header in page fragment and include that in the needed page using the syntax
    <%@ include file="relative URL"%> relative url is the name of the fragment under which you have to write the coding for header.
    Once you have done this you can include the header in any view just by calling the above syntax alone.
    After the completion of this task,you can design the buttons in the same view in which you have included the header.Time consumption will be advantage here.
    You have specified that, by clicking a button your page should be navigated to second and so on.This can be easily achieved by pressing the following keys under DOHANDLEEVENT.
    case evevt.
    when 'id of button 1'
    navigation ->next_page('*goto'*)
    Follow thew same  for all the buttons in their respective DOHANDLEEVENT
    In the main page(ie by clickin the name of the application you will bw getting a window) in you should specify as
    firstpage.htm   goto secondpage.htm
    Link:[helplink|http://help.sap.com/saphelp_nw04/helpdata/en/28/4bae407e69bc4ee10000000a1550b0/framese
    t.htm]
    Hope this will help you.
    With Regards,
    SHARMILA BRINDHA.M

  • Safari toolbar button does not show popover or menu

    I created an extension for safari
    In an extension there is a button and when i click a button a popover should appear
    but when i click a button nothing happens
    i have done all like in the instruction

    Hello look at the page I have attached for you.
    it says the name "CASARECCIA POLLO PICCANTE"
    I can not copy any linke to share it with friends !!
    like full link, google.com/gkgkg/image/kfkfk etc...
    please hope you understand me
    Thanks.
    http://s27.postimg.org/gdo32h0kz/Screen_Shot_2014_04_27_at_9_32_23_PM.png

  • Want to use pushViewController and segues from UINavigationController in AIR app on iOS

    Ok, this might be a long shot, but here goes.
    My iOS AIR app includes a bunch of native screens defined in a storyboard.  I have them included by putting them into a native (static) framework, including that framework in an ANE, and adding code to instantiate and add the various ViewControllers to the screen.
    I can add a ViewController as a child and get its view to show on the screen with the following obj-c code in my ANE:
    [[[[UIApplication sharedApplication] keyWindow] rootViewController] addChildViewController:controller];
            [[[[UIApplication sharedApplication] keyWindow] rootViewController].view addSubview:controller.view];
            [controller didMoveToParentViewController:[[[UIApplication sharedApplication] keyWindow] rootViewController]];
    However, some of the views have child views that use segues and the push stack from UINavigationController.  When these screens try to load, I get the following error:
    Apr 21 13:50:43 raspberry LKW_Smash[7703] <Error>: *** Terminating app due to uncaught exception 'NSGenericException', reason: 'Could not find a navigation controller for segue 'MemberOptionsSegue'. Push segues can only be used when the source controller is managed by an instance of UINavigationController.'
    So I attempted to get access to the app's UIViewController, and push the new ViewController onto the stack with the following code:
    [root.navigationController pushViewController:controller animated:YES];
    But root.navigationController is nil!  It looks like the app doesn't have one!
    So after all that, my question is this: How do I create an AIR app that includes a UINavigationController and is not simply just a single-view app?

    Sync the contacts on your Mac with Google Contacts as well... There is no need to involve iCloud.
    Perhaps you should take a look at Google's help pages.

  • I need to create an action or script to save the file with the name of the selected layer

    I need to create an action or script to save the file with the name of the selected layer (not including the hidden layers, but including those visible).
    How could modify the script: 'Layer Comps To Files.jsx' to get the result?
    Warning: I do not need to export all layers as files.
    Who can help me?
    THX in advance

    Versione in Italiano (Further down the English version)
    NB - Nella versione inglese ho messo tutte le immagini dei menu in italiano.
    Versione per Mac, ma credo sia identico per Windows.
    Spiego passo passo cosa ho fatto:
    - Ho creato un file esempio con tre Livelli, salvato sulla scrivania e ho chiuso il file.
    - Ho aperto il file e selezionato il Livello al centro per iniziare a registrare una azione che ho chiamato: Save with Name of Selected Layer
    - Nuova azione
    - Dare il nome e premere Registra
    Ora salva…
    - Menu --> Livello --> Nuovo --> Livello... e premi -ok-, (lascia il nome che viene mostrato)
    - Ancora una volta Menu --> Livello... --> Nuovo --> Livello... e premi -ok-, (lascia il nome che viene mostrato)
    - Menu --> Livello --> Ordina --> Dietro
    - Menu --> Livello --> Unisci sotto
    - Menu --> Livello --> Unisci visibili
    - Menu --> Livello --> Nuovo --> Livello... e premi -ok-, (lascia il nome che viene mostrato)
    - Menu --> Livello - Nascondi Livello
    - Menu --> Elimina --> Elimina livelli nascosti (press -Yes-)
    - Menu --> Livello --> Nuovo --> Livello... Inserisci questo: 'Move this to the trash' e premi ok
    - Menu --> File --> Script --> Esporta Livelli in File... (Nella finestra che si apre scegliere l’opzione che si desidera, ma togliere il prefisso del nome) e premere -Esegui-
    - Selezionare il pannello Storia cliccare su Elimina premendo -Si- ogni volta che si apre la finestra di dialogo (Ripetere 8 volte questa operazione sino ad arrivare nella storia alla condizione di partenza. Ho visto che è meglio di Ripristina -F12-)
    - Fermare la registrazione.
    A questo punto, mandando in esecuzione questa Azione, ho raggiunto parzialmente l’obiettivo perché i file così creati mantengono, purtroppo, dei prefissi numerici per evitare probabilmente la sovrascrizione di file (credo senza avviso) nel posto dove vengono creati.
    Per ottenere l’obiettivo occorre un nuovo passo ed a proposito di questo riferisco quanto segue:
    ATTENZIONE - L’operazione descritta qui di seguito deve essere fatta su di una copia del file, per cui:
    - Duplicare il file,
    - Spostare l’originale in altra cartella
    - Lavorare sul file duplicato.
    mi riferisco a questo...
    ATTENZIONE - Questa modifica è effettuata a proprio rischio e pericolo ed il sottoscritto non si assume alcuna responsabilità su quanto venga fatto soprattutto da mani inesperte.
    ATTENZIONE - Questa modifica sovrascrive qualsiasi file che abbia nome uguale al layer che viene selezionato più l’estensione del file naturalmente.
    Comunque la modifica è banalissima e a portata di chiunque.
    Procedere così:
    - Chiudere Photoshop
    - Aprire (nel percorso specificato dall’immagine) il file “Export Layers to Files.jsx” (Export Layers To Files.jsx 1.0.0.16) con un editor di testo puro.
    - cercare la stringa (dovrebbe essere in riga 1029)
    var fileNameBody = fileNamePrefix;
    fileNameBody += "_" + zeroSuppress(i, 4);
    fileNameBody += "_" + layerName;
    - sostituirla con:
    var fileNameBody = fileNamePrefix;
    fileNameBody += layerName;
    - cercare la stringa (dovrebbe essere in riga 1047-46)
    var fileNameBody = fileNamePrefix;
    fileNameBody += "_" + zeroSuppress(i, 4) + "s";
    - sostituirla con:
    var fileNameBody = fileNamePrefix;
    fileNameBody += "";
    - salvare e uscire.
    - riavviare Photoshop
    - provare l’azione registrata facendo attenzione che il nome del layer non sia identico al nome di un file già presente altrimenti questo verrà sovrascritto.
    Domanda:
    Perché ho creato livelli che poi ho eliminato ecc.
    Risposta:
    Semplice per evitare errori di esecuzione delle azioni nel caso di operazioni con livelli mancanti o altro.
    Semplice... no?
    English version
    Mac version, but I think it's the same for Windows.
    First of all, I'm translating the actions that I made using the Italian version of Photoshop, you look at the position of the menu that I have chosen to do the work with other languages.
    I explain step by step what I did:
    - I created a sample file with three layers, saved to the desktop and I closed the file.
    - I opened the file and select the layer at the center to start recording an action that I called: Save with Name of the Selected Layer
    - New action
    - Give the name and press Save ( I think it is so in English )
    Now save ...
    - Menu -> Layer - > New —> Layer… and press -ok- , (leave the name that is shown)
    - Once again Menu -> Layer - > New —> Layer… and press -ok- , (leave the name that is shown)
    - Menu -> Layer - > Arrange (order) -> Behind
    - Menu -> Layer - > Merge Down
    - Menu -> Layer - > Merge Visible
    - Menu -> Layer - > New —> Layer… and press -ok- , (leave the name that is shown)
    - Menu -> Layer - Hide Layer
    - Menu - > Delete - > Delete hidden layers (press -Yes- )
    - Menu -> Layer - > New —> Layer… Enter this: ' Move this to the trash ' and press ok
    - Menu -> File - > Scripts -> Export Layers To Files... (In the window that opens select the option you want, but take away the name prefix) and press - Run -
    - Select the History panel and click Delete (on menu opened) pressing -Yes- every time when open the dialog box (8 times Repeat this step until you get into the story to the starting condition. Not use Restore -F12-).
    - Stop recording.
    At this point, by executing this action, I have reached the goal partly because the files created in this way remain, unfortunately, the numerical prefixes to avoid possibly overwriting of files (I think without notice) in the place where they are created.
    To achieve the goal we need a new step and thinking about this as follows:
    WARNING - The operation described below should be made on a copy of the file, so :
    - Duplicate the file
    - Move the original folder to another
    - Work on the duplicate file.
    WARNING - This modification is performed at your own risk and the undersigned assumes no responsibility on what is done mostly by inexperienced hands.
    WARNING - This change will overwrite any files with the same name as the selected layer plus the file extension of course.
    However, the change is trivial and within reach of anyone.
    Proceed as follows:
    - Close Photoshop
    - Open (in the specified path from the image ) file " Export Layers to Files.jsx " (Export Layers To Files.jsx 1.0.0.16) with a pure text editor.
    - Search for the string (should be in line 1029 )
    var = fileNameBody fileNamePrefix ;
    fileNameBody = + "_" + zeroSuppress (i, 4 ) ;
    fileNameBody + = "_ " + layerName ;
    - Replace it with :
    var = fileNameBody fileNamePrefix ;
    fileNameBody + = layerName ;
    - Search for the string (should be in line 1047-46 )
    var = fileNameBody fileNamePrefix ;
    fileNameBody + = "_ " + zeroSuppress (i, 4) + "s" ;
    - Replace it with :
    var = fileNameBody fileNamePrefix ;
    fileNameBody + = "";
    - Save and exit.
    - Restart Photoshop
    - Try the recorded Action, making sure that the layer name is not identical to the name of an existing file otherwise it will be overwritten.
    Question:
    Why I created levels which I then deleted etc..
    Answer:
    Simple to avoid errors of execution of the actions in the case of transactions with missing levels and other.
    Simple ... is not it?
    Sorry for my bad English...
    Thanks in advance for any hint.
    --->>> Please think about this... Adobe <<<---

  • The controls cant be seen in Popover

    i want to show popoverController when a button tapped which is created programmatically. the popoverContoller shows up when the button tapped but not the controls in it. i have some labels and one button in it but it cant be seen. here my codes are
    - (void)viewDidLoad {
        btnPopoverDenemesi=[UIButton buttonWithType:UIButtonTypeRoundedRect];
        btnPopoverDenemesi.frame=CGRectMake(10, 300, 200, 70);
        [btnPopoverDenemesi setTitle:@"POPOVER" forState:UIControlStateNormal];
        [btnPopoverDenemesi addTarget:self action:@selector(popoverAc) forControlEvents:UIControlEventTouchUpInside];
        [self.view addSubview:btnPopoverDenemesi];
    - (void)popoverAc {
        IkinciViewController *pcv=[[IkinciViewController alloc] init];
        UIPopoverController *myPopover = [[UIPopoverController alloc] initWithContentViewController:pcv];
        CGRect popoverFrame = btnPopoverDenemesi.frame;
        myPopover.popoverContentSize = CGSizeMake(500, 900);
        [myPopover presentPopoverFromRect:popoverFrame inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
        [pcv release];
    here IkinciViewController is created in storyBoard. how i can see the controls in popover ? what is wrong with ym code ?

    i want to show popoverController when a button tapped which is created programmatically. the popoverContoller shows up when the button tapped but not the controls in it. i have some labels and one button in it but it cant be seen. here my codes are
    - (void)viewDidLoad {
        btnPopoverDenemesi=[UIButton buttonWithType:UIButtonTypeRoundedRect];
        btnPopoverDenemesi.frame=CGRectMake(10, 300, 200, 70);
        [btnPopoverDenemesi setTitle:@"POPOVER" forState:UIControlStateNormal];
        [btnPopoverDenemesi addTarget:self action:@selector(popoverAc) forControlEvents:UIControlEventTouchUpInside];
        [self.view addSubview:btnPopoverDenemesi];
    - (void)popoverAc {
        IkinciViewController *pcv=[[IkinciViewController alloc] init];
        UIPopoverController *myPopover = [[UIPopoverController alloc] initWithContentViewController:pcv];
        CGRect popoverFrame = btnPopoverDenemesi.frame;
        myPopover.popoverContentSize = CGSizeMake(500, 900);
        [myPopover presentPopoverFromRect:popoverFrame inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
        [pcv release];
    here IkinciViewController is created in storyBoard. how i can see the controls in popover ? what is wrong with ym code ?

  • Error while Creating Presentation variable

    Hi,I am new to OBIEE
    I am facing this error:
    "A numeric value was expected (received "max("Sales Measures".Dollars)").
    Error Details
    Error Codes: EHWH2A7E"
    1.I am using paint rpd.I want to use presentation variable.
    2.So i took two column in criteria 1.Region 2. Dollars
    3.In Dollars edit formula ,I created presentation variable i.e. @{Doller_presentation}{max("Sales Measures".Dollars)} in the column formula.
    4.And In the same column i use filter
    Add ->presentation variable->variable exp =Doller_presentation and default =max("Sales Measures".Dollars)
    5.I have added this request on dashboard page,but error is coming.
    6.Also i have created dashboard prompt,
    Set presentation variable to "Doller_presentation"
    and in column formula :@{Doller_presentation}{max("Sales Measures".Dollars)}
    and took that prompt on the same dashboard page.
    so promt with 2 values are coming.1.All choces 2.13087528..may be ths is max value of dollar but on click its showing error as
    "Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 42021] The query does not reference any tables. (HY000)
    SQL Issued: SELECT 13087529 FROM Paint ORDER BY 1"
    I am confuse abt use of presentation variable
    Please Help,
    Thanks
    Kapil
    [email protected]
    Edited by: user13098263 on May 9, 2010 10:58 PM
    Edited by: user13098263 on May 9, 2010 11:01 PM
    Edited by: user13098263 on May 9, 2010 11:02 PM
    Edited by: user13098263 on May 9, 2010 11:04 PM

    Hi Rachit
    You answered my doubt.This one really works . Thanks a lot !
    But i have one more doubt i.e if have created the Presentation variable in the dashboard prompt and I want to use it in a report
    i.e the scenario is If I have created a new column i.e " Revised Salary " in the Presentation Services and want the values to be entered there dynamically upon end users choice. For ex the end user selecrts value of 1 then the report would display an increament of 500 to all the employees in the " Revised Salary " column and if the end user select value of 2 .. the report would display a decrement of 500 in the " Revised salary column".
    I am getting the following error :
    ========================================================================
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 59001] Binary Logical operation is not permitted on VARBINARY, INTEGER operand(s). (HY000)
    SQL Issued: SELECT "D0 Time"."T05 Per Name Year" saw_0, "D2 Market"."M04 Region" saw_1, "D4 Product"."P01 Product" saw_2, "D1 Customer"."C1 Cust Name" saw_3, "F1 Revenue"."1-01 Revenue (Sum All)" saw_4, CASE WHEN 0='1' then "F1 Revenue"."1-01 Revenue (Sum All)" +500 else "F1 Revenue"."1-01 Revenue (Sum All)" - 500 end saw_5 FROM "Sample Sales" ORDER BY saw_0, saw_1, saw_2, saw_3
    ========================================================================
    Please NOTE : The column on which I want to do an increament is : "F1 Revenue"."1-01 Revenue (Sum All)"
    Thanks

  • Error while creating a Characteristic Variable with Replacement Path

    Hi all,
        I am trying to create the Characteristic Variable ZVLOWDT (Low Date') with Replacement Path on characteristic ZSTARTDT (Start Date) and it gives the error 'Source to replace 'Low Date' is not defined.
       I have created a User Entry Variable VAR_DATE (Start Date) with interval like '01/01/2009 - 01/15/2009'  and  Customer Exit variable ZVCPDAY (does some calculation based on the input of VAR_DATE) on the same ZSTARTDT characteristic. I want to get the 01/01/2009 (lower range date of the selection) into this Characteristic Variable ZVLOWDT. We are in BI 7.0 and the following are it's properties:
    General Tab:
    Description: Low Date
    Technical Name: ZVLOWDT
    Type of Variable: Characteristic Value
    Processing by: Replacement Path
    Reference Characteristic: ZSTARTDT Start Date
    Details Tab:
    Variable Represents : Single value
    Variable is: Mandatory
    Variable is Ready for Input : unchecked
    Replacement Path Tab: Replacement Rule
    Replace Variable with : Variable
    Variable : VAR_DATE
    Replace with : KEY
    Why I am getting this error, PLEASE ?
    Thanks,
    Venkat.

    Hi Khaja,
       We could derive a Variable value from another Variable with out Customer Exit. There is a white paper.
    First have the User Entry Variable (ZV_X) and it accepts the date range like '01/01/2009 - 01/31/2009'. Next create the Characteristic variable (ZV_Y) of Replacement Path for which source variable will be ZV_X and we could get the 'FROM Date' (01/01/2009) from the selection (ZV_X) into it (ZV_Y).
    While creating the Characteristic variable (ZV_Y) of Replacement Path, I didn't find my newly created ZV_X variable in the list of available variables under 'Variable' header in 'Replacement Path' tab and it is causing the error  'Source to replace variable ZV_Y is not defined'. How could I create the Characteristic variable of Replacement Path, PLEASE ?
    Thanks,
    Venkat.

  • I create a birthday calendar in iCal and then click on it in iphoto at the begining of the calendar project each year.  Some how the birthday did not populate the photo calendar.  Is there a way to add the birthday iCal calendar into the calendar project?

    I created a birthday calendar to use in iphoto for calendar.  When a new calendar project is started each year, I click on it in.  Some how the birthday did not populate the photo calendar this year.  The photo calendar is almost complete.  Is there a way to add the birthday iCal calendar into the calendar project? I would prefer not to start over.

    Hi,
    If you first select the calendar on the left, so that its background is highlighted blue/grey, when you make a new events they should be added to that calendar.
    Best wishes
    John M

Maybe you are looking for

  • Higher version ASO to Low verion

    Hi All, I am trying to replace my existing ASO outline 9.3.1 version with 9.3.3 version .When I click on start database ,I am getting below error *"There is a problem on loading the outline into memory , error # 1250053"* When I click on OK , it show

  • Combine into one IDOC

    Dear FI Idoc Gurus, Iu2019m using basic type PEXR2002 , this idoc is generated when I  do a payment run via F110. The idoc generation as far as I know is standard , with some enhancement done via user exit - EXIT_SAPLIEDP_902. Currently for each paym

  • Broken Links on Oracle 2 Day DBA Course

    http://www.oracle.com/technology/obe/2day_dba/index.html All lessons show: Sorry, this page was not found (Error Document 404)

  • Disabling Spaces & Expose on 2nd Monitor

    Does anyone know if there is a way to disable spaces and expose on a 2nd monitor? I want the 2nd screen to run a keynote presentation and not be affected by my activities on the first screen. Thanks, Pete

  • Weblogic Tuxedo Connection on 10gR3 - Where are the Classes?

    Hi everybody, I need some help developing an application using WTC. I am trying to build an application using Weblogic Workshop, but I am not able to find the class TuxedoConnection that was mentioned on the documentation. I imported all jar files fr