Creating a line chart PDF-report generator model with APEX

Hi all

I would like to create a PDF report with a chart using Apex and the generator plugin model for Word.

My Select statement, which I use as the report (shared components) query returns the data in the following way:

Date Description amount

----                 -----                -----

01.01.2014 has 1.2

02.01.2014 has 1.3

03.01.2014 has 0.5

01.01.2014 B 0.3

02.01.2014 B 4.5

03.01.2014 B 4.8

The XML document obtained, which creates the APEX, is:

<? XML version = "1.0" encoding = "UTF-8"? >

< DOCUMENT >

< DATE > 08/10/2014 < / DATE >

ADMIN < user_name > < / username >

< > 102 APP_ID < / APP_ID >

< APP_NAME > Oracle APEX AppBuilder < / APP_NAME >

< /Title > < TITLE > graph

< REGION ID = "0" >

rowset <>

< ROW >

< date > < / Date >

< DESCRIPTION > < / DESCRIPTION >

< value > < / value >

< / ROW >

< / LINES >

< / REGION >

< / DOCUMENT >

What I would like to have is a line graph with:

  • Date on the x-axis
  • Length of value on axis y
  • for each Description of Type single line

The names and numbers of the discription varies a lot (as well as the values that they are related to the Description and date).

What I tried:

A lot, trying to make this work for 4 weeks, on and outside.

Tried to edit the chart XML in Word, edit the SQL query, pivot the result SQL to get the Descriptions as columns and of course a lot of Googling.

Please let me know if you have any advice.

Thanks in advance,

Thomas

Oracle DB: 11g

ApEx Version: 4.2.5.00.08

Last Oracle BI Builder Plugin for Word template

Finally found my Solution. What I was looking for is:

Tags: Database

