string template

Hello
I want to match a pattern in a string. Unfortunately I have nt been able to find examples that show how to use the class stringpattern. Can someone show you please briefly give how to match a model in a string. Thnk u in advance

This may help you:

       public boolean isEqualToString(String source, String pattern)
    {
        if (source == null || pattern==null)
            return false;
        if(source.length()==0||pattern.length()==0||source.length()//If you don't want case sensitive then use "str.equalsIgnoreCase(pattern)"
                {
                    System.out.println("=========Equal String ==============: "+str);
                    return true;
                }
            }
            index++;
        }
        return false;
    }

//Example:  boolean isContainsString=isEqualToString("Ali shaik ali", "ali");

Try this and let me know.

Tags: BlackBerry Developers

Similar Questions

  • Why my converter is not called

    I defined a custom converter registered in faces - config.Xml. I entered a value in the field, but that the converter is not called (I put traces inside). I tried like a converter and also as Converter element attribute.

    < af:inputText id = value = "#{bindings.percent1.inputValue 'it2'} ' simple ="true"contentStyle =" width: 100% ""
    Converter required = "#{pageFlowScope.myBean.action eq 'CREATE'}" = "myBigDecimalConverter" > "
    <!-< f: converter converterId = "myBigDecimalConverter" / >-->
    < / af:inputText >

    Can you explain what I am doing wrong?

    Thank you

    JDev 11.1.2.4

    Hello

    A converter is run on the client and its role to transform to "string" which is written in HTML component to an "object" you use a model in the State of post page (and vice Bader in the page rendering stage).

    Then

    1. normally, to be called, the page must be submitted to the server (which runs the converter).

    2 - the value is converted by getAsObject is stored in your model (bean property) and not reflected in the value of the HTML component (once again, this value can be an object, not a string). On the other hand, the getAsString method converts the 'object' in the string template to use in the HTML component.

    Kind regards.

  • My Applet blocking java.exe Crash

    Okay, I don't know why, but on some computers is my applet make java.exe crash. When I attach a debugger to the java.exe when it crashes, I see an "Access Violation" error The strangest part is that, if a computer will crash and another the same computer with the exact same setup custom. The crash comes the time that starts the applet.

    Now, I did everything that I could to understand this. I have installed uninstalled and reinstalled java. I ran RAM, hard drive, processor, ect test all reports with no problem. I have disabled antivirus and uninstall and reinstall it again. I installed older versions of java. I resigned from my jar file, created a new key, and then resigned. Virtually the only thing that I did not and is not a viable solution is to reformat/replace computers. So I left thinking it could be something in the applet that is the cause.

    It might be within the parameters of the cmdlet, but I doubt it.
    FP of Landau is about 5000 characters
    VerfyType Landau is long about 1 character
    Arg1 Landau is a maximum of 11 characters
    Arg2 Landau is a maximum of 11 characters

    This applet is designed to interact with a program on the computer that connects to a variety of fingerprint scanners that we use and passes the internal site information form to the scanner and vice versa. As it begins just a rear plug of the loop. For taken back loop, I tired 127.0.0.1 and localhost which always give the same result.

    This is the applet. It's very simple.
    import javax.imageio.ImageIO;
    import javax.swing.*;
    
    import java.awt.Image;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.PrintWriter;
    import java.net.MalformedURLException;
    import java.net.Socket;
    import java.net.URL;
    import java.net.UnknownHostException;
    import java.security.AccessController;
    import java.security.PrivilegedAction;
    
    public class Verify extends JApplet {
    
         private static final long serialVersionUID = 908206045464466336L;
         
         public JLabel jLabel1;
        public jPanel jPanel1;
        public String Template = "";
        public String VerfyType = "";
        public String Arg1 = "";
        public String Arg2 = "";
        public Thread t;
        Socket socket = null;
        
        public void stop()
        {
             jPanel1.threadRun = false;
             if (socket != null)
             {
                  try {
                        socket.close();
                   } catch (IOException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                   }
             }
        }
           
         public void init()
        { 
            //Execute a job on the event-dispatching thread:
            try {
                javax.swing.SwingUtilities.invokeAndWait(new Runnable() {
                    public void run() {
                         Template = getParameter("fp").trim();
                         VerfyType = getParameter("VerfyType").trim();
                         Arg1 = getParameter("Arg1").trim();
                         Arg2 = getParameter("Arg2").trim();
                         initComponents();
                    }
                });
            } catch (Exception e) { 
                System.err.println("getParameter didn't successfully complete");
            }
            
            StartVerify();
        }
        
        private void initComponents() {
    
              jPanel1 = new jPanel();
              jLabel1 = new JLabel();
              
              jPanel1.setPreferredSize(new java.awt.Dimension(66, 66));
              jPanel1.setBackground(new java.awt.Color(255, 255, 255));
              
              
              jLabel1.setText("Initializing Please Wait.");
            setBackground(new java.awt.Color(255, 255, 255));
    
            javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
            jPanel1.setLayout(jPanel1Layout);
            jPanel1Layout.setHorizontalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 66, Short.MAX_VALUE)
            );
            jPanel1Layout.setVerticalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 66, Short.MAX_VALUE)
            );
    
            jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 536, Short.MAX_VALUE))
                        .addGroup(layout.createSequentialGroup()
                            .addGap(224, 224, 224)
                            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap())
            );
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jLabel1)
                    .addContainerGap(116, Short.MAX_VALUE))
            );
    
        }
        
        public void StartVerify()
        {
             t = new Thread() {
              public void run() 
            {
                  AccessController.doPrivileged(new PrivilegedAction() {
                  public Object run() 
                  {
                            PrintWriter out = null;
                            BufferedReader in = null;
    
                            try {
                                socket = new Socket("localhost", 4001);
                                out = new PrintWriter(socket.getOutputStream(), true);
                                in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
                            } catch (UnknownHostException e) {
                                 jLabel1.setText("Unkown Host Error.");
                                return null;
                            } catch (IOException e) {
                                 jLabel1.setText("Unable to get communication streams..");
                                return null;
                            }
                            
                            String reponse = "";
                            try {
                                reponse = in.readLine();
                                if (reponse.equalsIgnoreCase("cmd"))
                                {
                                    out.write("v\n");
                                    out.flush();
                                    reponse = in.readLine();
                                    if (reponse.equalsIgnoreCase("send"))
                                    {
                                        out.write(Template+"\n");
                                        out.flush();
                                        reponse = in.readLine();
                                        if (reponse.equalsIgnoreCase("finger"))
                                        {
                                             jLabel1.setText("Please Have the client place their finger on the scanner.");
                                             while (true)
                                             {
                                                  reponse = in.readLine();
                                                  if (!reponse.equalsIgnoreCase("pulse"))
                                                  {
                                                       break;
                                                  }
                                             }
                                            if (reponse.equalsIgnoreCase("good"))
                                            {
                                                try {
                                                     DoRedirect();
                                                    socket.close();
                                                } catch (IOException ex) {
                                                    
                                                }
                                            }
                                            else if (reponse.equalsIgnoreCase("bad"))
                                            {
                                                           int _return = LoopTellCanceled(socket, out, in);
                                            }
                                            else
                                            {
                                                 jLabel1.setText("Unexpected response from finger print server."); 
                                            }
                                        }
                                        else
                                        {
                                             jLabel1.setText("Unexpected response from finger print server."); 
                                        }
                                    }
                                    else
                                    {
                                         jLabel1.setText("Unexpected response from finger print server."); 
                                    }
                                }
                                else
                                {
                                     jLabel1.setText("Unexpected response from finger print server."); 
                                }
                            } 
                            catch (IOException ex) 
                            {
                                 jLabel1.setText("We lost connection to the finger print reader.");
                                 System.err.println(ex);
                            }
                            
                            try {
                                out.close();
                                in.close();
                                socket.close();
                            } catch (IOException e) {
                                System.err.println("Couldn't get I/O for the connection");
                                return null;
                            }
                            
                            return null;
                        }
                    });
                                            
                }
            };
            
            t.start();
        }
        
        
        private int LoopTellCanceled(Socket socket, PrintWriter out, BufferedReader in)
        {
             int res = JOptionPane.showConfirmDialog(null, "Incorrect Finger Print. Would you like to try again?", "Finger Print was Bad", JOptionPane.YES_NO_OPTION);
             
             while (res == JOptionPane.YES_OPTION)
             {
                String reponse = "";
                try {
                    out.write("v\n");
                    out.flush();
                    reponse = in.readLine();
                    if (reponse.equalsIgnoreCase("send"))
                    {
                        out.write(Template+"\n");
                        out.flush();
                        reponse = in.readLine();
                        if (reponse.equalsIgnoreCase("finger"))
                        {
                             jLabel1.setText("Please Have the client place their finger on the scanner.");
                             while (true)
                             {
                                  reponse = in.readLine();
                                  if (!reponse.equalsIgnoreCase("pulse"))
                                  {
                                       break;
                                  }
                             }
                            if (reponse.equalsIgnoreCase("good"))
                            {
                                try {
                                     DoRedirect();
                                    socket.close();
                                } catch (IOException ex) {
                                    
                                }
                            }
                            else
                            {
                                 res = JOptionPane.showConfirmDialog(null, "Incorrect Finger Print. Would you like to try again?", "Finger Print was Bad", JOptionPane.YES_NO_OPTION);
                            }
                        }
                    }
                } catch (IOException ex) {
                     System.err.println(ex);
                }
             }
             return res;
        }
        
        public void DoRedirect()
        {
              try 
              {
                   if (Arg1.equalsIgnoreCase(""))
                   {
                        getAppletContext().showDocument(new URL("javascript: fprintVerified("+VerfyType+");"));
                   }
                   else
                   {
                        if (Arg2.equalsIgnoreCase(""))
                             getAppletContext().showDocument(new URL("javascript: fprintVerified("+VerfyType+", "+Arg1+");"));
                        else
                             getAppletContext().showDocument(new URL("javascript: fprintVerified("+VerfyType+", "+Arg1+", "+Arg2+");"));
                   }
              } 
              catch (MalformedURLException ex) 
              {
                   ex.printStackTrace();
              }
        }
    }
    Edited by: Pyromanci on March 1st, 2011 07:58

    You can try to move the code from Applet.init () at Applet.start (), see what happens.
    Also check what happens if fp is not as long.

    Published by: baftos on March 1st, 2011 13:08

  • Problem filling tabnavigator with returned data

    I'm trying to fill a tabnavigator with data. I feel that only the first tab displays data, but each subsequent tab does not work. It seems that when you click on another tab it loses the value of 'key' past. What is the reason for this and how can I fix the value of the 'key' for all tabs?

    Thank you!


    Here is my code:

    <? XML version = "1.0" encoding = "utf-8"? >
    "" "" < cfComponents:SizeableTitleWindow xmlns:mx = ' http://www.adobe.com/2006/mxml ' xmlns = "*".
    xmlns:cfComponents = "" com.adobe.ColdFusion.Components. * ""
    xmlns:cfDataGrid = "" com.adobe.ColdFusion.Components.DataGrid. * ""
    xmlns: Model = "" com.cfgenerated.Models. * ""
    xmlns:view = "" com.cfgenerated.views.detail.Movie. * ""
    creationComplete = "initComponent () '"
    explicitMaxHeight = "{Application.application.height - 50}" "
    title = "Details".
    showCloseButton = "true".
    Close = "WindowManager.Remove (this); ">


    < mx:Metadata >
    [Event ("change")]
    < / mx:Metadata >

    < mx:Script >
    <! [CDATA]
    Import mx.utils.ObjectUtil;
    Import mx.controls.Alert;
    Import mx.core.Application;
    Import mx.validators.Validator;
    import com.adobe.windowedApplication.managers.WindowManager;
    Import mx.rpc.events.ResultEvent;
    Import mx.rpc.events.FaultEvent;
    com.cfgenerated.models import. *;

    private var _key:Object;

    public function get keys (): Object {}
    return this ._key;
    }

    public function set {key(key:Object):void}
    This ._key = key;
    getItem();
    }

    private function initComponent (): void {}
    this.detailObject = new MovieDetailstblMovies();
    }

    /*
    Calls to the remote and managers call back Server
    */
    Gets an instance of the server item
    public function getItem (): void {}
    If (this ._key! = null) {}
    this.dataManager.getById (this._key);
    }
    else {}
    the key is null, then we create a new object for the operation 'Add '.
    this.detailObject = new MovieDetailstblMovies();
    }
    }

    private void saveItem(item:Object):void {}
    this.dataManager.save (item);
    }

    private void get_result(event:ResultEvent):void {}
    detail of the var: MovieDetailstblMovies = event.result as MovieDetailstblMovies;
    this.detailObject = details;
    }

    []] >
    < / mx:Script >

    < mx:RemoteObject id = "dataManager" showBusyCursor = "true" destination = "ColdFusion".
    source = "MyTest.Components.cfgenerated.MovieDetails.tblMoviesGateway" > "
    < name mx:method = "getById" result = "get_result (event)" / >
    < / mx:RemoteObject >

    <!-create a template using the AS value object class. With this the model mxml version, we can bind the form fields in the object. ->
    < model: MovieDetailstblMovies id = "detailObject" >
    < model: title > {tblMovies_title.text as String} < / template: title >
    < description: model > {tblMovies_description.text as String} < / model: description >
    < model: features > {tblMovies_features.text as String} < / model: features >
    < / template: MovieDetailstblMovies >

    < mx:TabNavigator width = '675' height = '408' >
    < mx:Canvas label = "Tab1" width = "100%" height = "100%" >
    < mx:Label text = "Title" x = "10" y = "10" / >
    < cfComponents:TextInputMask id = text = "{this.detailObject.title"tblMovies_title"}" width = "220" y = "36" x = "10" / > "
    < / mx:Canvas >
    < mx:Canvas label = "Tab2" width = "100%" height = "100%" >
    < cfComponents:TextInputMask id = text = "{this.detailObject.description"tblMovies_description"}" width = "351" height = "138" x = "10" y = "36" / > "
    < mx:Label x = "10" y = "10" text = "Description" / >
    < / mx:Canvas >
    < mx:Canvas label = "Tab 3" width = "100%" height = "100%" >
    < mx:Label text = 'Bonus' x = "10" y = "10" / >
    < cfComponents:TextInputMask id = "tblMovies_features" text = "{this.detailObject.features}" width = "291" height = "218" x = "10" y = "36" / > "
    < / mx:Canvas >
    < / mx:TabNavigator >

    < / cfComponents:SizeableTitleWindow >

    By default the TabNavigator only creates the contents of the first child. Try adding creationPolicy = "all" to the tag TabNavigator.

  • How to connect strings stored in global values of Station or PreUUT?

    Hi all

    I have a Global Station which is persistent across all DUT in a particular PC. I also created a dialog box custom PreUUT to get user input that applies to the UUT to come (I pass this user input to WEAR it by storing it in a Global file). The Global file and overall Station store a string.

    What is a good way to connect to these channels in the ATML report and SQL database?

    Currently, the best solution I can think is:

    1. Create a LabVIEW VI that takes a string as input and passes directly through to the output

    2. Pass the Global Station (or Global file) in the VI of entry

    3. Assign the output VI to Step.Result.ReportText

    This seems rather bulky. Is there a simpler way to achieve this? (i.e. is there a built-in TestStand action that saves a variable directly in the report?)

    In which case it is important, I use TestStand 2013 SP1 and I use the default report templates: tr5_horizontal.xsl for ATML and C:\Program NIUninstaller Instruments\TestStand 2013\Components\Models\TestStandModels\Database\SQL Server create generic Recordset result Tables.sql for SQL.

    Thank you!

    JKSH,

    You can handle this with the functionality of additional results in TestStand, which can be configured in the settings for an existing step, or as a stand-alone step type. We have an example in the series TestStand fundamental example here: http://www.ni.com/product-documentation/52354/en/#toc3 (search for "Adding Custom Data to a Report" article 3)

    I hope it helps and let us know if we can do something else to help!

  • search string and convert whole real or 8-bit 32 bit

    I was hoping to get some advice on how I could search for the following string and convert it to a real number or an integer.  The following data is output as a device ascii characters and I would look for both in each line (starting with 7699,72 seconds in this case) and convert each one to a real number.  Furthermore, I would like to get the integer values in each row (0, but could be 1,2,10,12, etc.) and convert them to an 8-bit integer.  I think that using the template Match followed by analysis of chain would screw that I need, but am not sure how to match in each case. Thank you!!
















    7699,72 0

    7699,74 0

    7699,76 0

    7699,78 0

    What are the characters in the white space between the and the numbers?

    Scan chain can probably not what you want.  Note that in the image space characters include spaces, return carriage, line breaks and tabs.

    Lynn

  • Word report Gen Toolkit - Find String location

    Hey guys,.

    Does anyone know how to search a Word document for a string and the location to which the string was found out?

    The closest I can find is .vi NI_Word.lvclass:Word find & replace (str), which looks like this:

    But it isn't the replacement by using the find command and is not out of any beach to find.

    To elaborate on my final goal:

    I'm trying to add an array of pages to my report. The pages are identical except for specific values in the page, so I'm charging as a second Word document template and inserting this doc in the main model. There are two images on each page, but the only way to insert an image in the report Word uses a bookmark or range. Unfortunately, you can't duplicate bookmarks, so only the generated pages bookmarks if I try to use them. It is here, I have run into problems and am hoping to use a channel known to each page (from the model) to locate the place where I need to insert images.

    That looks like VBA for me.  If so, you can try to make your own function modified as follows:

    • (Quoting Microsoft): to specify a graphic object or other nontext item as the replacement, place this item in the Clipboard and specify "^ c" for ReplaceWith.
    • The entrance to 'Replace' says the number of replacements to perform, including 0 (do not substitute).

    I hope this helps.

    Bob Schor

  • TestStand 4.2 string not found error in the language resource files

    I installed the TestStand 4.2 on two Windows XP computers.  On a machine it worked fine first time. On the other machine, I get the following message if poster in the login box and also in the component models: ' String not found in language resource files. "I tried uninstalling and reinstalling TestStand twice but you still get this error.  This error is preventing me from being able to log in as administrator, so I am unable to use TestStand 4.2. I understand that these language resource files are supplied by the installer, but for some reason, it seems that the machine with the error cannot locate these.

    The only difference between the two XP machines I can find is the location of user profiles.  I note that on versions of TestStand compatible Vista, that TestStand user settings are stored in C:\Documents and Settings\All Users\Documents\National Instruments\TestStand 4.2\Components on XP machines.  On the XP machine with the error all the user profiles are stored in C:\profiles, instead of C:\Documents and Settings.  This is the standard profile used by our company so I am not able to change that. TestStand Setup recognizes this and install for C:\profliles\All Users\Documents\National Instruments\TestStand 4.2\ TestStand user parameters.  Does anyone know if the location of user profiles is important, or if there is another cause of this error?

    Kind regards

    David

    David-

    The cause of the channels being found is probably at the first launch of TS, the language files are not found. The language files contain default values, and these values are kept as actual values during the recording of the configuration files. For example, the default administrator name and the default folders in the Insert palette. I would recommend that you delete the file Users.ini and Templates.ini in the configuration directory and this should address your current behavior. I don't know why the connection appeared a problem because I was able to use the blank password on the user 'String not found in language resource files. If you still have problems with the connection, let us know.

    You remember something unique about how you came to this situation that caused this to happen?

  • Convert resultlist container to a string for report

    Hi all

    Is there a way to convert a resultlist containing a string? I have a ResultList of a separate test that I need to add to the ModifyBatchReportHeader point of the string for my report in ASCII format.

    I tried adding "str (OtherTestResults)", but it adds just periods as if he doesn't know how to access the test data (name test, measure, etc.). Is there a a way to convert it containing a string the TestStand way automagically done at other times?

    Thank you

    Chris

    Hi Chris,

    Unless you said, I did not realize the batch mode.

    For my example, I used the ModifyBatchReportFooter. You can also use the header.

    You just have to play with the HTML tags.

    This example only works with HTML-reports!

    For the generation, it uses the sequence: PutResultsInReport reportgen_html.seq in the template folder - OR

    Hope this helps a little more

    Jürgen

  • Table row of string to string array column

    Perhaps, it's getting late... However, I can't figure out how to convert my string column to a line string.  That said, I read the other articles and none of them are solutions to my problem.  Please see the jpg files to see what I mean.

    So on the front panel, I have a "row" chain control  However, when I save on my .dot (word template) file, it spits out a column of data.  Because this column contains my column headers, I need them to display as a line.  Someone has suggestions on how to "force" it to show in the model as a line instead of a column?

    Never mind the help.  I found a solution to the problem.

    While everyone knows... If you want to change the deminsions of a string array simply use the function "reshape array" in the tool range.  Deminsion size is the number of lines and the bottom is the number of columns.  Just wire to the top and go!

    -------------- to

    -

    -

    -

    -

    -

    -

    -

    and vice versa.

    David

  • How to use the report generation tool to get a list of bookmarks in a Word template

    I'm working on a project where I need to use the report generation tool to fill a fairly long Word template. MS Office report Express VI can have entries for a maximum of 17 bookmarks that is not close enough to what I need to do.

    I wonder if there is a way to use the lower level screws report generation to read the word template and return a list of the names of bookmark in the form of a table 1 d of string. The dialog box that allows you to implement the Express VI has this ability, but I'm not finding a way to scan the document programmatically.

    I'm sure I can't be the first person to encounter this problem and I hope someone out there has found a good solution.

    Found the answer to this one that I was looking for the forums. Apparently, you can do this directly through everything in the VI report tool, but there is a VI in Wordsub.llb do that.

  • BI Publisher Excel Template test fails

    Hi people,

    This forum has been a great source of information. I'm developing a simple report in Excel to the BI Publisher in outstanding balances. A document XML generated and used the worksheet BlankTemplate provided with BI Publisher Desktop in the test report.

    I had followed the steps cited in creating Excel templates. After loading XML data and test (Preview), I encounter the following error. I even formatted the fields appropriate to the number with 2 decimal places. The strings 238098.39, 96026.08 etc are values of debt amount. And also checked for the definition of OPERATIONAL data fields using names Manager. Could you please share your entries for this problem?

    Start Excel Preview

    open only: false

    mTemplate: C:\... ~\AppData\Local\Oracle\BIPublisher\TemplateBuilderforExcel\tmp\tmp\tmp.xls

    mTmpTemplate: C:\... ~\AppData\Local\Oracle\BIPublisher\TemplateBuilderforExcel\tmp/tmp.xls

    java.lang.NumberFormatException: for input string: "238098,39 151744.19 78808,55 96026.08.

    at sun.misc.FloatingDecimal.readJavaFormatString (unknown Source)

    at java.lang.Double.valueOf (unknown Source)

    at oracle.xdo.template.excel.render.BookDataWriter.copyCell(BookDataWriter.java:766)

    at oracle.xdo.template.excel.render.BookDataWriter.finishCell(BookDataWriter.java:699)

    at oracle.xdo.template.excel.render.CellHandler.endElement(CellHandler.java:111)

    at oracle.xdo.template.excel.render.BookDataParser.endElement(BookDataParser.java:203)

    at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:211)

    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1554)

    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:409)

    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:355)

    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:319)

    at oracle.xdo.template.excel.render.BookDataParser.parserXMLDocument(BookDataParser.java:137)

    at oracle.xdo.template.excel.ExcelController.processActionLanguage(ExcelController.java:366)

    at oracle.xdo.template.excel.ExcelController.process(ExcelController.java:240)

    at oracle.xdo.template.ExcelProcessor.process(ExcelProcessor.java:244)

    at ExcelPreview.runXDO (ExcelPreview.java:110)

    at ExcelPreview.main (ExcelPreview.java:87)

    Thank you

    There seems to be a problem with the way in which you saved the output .xml file.

    You must create the group ' XDO_GROUP_? G_CUST_NUMBER?' all fields overlapping. I was able to preview after changes.

  • Page template region posts

    Hey,.

    I wonder if it is possible to add items to the region when you edit a page template? The theme that I have only 8 posts in the region, and I would like to have more.

    I don't know where I have to create the string substitution for this position in the region. I tried to add a simple substitution string to know #REGION_POSITION_XX # then tried to add to the page template, but that has not worked and it should appear as text.

    I need to create a new model? Or can I just add a new position in the region to an existing model?

    Thank you

    J

    Hi Julijan,

    Julijan wrote:

    I wonder if it is possible to add items to the region when you edit a page template? The theme that I have only 8 posts in the region, and I would like to have more.

    I don't know where I have to create the string substitution for this position in the region. I tried to add a simple substitution string to know #REGION_POSITION_XX # then tried to add to the page template, but that has not worked and it should appear as text.

    I need to create a new model? Or can I just add a new position in the region to an existing model?

    You can add positions extra region to the page template. They are strings of built-in substitution APEX and limited to only 8.

    Reference:

    But, Yes, you can copy/create a new template and arrange them as you want in the HTML markup.

    I hope this helps!

    Kind regards

    Kiran

  • list template attributes

    Hi,

    I use the Navigation Menu (side) with like copy the list of theme template 42. I made a copy because I want to add a substitution string (#A03 # etc.)  that I can use as a jQuery selector to add additional functionality (implemented by a dynamic action).


    I added in the #A03 model # all < li > and even < a > tags.

    " For example: < li data-id =" "#A01 #" unable to read the data = "#A02 #" data-icon = "" #IMAGE # " " js-selector = "" #A03 # " " " > < a href =" "#LINK #" title = "#A04 # ' js-selector = "" #A03 # " " > #TEXT_ESC_SC # < /a >


    In the list, I put a value for this attribute defined by the user in the list entries.


    Unfortunately he never shown during execution.


    What I am doing wrong? Or is it not possible (not more)? Or is this a bug?


    Thank you


    Jos


    Hi Jos,

    Change the list of navigation template won't work as you wish. As you have already noticed the markup you put in the templates is completely removed and replaced with different markup.

    Here's what's happening. The side navigation use the new widget to view tree that it's the same tree used in the page designer and in the parts of the tree when the implementation of the tree is set to tree APEX. Universal theme navigation includes some extra css to make the tree look different, but it's really the same tree view widget. The tree view widget is designed to get its data from a structure (data model) JavaScript object tree, it uses this data to generate the necessary DOM structure. By inspecting the DOM, you can see that it is much more complicated that you'd like to put in an APEX model. The tree also has a mode where it can take the simple markup nested list and become the model of data where the DOM tree can be made (on the client). It's this simple tag list that you see in the list of navigation template. This should explain why all the changes to the templates will be lost. If you want to learn more about what is possible in the markup list template you can see the comments from images/libraries/apex/widget.treeView.js (search for "Static tree of markup"). It is worth noting that the new menu widget works the same way, turning a simple markup in a data structure which the menu is generated.

    If you say a bit more on your ultimate goal that I'm able to make suggestions. What did you want to do dynamic action?

    Thank you

    -John

  • String question ScriptUI Panel resources

    I have created a small tool to use to keep my projects organized and want to create a drop down list that will contain the broad list of rendering templates I created. At the present time, for the trial (since I'm new on ExtendScript), I just trying to transmit a pre-created table of a function so that I can build in the code to display rendering models later.

    {

    function joshPipe (thisObj) {}

    function joshPipe_buildUI (thisObj) {}

    var pipePanel = (thisObj instanceof Panel)? thisObj: new window ("palette", "Josh Pipeline", undefined, {resizable: true} ");

    var rsdPath = "workspace has not loaded ';

    var presetList = ["make model 1', 'make model 2', 'make model 3'];

    GetExtension() {} function

    return 'project manager ';

    }

    function getPresets() {}

    List = ['make model 1', 'make model 2', 'make model 3'];

    back list;

    }

    queueTab = ' group {orientation: 'column', alignment: 'fill', alignChildren:------['fill ', ' fill'],} ".

    Group0: group {orientation: 'column', alignChildren: 'fill'------}

    loadPipeButton: button {text: 'Installation work space'}, \

    },\

    Group1: Panel {orientation: 'row', text: 'Render Settings', alignChildren: ["fill", "fill"],------}

    group1_1: group {orientation: 'column', alignChildren: 'left',------}

    fullRadioButton: RadioButton {text: 'Full (delivery)'}, \

    halfRadioButton: RadioButton {text: "half (review)"},

    },\

    group1_2: group {orientation: 'column', alignment: 'just'------}

    renderTemplateDD: DropDownList {properties: {items: ['model 1', '2 ', 'model 3']}}, \

    },\

    },\

    Group 2: group {orientation: 'column', alignChildren: 'fill'------}

    rsdString: StaticText {multiline: 'true', text: ' "+ rsdPath +" "},

    renderButton: button {text: "Making Setup",},

    },\

    }}";

    pipePanel.grp = pipePanel.add (queueTab);

    var loadPipeCtrl = pipePanel.grp.group0.loadPipeButton;

    var fullRenderSelCtrl = pipePanel.grp.group1.group1_1.fullRadioButton;

    var halfRenderSelCtrl = pipePanel.grp.group1.group1_1.halfRadioButton;

    var renderTemplateDDCtrl = pipePanel.grp.group1.group1_2.renderTemplateDD;

    var rsdStringCtrl = pipePanel.grp.group2.rsdString;

    var renderButtonCtrl = pipePanel.grp.group2.renderButton;

    loadPipeCtrl.onClick = function() {}

    rsdPath = GetExtension();

    rsdStringCtrl.text = rsdPath;

    renderTemplateDDCtrl.item [0] = 'yo momma';

    }

    renderButtonCtrl.onClick = function() {}

    rsdStringCtrl.text = 'unloaded project. "

    }

    Default values

    pipePanel.grp.group1.group1_2.renderTemplateDD.selection = 0;

    size of the window

    pipePanel.layout.layout (true);

    pipePanel.grp.minimumSize = pipePanel.grp.size;

    resize panels

    pipePanel.layout.resize ();

    pipePanel.onResizing = pipePanel.onResize = function() {this.layout.resize ()};

    Return pipePanel;     Returns the final result of pipePanel

    }

    var pipeScriptPal = joshPipe_buildUI (thisObj);

    If ((pipeScriptPal! = null) & & (pipeScriptPal instanceof window)) {}

    pipeScriptPal.center ();

    pipeScriptPal.show ();

    }

    }

    joshPipe (this);

    }

    The problem is that want this tool to be a sign that I can anchor. Near as I can tell (using the Extendscript of David Torno series as my guide) I have to read in the user interface and its options initially as a string resource, and I cannot understand how to operate. Any suggestions?

    It dawned on me that I needed to actually get a string with a different function, rather than a table.

    var presetList = ["make model 1', 'make model 2", "make model 3", "make model 4"];

    var presetString = getPresets();

    function getPresets() {}

    list = presetList;

    tempString = "["; ".

    for (var i = 0; i)< list.length;="">

    tempString = tempString.concat("'",list[i],"'");

    If (i<>

    tempString = tempString.concat(",");

    }

    }

    tempString = tempString.concat("]");

    Return tempString;

    }

    ...

    group1_2: group {orientation: 'column', alignment: 'just'------}

    renderTemplateDD: DropDownList {properties: {elements: "+ presetString +"}},

Maybe you are looking for