Similar Questions

  • Creating a line chart series multi with different data providers

    I have 3 providers of data of the same structure that is ArrayCollection of data collection and that you want to use to create a line chart multiseriate. I don't have just 1 dataProvider that can be used but 3 different data providers of the same structure I want to use each different series.

    [Bindable] private var orangeSales: ArrayCollection = collection

    new ArrayCollection collection)

    [{sale: 101000, month: new Date (January 1, 2008 "")},]

    {sale: 960000, month: new Date (February 1, 2008 ')},

    {sale: 475000, month: new Date (March 1, 2008 ')},

    {sale: 425000, month: new Date (April 1, 2008 "")}

    ] );

    [Bindable] private var appleSales: ArrayCollection = collection

    new ArrayCollection collection)

    [{Sales: 991000, month: new Date (January 1, 2008 "")},]

    {sale: 140000, month: new Date (February 1, 2008 ')},

    {sale: 565000, month: new Date (March 1, 2008 ')},

    {sale: 255000, month: new Date (April 1, 2008 "")}

    ] );

    [Bindable] private var bananaSales: ArrayCollection = collection

    new ArrayCollection collection)

    [{sale: 891000, month: new Date (January 1, 2008 "")},]

    {sale: 147560, month: new Date (February 1, 2008 ')},

    {sale: 295000, month: new Date (March 1, 2008 ')},

    {sale: 574000, month: new Date (April 1, 2008 "")}

    ] );

    I want to create a line chart with orangeSales, appleSales and bananaSales as three different lines on the graph for different specified dates.

    < mx:ColumnChart showDataTips = "true" >

    < mx:horizontalAxis >

    < mx:CategoryAxis

    dataProvider = "{orangeSales}".

    categoryField = 'months '.

    / >

    < / mx:horizontalAxis >

    < mx:series >

    < mx:LineSeries displayName = "OrangeSales" yField = "sale" xField = "month" dataProvider = "{orangeSales}" / >

    < mx:LineSeries displayName = "AppleSales" yField = "sale" xField = "month" dataProvider = "{appleSales}" / >

    < mx:LineSeries displayName = "BananaSales" yField = "sale" xField = "month" dataProvider = "{bananaSales}" / >

    < / mx:series >

    < / mx:ColumnChart >

    Help, please!

    Sorry for the confusion. In fact I do something wrong, such as using ColumnChart to display a line chart or something like that.

    Now, I realized that a multi series line graph can be built by the presence of a different data provider for each of the LineSeries object.

    If the code below would create a multi series line graph:

    [Bindable] private var orangeSales: ArrayCollection = collection

    new ArrayCollection collection)

    [{sale: 101000, month: new Date (January 1, 2008 "")},]

    {sale: 960000, month: new Date (February 1, 2008 ')},

    {sale: 475000, month: new Date (March 1, 2008 ')},

    {sale: 425000, month: new Date (April 1, 2008 "")}

    ] );

    [Bindable] private var appleSales: ArrayCollection = collection

    new ArrayCollection collection)

    [{Sales: 991000, month: new Date (January 1, 2008 "")},]

    {sale: 140000, month: new Date (February 1, 2008 ')},

    {sale: 565000, month: new Date (March 1, 2008 ')},

    {sale: 255000, month: new Date (April 1, 2008 "")}

    ] );

    [Bindable] private var bananaSales: ArrayCollection = collection

    new ArrayCollection collection)

    [{sale: 891000, month: new Date (January 1, 2008 "")},]

    {sale: 147560, month: new Date (February 1, 2008 ')},

    {sale: 295000, month: new Date (March 1, 2008 ')},

    {sale: 574000, month: new Date (April 1, 2008 "")}

    ] );

    I want to create a line chart with orangeSales, appleSales and bananaSales as three different lines on the graph for different specified dates.

    <>

    dataProvider = "{orangeSales}".

    categoryField = 'months '.

    />

  • Replace the generated model with another Rogue page.

    I have a single page form, of which about half is static.  The other half must change its fields based on a few boxes of radio (e.g. Select a box and some fields and images are displayed.  Select the other radio and images and the various fields are displayed).

    I was thinking about spawning that just overlap the model page, but there is the problem of removing spawning when you select the other radio.

    I guess I could create a few different models, each a full page that I can hide / display the radio boxes, but I prefer to do it in a similar way to the previous method.

    Any suggestions?

    Here is a link to an example that illustrates the basic approach, I do not speak of: https://acrobat.com/#d=It35dD4zaX5QM--Pv36F-Q

  • Help with the line chart

    I created a line chart in Illustrator CS3.  Everything is great, except that I need to change the colors of the lines.  There are two lines total.  I can't select just one line to change the color.  When I use the white arrow selection tool he will choose only a point-by-point and not the whole line.

    If I use the black arrow selection tool then selects all of the chart.

    Thanks a lot for any help on this!

    It's fine even if you have a selected point you can change the color of the line, make sure you change the color of the outline, not the color of the file.

    If you want to be treated and have all selected Bézier points (or select all lines in a group), hold the option key and click with the hollow tool to select all Bézier points. Option click again to select multiple levels within the group. The result will be the same whether in the postscript file produced Illustrator.

  • How to generate an output PDF report when the layout template is an Excel file in the editor of BI 11.1.1.7

    That's what I did...

    1. create the new report

    2 create a report using an existing data model (browse and choose a data model)

    3. How do you create your report? (click used report editor)

    4. click on finished (and then saved the report)

    5. then he asked me to create the page layout (I chose to download or generate a layout and then traveled to a downloaded my model with XDO_ * the columns of the excel data model mappings)

    Template file = model Excel, locale = English (United States)

    5. click on Upload

    6. then click view the report top-right, which has opened my file name of "my_report_layoutname.xls" with sheet report 1 (OPE all mapped very well) and a sheet of xdo_metadata.

    I just wanted to step 6 is a sheet 1 pdf report.    How do I do that?  Could not find the place where I can clarify that.

    Mr. Jamal

    Layouts Excel generate only one exit Excel. (CSV takes no account of the provision is therefore an option for any layout.)

    You use RTF or PDF or page Template Builder (XPT) layouts to generate PDFS.

    The LOV to find output formats by modifying the report and selecting a list.

    The table has a column to the output formats, it is controlled by the format of the presentation that you have built.

    Kevin

  • Calibration Executive is unable to generate pdf reports

    I Calibration Executive 3.4.1 and he ceased to generate a pdf, word, or excel reports. It always generates the text and html reports. I reinstalled cal exec and made sure he like all current updates. The only thing we have changed recently installed DAQmx-9, 4. I drove back to DAQmx - 9.3 that hasn't helped. If the default ratio is defined in pdf format, no report is generated. It will not open as any report earlier. It gives an error message saying the path is incorrect file is corrupt. The path is correct and the old pdf open just fine with Adobe (version 8 standard). Someone knows something similar or has any advice about what to watch next. Thanks for any help!

    Solution: the latest revision of JAVA has been altered causing the error. Remove and reinstall a clean version of JAVA and fixed the problem.

  • Series name is not in the series of the line chart that is created dynamically

    I created dynamically a chart series. This works well but the passage of the mouse on the data points shows only the x and the values, but not the name of the series, the legend shows a series of color boxes to match the lines, but no labels displayed for each colored area. Here is my code:

    linechart2.series = [];

    for(a = 0; a < allSettingsArray.length; a ++) {}

    CREATE SEVERAL VERTICAL AXIS

    var verticalAxis1:LinearAxis = new LinearAxis();

    var verticalAxisRenderer1:AxisRenderer = new AxisRenderer();

    verticalAxisRenderer1.axis = verticalAxis1;

    series: var LineSeries = new LineSeries();

    series.verticalAxis = verticalAxis1;

    series.yField = allSettingsArray [a];

    linechart2.series.push (series);

    }

    Each data point is defined in a loop like:

    temp ['gameNum'] = String (a);

    Str = String(attrVal[0]);

    Temp [str] = attrVal [1];

    Then added in the ArrayCollection collection:

    resultArrayColl.addItem (temp);

    Any suggestions, what I'm missing here?

    Mention displayName for the lineSeries.

    --

    TANU

  • Right side of the text in the report are cut during report generated in PDF format

    Right side of the text in the report are cut during report generated in PDF format.
    In the report layout text is FLUSH JUSTIFIED. Text block is the same size as the outer frame.
    When the report is generated in PDF format, text is only JUSTIFIED to the LEFT and to the right looks like cut. Text beyond frame is invisible.
    But when I text selection in the PDF report that all the text is selected and I can copy and paste this text into any editor.
    What is a cause of this error and how can I solve this problem? In my view, there is error in report engine.
    Report Server Version: 10.1.2.3.0

    See photo. [http://1.bp.blogspot.com/_tSW8j23gT08/TKXn84zyRMI/AAAAAAAAAGE/KkNibanTSao/s1600/report_error.JPG]

    Don't know what your operating system and it could make a difference. If you're on Unix/Linux, try changing the uifont.ali file. (make a backup first!).

    Here is an example of the changes that I made to correct a similar problem:

    # Mapping of MS Windows

    #Arial = helvetica
    # 'Courier New' = courier
    # "Times New Roman" = times
    #Modern = helvetica
    #"MS Sans Serif" = helvetica
    # "MS Serif" = times
    # "Small fonts" = helvetica

    #Arial = 'arial.ttf '.
    Arial = helvetica.8
    "Courier New" = courier.9
    Arial.12 = helvetica.8
    #helvetica.12.Bold = helvetica.9
    #ArilMT is helvetica.9
    # "Albertus Extra Bold" = helvetica.9

    [PDF]

    #Arial = courier
    #arial = courier

    # Support for the languages of the far East:

    #itcadvantgardegothic = arial
    # "ITC front guard Gothic" = arial
    #itcadvantgardegothic = arial
    # "ITC Avant Garde Gothic" = Arial
    # changed to courier 06-25-2009
    itcadvantgardegothic = Helvetica
    #itcadvantgardegothic = arial
    "ITC Avant Garde Gothic" = Helvetica.11

    # Required
    #itcadvantgardegothic = arial
    # "ITC Avant Garde Gothic" = Arial

    [PDF:Subset]

    #times = "times.ttf".
    #courier = "cour.ttf.
    #helvetica = 'arial.ttf '.
    #arial = 'arial.ttf '.
    #helvetica = 'arial.ttf '.
    # 'Avant Garde' = 'arial.ttf '.
    #arial = 'arial.ttf '.
    #helvetica = 'arial.ttf '.
    #arial = 'arial.ttf '.
    #itcadvantgardegothic = 'arial.ttf '.
    #helvetica = 'arial.ttf '.
    #courier = "cour.ttf.

  • Oracle-reports of generated pdf-report on a BLOB storage

    Hey ppl,

    I have this requirement:

    I essentially generate a report of Jdev using a remote servlet call to reports of the oracle, which generates the PDF for me very carefully and store it locally. The problem is immediately put this on the DB as a BLOB once the report is generated. I know how to store the pdf as a BLOB on the DB. I know how to make the call to oracle-reports and generate my pdf. What I don't know, first is sequentially generate the local pdf report and that which was generated once continue to store it on my DB.

    I want it to be done in the context of a single request. As in the entire process must be completed by a cycle. I don't want to keep some kind of end of day procedure that inserts in the comics at the end of the day.

    As soon as the report was requested by the user, I want the PDF (which is generated by the reports) will also be stored on the DB.

    My problem (which I'm sorry has been repeated already 2wice above) is that I have basically lose control once redirected through the servlet to the call of the report. There is no way I can load Jdev, side reports, that the pdf was generated and now must be kept on the Pb, because I lost the session context by redirecting to a different servlet.

    Any help would be GREATLY appreciated.

    See you soon
    K

    Hello

    its a while I ago one looked at Oracle reports, however, I think that the mechanism of the event is quite complex to achieve

    I want it to be done in the context of a single request.

    Which means that if reports Oracle locks, the user session follows.

    As in the entire process must be completed by a cycle.

    Unfortunately, you can't control how long reports run, which means that there is no sense in the judgment of the lifecycle of page for this

    I don't want to keep some kind of end of day procedure that inserts in the comics at the end of the day.

    Very well, but I remember there is a complete riding contest in reports which would allow you to have the report server Oracle trigger download

    So, I think, the architecture, so that I would go is:

    -user request report
    -report generates PDF output
    -reports will be mailed to DB
    -reports_processing table contains the Userid and reports ID more Pavilion update when report is done
    -If you use JSF, you can use af:poll to check frequently that the report is finished.

    This here can help: http://www.oracle.com/technology/documentation/reports.html

    Frank

  • Model RTF BI Publisher under the XSL - FO with APEX listener PDF printing

    Hello, all,.


    I tried to use both the Oracle APEX the Apache FOP listener options in the instance of print settings to generate a PDF report.  The model I use is a RTF model created with the plugin from the editor of BI in Microsoft Word, and it does not work with the editor of BI setting.  I understand that the earpiece of the APEX and Apache FOP will not work with this RTF, but when I export the model to XSL - FO the word Pub BI plugin, it does not for the engines of the listener or FOP.  I'm doing something wrong here?


    The PDF file contains a single line, "java.lang.RuntimeException: unsupported XSL element ' '. http://www.w3.org/1999/XSL/Transform: for each group - '".


    Here is my card...

    Oracle Application Express 4.2 (4.2.3.00.08)

    Oracle APEX earphone 2 (2.0.5.287.04.29)

    Database Oracle Express Edition 11 g (11.2.0.2)

    Oracle Linux 6.3 (Santiago)

    Oracle GlassFish Server Open Source Edition 4 (build 89), FOP has been deployed here

    I am relatively new to XSL, so I could really use some help.  What is the code XSL would you need to see to get an idea of what's going on?

    Thank you

    -Seth.

    Export from Word BI Publisher Plugin does NOT produce the standard style file the the implementation of the FOP APEX uses...  You pretty much need either find a stylesheet xml editor or manually code the file to meet the requirements of FOP used in the earphone or the Fop itself...

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

  • Create a XML page OFA report

    Hi all

    I have an obligation to create a PDF report from a page of the OFA. Since the code below, I was able to print the XML with values.

    I know I should map this XML to RTF by creating the defiition given by the responsibility of XML editor.


    I think I understand:

    1 generate the XML from Conttroller file

    2. load the XML to RTF and map fields

    3. register as a data definition and RTF

    4 output seen

    MY QUESTION IS: If I load the values from the below XML to RTF and the registry in the definition of data, I will get the same values whenever it is just. From my understanding, if the data changes in the report, there should be a way that will directly send the xml code generated by the controller to the RTF (without step2)



    I REALLY THINK THAT IT ME MISSING SOMETHING HERE. PLEASE HELP ME


    public void processRequest (pageContext, OAPageContext,
    {OAWebBean webBean)
    super.processRequest (pageContext, webBean);

    Am = OAApplicationModule
    (OAApplicationModule) pageContext.getApplicationModule (webBean);
    OAViewObject vo = (OAViewObject) am.findViewObject ("colorVO1");

    ByteArrayOutputStream OutputStream = new ByteArrayOutputStream();
    (XMLNode) vo.writeXML(4,"")
    try {}
    ((XMLNode) vo.writeXML (4, XMLInterface.XML_OPT_ALL_ROWS)) .print (outputStream);
    } catch (IOException e) {}
    TODO
    throw new OAException ("the value of VO is" + vo,)
    OAException.CONFIRMATION);
    }
    System.out.println (OutputStream.ToString ());



    Generated XML code:

    < colorVOEx3Row >
    < username > CBA < / username >
    < username > 33102 < / UserId >
    < > 27241 CreatedBy < / CreatedBy >
    < Clr1 > 0 < / Clr1 >
    < / colorVOEx3Row >
    < colorVOEx3Row >
    deg < user name > < / username >
    < username > 33604 < / UserId >
    < > 1135 CreatedBy < / CreatedBy >
    < Clr1 > 0 < / Clr1 >
    < / colorVOEx3Row >
    < colorVOEx3Row >
    < username > * mno < / username >
    < username > 33643 < / UserId >
    < > 24587 CreatedBy < / CreatedBy >
    < Clr1 > 2 < / Clr1 >
    < / colorVOEx3Row >
    < / colorVOEx3


    Please let me know, what should me my next steps to generate the report. If I load the above XML to RTF, my data in the page irresepscive, I always get the rows.i 3... e... (abc, def, * mno).

    I hope I am clear.

    In this approach, we need generate the XML code example to create the RTF (State presentation) model.

    Now in the RESP to XML editor.
    1. create a data definition by mentioning enforcement (e.g., human resources, etc.)
    2. create a model of type "RTF".
    3. download already created the file .rtf (presentation of the State) as a template file

    When you launch OAF page, the output XML data from VO will be generated. These data XML appears in the report, based on the layout of the .rtf file.

    -Anand

  • XLS-models with BI Publisher using and download the reports with APEX

    Hello

    I already create PDF reports with RTF Templates. In the APEX, I create a button and a process of "Download" to get the PDF-reports the BI Publisher. ". We use version 11.1.7.

    Now I try the same thing with XLS-Templates. I create the XLS model in the editor of BI and where it works very well. Now I need also an APEX-"Download" - Process to download the XLS reports to the client. The method already used doesn't work for RTF models.

    Kind regards

    Mark

    Hello

    I found here, the format has value "excel", not "xls"!

    http://docs.Oracle.com/CD/E28280_01/doc.1111/e26693/ibr_config.htm#WCCAA2062

    Now it works like a charm!

    Kind regards

    Mark

  • Is there a way to create a table that creates new "lines" when enter is pressed?

    Hi all

    I am trying to create a pdf file for my company to regularly use the packing list. Generally, this packing list is generated by our software, but our software was not designed primarily for delivery and purchase and lack of functionality. With complex or revised orders, we must create our own documents and I wanted to create something that could be used as a standard that reflects what the software has generated.

    Thus, the document itself. Packing lists (or invoices or purchase orders, according to what is required at this time) have a number of elements arranged in a table with properties. These properties is the name of the item, description, how many rooms, the price, the size of the container, etc. Simple packing lists have three or four points that all fit on one page but larger orders have elements which extend into several pages, ending with a 'total' for all areas.

    My question is, is - it possible ot create a table in Adobe Acrobat, DC format that allows me to create a dynamic array that can be extended (with additional lines) when necessary on another page or several pages? Table if it makes a difference, each page would have a header and a footer (information for the transport and logistics) for this 'dynamic' table would be sandwiched between these two areas.

    Thank you

    EDIT: I've been looking around and, I hope that Adobe Acrobat DC has this feature, but it seems the best way to acchieve that is via Adobe Live Cycle Designer, which fortunately, my supervisor has a copy. This youtube video explains, in an overview, exactly what I want to do and how to do it through this program. Perhaps that will help someone in the future who also Live Cycle:

    Creating robust dynamic forms in Adobe LiveCycle® - YouTube

    As you have found, it's more a characteristic of the LCD and not Acrobat. It is possible to add new fields in Acrobat, but there is no "dynamic table". It must be done manually.

    Another option is to create a template page with additional fields and then reproduce a copy of it when necessary.

  • What script to create a model with a user interface panel

    Hello guys,.

    So I am new to scripting and javascript and I'm trying to keep it simple. I'm a VJ and want to create a script where I get a 'BPM' and a 'beat' lengh and it generate me a comp with the right length and * a layer with a marker ofr each beat.

    I was able to create this script, but I try to make it look a little better with integration of the user interface for AE I wasn't able to make it work right. If anyone can help me or give me some advice. I think that I'm not good with the expression "addComp" in the buildUI function.

    I copy everythin because it is long but you'll be understaind the main idea. My question is how to that the entry in my Advanced UI instead of "the guest".

    Here is my first code that does the job:

    Elements Var Set

    var name = prompt ("membership name");

    var BPM = prompt ("your BPM");

    If (isNaN (BPM)) {}

    Alert ("you must give the model a value");

    }

    Var prompt = beats ("how many times");

    If (isNaN (Beats)) {}

    Alert ("you must give the model a value");

    }

    frameRate var = prompt ("your fps");

    If (isNaN (frameRate)) {}

    Alert ("you must give the model a value");

    }

    term var = (60 / BPM * bat); Automatically generated

    var beat = (60 / BPM);

    Part of creation

    app.project.items.addComp (name, 1920, 1080, 1, duration, frameRate); Create the model with custom Lengh

    App.Project.Item (01).layers.addSolid ([0,0,0], "BG", 1920, 1080, 1, length); Create solid BG

    var firstLayer = app.project.item (1) .layer (1);

    firstLayer.label = 16;

    App.Project.Item (01).layers.addSolid ([0,0,0], "FX", 1920, 1080, 1, length); Create sound FX

    App.Project.Item (01).layers.addNull (Duration); Create the Null object

    var firstLayer = app.project.item (1) .layer (1); Rename the Null object

    firstLayer.enabled = false;

    firstLayer.name = "Beats";

    firstLayer.label = 0;

    Place a marker on the 64 first beat

    var myMarker = new MarkerValue("0");

    firstLayer.property("Marker").setValueAtTime (beat * 0, myMarker);

    Every beat on opacity-keys

    myProperty = firstLayer.opacity;

    myProperty.setValueAtTime (beat * 0, 0);


    For reference, I'm going to place code Dan here and use line numbers, as I explained.

    Fig. A

    var name = prompt("Composition name");
    var BPM =prompt("Your BPM");
    if (isNaN(BPM)) {
        alert("You must give the comp a value");
      }
    
    var Beats = prompt("How Many Beat");
    if (isNaN(Beats)) {
        alert("You must give the comp a value");
        }
    
    var frameRate = prompt("Your fps");
    if (isNaN(frameRate)) {
        alert("You must give the comp a value");
        }
    
    var duration = ( 60  / BPM * Beats ); //Auto Generated
    var beat = (60  / BPM);
    //Creation Part
    var myComp = app.project.items.addComp(name, 1920, 1080, 1, duration, frameRate); // Create Comp with Custom Lengh
    var firstLayer = myComp.layers.addSolid([0,0,0], "BG", 1920, 1080, 1, duration); // Create BG Solid
    firstLayer.label = 16;
    myComp.layers.addSolid([0,0,0], "FX", 1920, 1080, 1, duration); // Create FX Solid
    firstLayer = myComp.layers.addNull(duration); // Create Null Object
    firstLayer.enabled = false;
    firstLayer.name = "Beats";
    firstLayer.label = 0;
    // Place a marker on the 64 first beat
    var myMarker = new MarkerValue("0");
    firstLayer.property("Marker").setValueAtTime(beat*0, myMarker);
    // Key every Beat on opacity
    var myProperty = firstLayer.opacity;
    myProperty.setValueAtTime(beat*0, 0);
    

    OK, so for your configuration, looks like you're striking four data sets. You have the model name (fig.) At line 1), BPM (lines 2-5 of Fig. (A), (lines 7-10 of Fig. rhythms (A) and the FPS (lines 12 to 15 of Fig. (A). then it comes to the UI, you can change what I had posted to...

    res = "group{orientation:'column', alignment:['fill', 'fill'], alignChildren:['fill', 'fill'],\
      myCompName: EditText{text:'Enter comp name'},\
      myBPM: EditText{text:'Enter BPM'},\
      myBeats: EditText{text:'Enter beats'},\
      myFPS: DropDownList{properties:{items:['23.976', '24', '29.97', '30', '59.97', '60']}},\
      createComp: Button{text:'Create comp'},\
    }"
    

    This will give you all entries in four data for the user interface. It is preferable to assign each control to a new variable for use in your script.

    // Control Variables
      var compName = myPanel.grp.myCompName;
      var myBPM = myPanel.grp.myBPM;
      var myBeats = myPanel.grp.myBeats;
      var fps = myPanel.grp.myFPS;
      var createComp = myPanel.grp.createComp;
    

    Once you have these variables you can then start the default implementation as appropriate. in this case, the drop-down list should be a starting point for it's selection, so that you can say to use the first default entry as follows.

    //Defaults
      fps.selection = 0;
    

    Now, you can configure your onClick for button createComp feature. This will contain to working part of the Dan code that treats everything (lines 17-33 of Fig. (A). I've added a few lines of options above this (lines B Fig. 1-7) in the below code just to match the variable names so you wouldn't need to change the code.

    Fig. B

    //onClick setups
      createComp.onClick = function(){
      //Gather user entered values
      var name = compName.text;
      var BPM = Number(myBPM.text);
      var Beats = Number(myBeats.text);
      var frameRate = fps.selection.text;
    
      var duration = ( 60  / BPM * Beats );
      var beat = (60  / BPM);
      //Creation Part
      var myComp = app.project.items.addComp(name, 1920, 1080, 1, duration, frameRate);
      var firstLayer = myComp.layers.addSolid([0,0,0], "BG", 1920, 1080, 1, duration);
      firstLayer.label = 16;
      myComp.layers.addSolid([0,0,0], "FX", 1920, 1080, 1, duration);
      firstLayer = myComp.layers.addNull(duration);
      firstLayer.enabled = false;
      firstLayer.name = "Beats";
      firstLayer.label = 0;
      // Place a marker on the 64 first beat
      var myMarker = new MarkerValue("0");
      firstLayer.property("Marker").setValueAtTime(beat*0, myMarker);
      // Key every Beat on opacity
      var myProperty = firstLayer.opacity;
      myProperty.setValueAtTime(beat*0, 0);
      }
    

    Then line 2 Fig. b starts the call onClick for button and assigns a function. Within the function, we run the process. Fig. B Line 4 seizes the compName edit text attribute of the text control, using the Number() function convert us this text to a number for use online B Fig. 9 and 10 and B Fig. 5 line gets the text attribute of the text control edit BPM. Goes same for line 6 of the Fig. B and the beats variable. For line B Fig. 7, a drop-down list requires calling his selection of the attribute, then it is text attribute to get the actual string. The drop was more logical for FPS due to the standard rates that exist. This list can be changed of course to your liking. Now, there is no safety net as I like to call for the modification of the text controls to make sure text is not entered when you need a number and vice versa. It would be something of can check after line 7, Fig. B before trying to run the code in process (Fig. B lines 9-25). I hope that it will be easy enough for you to understand.

    If the script is as follows.

    {
    function myScript(thisObj) {
      function myScript_buildUI(thisObj) {
      var myPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette", "My Panel Name", [0, 0, 300, 300]);
    
      res="group{orientation:'column', alignment:['fill', 'fill'], alignChildren:['fill', 'fill'],\
      myCompName: EditText{text:'Enter comp name'},\
      myBPM: EditText{text:'Enter BPM'},\
      myBeats: EditText{text:'Enter beats'},\
      myFPS: DropDownList{properties:{items:['23.976', '24', '29.97', '30', '59.97', '60']}},\
      createComp: Button{text:'Create comp'},\
      }"
    
      //Add resource string to panel
      myPanel.grp = myPanel.add(res);
    
      // Control Variables
      var compName = myPanel.grp.myCompName;
      var myBPM = myPanel.grp.myBPM;
      var myBeats = myPanel.grp.myBeats;
      var fps = myPanel.grp.myFPS;
      var createComp = myPanel.grp.createComp;
    
      //Defaults
      fps.selection = 0;
    
      //onClick setups
      createComp.onClick = function(){
      //Gather user entered values
      var name = compName.text;
      var BPM = Number(myBPM.text);
      var Beats = Number(myBeats.text);
      var frameRate = fps.selection.text;
    
      var duration = ( 60  / BPM * Beats );
      var beat = (60  / BPM);
    
      //Creation Part
      var myComp = app.project.items.addComp(name, 1920, 1080, 1, duration, frameRate);
      var firstLayer = myComp.layers.addSolid([0,0,0], "BG", 1920, 1080, 1, duration);
      firstLayer.label = 16;
      myComp.layers.addSolid([0,0,0], "FX", 1920, 1080, 1, duration);
      firstLayer = myComp.layers.addNull(duration);
      firstLayer.enabled = false;
      firstLayer.name = "Beats";
      firstLayer.label = 0;
    
      // Place a marker on the 64 first beat
      var myMarker = new MarkerValue("0");
      firstLayer.property("Marker").setValueAtTime(beat*0, myMarker);
      // Key every Beat on opacity
      var myProperty = firstLayer.opacity;
      myProperty.setValueAtTime(beat*0, 0);
      }
    
      //Setup panel sizing and make panel resizable
      myPanel.layout.layout(true);
      myPanel.grp.minimumSize = myPanel.grp.size;
      myPanel.layout.resize();
      myPanel.onResizing = myPanel.onResize = function () {this.layout.resize();}
    
      return myPanel;
      }
    
      var myScriptPal = myScript_buildUI(thisObj);
    
      if ((myScriptPal != null) && (myScriptPal instanceof Window)) {
      myScriptPal.center();
      myScriptPal.show();
      }
      }
    
      myScript(this);
    }
    
  • ViewPlanner 3.0 device: Questions generation PDF report

    Hello

    I have problems with the Scheduler 3.0 display where it is not automatically generate the PDF report after a race.
    The attached viewplanner.log file shows a series of 16 desktops VDI.  Desktop download it results and the PDF file
    creation seems to start but get the following error:

    2013-08-28 12:18:58, 179 INFO Running query: select distinct
    event_name, AVG (event_latency) from remoteresults where event_name dislikes
    '% rtt' and event_name dislike 'Total-%' and (info_FK < = 16 and info_FK > = 1) event_name group

    Exception in thread Thread-37: Traceback (most recent call modified): file
    "/ usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner

    Self.Run)

    File "/ usr/lib/python2.6/threading.py", line 736, running self.function (* self.args, * self.kwargs)

    File "/ build/mts/release/bora-1229598/performance/viewplanner/Harness/root/listener.py", line 79, completeRunVMs

    File "/ build/mts/release/bora-1229598/performance/viewplanner/Harness/root/shared_data.py", line 1191, in generatePDFReport

    File "/ build/mts/release/bora-1229598/performance/viewplanner/Harness/root/PDFgen.py", line 1242, term

    File "/ build/mts/release/bora-1229598/performance/viewplanner/Harness/root/PDFgen.py", line 541 in Sec4

    UnboundLocalError: local 'MaxIdx' variable referenced before assignment

    Domain controller: Windows Server 2003 x 64

    Broker: Horizon of VMware View 5.2

    Clients: Windows XP SP3

    Computers: Windows 7 SP1 x 64

    Any help would be appreciated.

    Thank you

    Richard

    There has been some problems with the PDFgen script for some configurations. I have attached a new script of reports that you can use (Please replace it in/root/ViewPlanner directory of the harness).

    Python $ PDFgen.pyc '-time-of-the-start test.

    If you still have questions, please let us know.

Maybe you are looking for

  • that previously played games without their cd now won't play without them

    I tried to solve this problem in a variety of sources - none were official Vista or any what Windows sites - but these just opened more problems.I saw info on how SP2 could make changes in the authorized functions but it was installed November 25, bu

  • Google Maps API v2

    Hello! Google has just released its new Google Maps API, I wondered if it was compatible with Blackberry 10. Thank you

  • identify the connected VPN

    Hello, y at - it a command which can show the number of connections on the pix firewall VPN, ip addresses, he rented to these connections and ip source address. As the 'show ssh session' will do. Thank you D.

  • OfficeJet G510g all in a commissioning

    I recently changed the print cartridge black on the Officejet 4500 G510g printer model. Generally, a message appears to align the print cartridge. This time I noticed a message flashing on the lcd saying Turn Off and then back on. I tried to do, but

  • Problems with canon t6s and lightroom 4

    I have lightroom 4 and I just bought a canon t6s and when I transfer all my raw photos it says that is not supported and I can't see my pictures, but I can see in the photo of my Mac app... What should I do?