Data-driven GUI construction at runtime

I am designing a patient simulation program for a veterinary college. I need to have a GUI that is built at runtime from data tables for each patient. One patient may have 3 pages of laboratory data and would need three tabbed panes while another may have six pages and need six panes. In addition, the laboratory test data contained on each pane will vary in test numbers and test types from patient to patient, and must be loaded and displayed at runtime as well. I am assuming there is a design pattern for this type of problem. Could someone direct me to any books, resources, (commercial or otherwise) that I can use to background myself? Thank you in advance. Rick

This can be done using a model that has a collection of data. You basically loop through all the elements in that collection and create textfields, etc, for each item.
You want to organize the builder methods so they are composed, like first you create a tab for each page of data, then in each tab, you create a box for each medical condition, and then in each box you create a text field, etc. So it's basically just a bunch of nested loops.
The layout can get kind of tricky, there are a couple ways to do it. You can nest boxes (BoxLayout), or use GridBagConstraints, and keep a public grid height, so whenever something is added it is positioned next in order.
so you do things like gc = new GridBagConstraints();
gc.anchor = GridBagConstraints.NORTHWEST;
gc.gridx = 0;
gc.gridy = y++; // gloabl height position
add(textField, gc);

Similar Messages

  • How can we give the Data Format (File Type ) in Runtime

    Hi all,
    How can we give the Data Format (File Type ) in Runtime for the following method,
    cl_gui_frontend_services=>gui_download.
    Thanks in advance
    Sri

    There is a filetype parameter which you can set
    CALL METHOD cl_gui_frontend_services=>gui_download
      EXPORTING
    *    BIN_FILESIZE              =
        filename                  =
    *    FILETYPE                  = 'ASC'
    *    APPEND                    = SPACE
    *    WRITE_FIELD_SEPARATOR     = SPACE
    *    HEADER                    = '00'
    *    TRUNC_TRAILING_BLANKS     = SPACE
    *    WRITE_LF                  = 'X'
    *    COL_SELECT                = SPACE
    *    COL_SELECT_MASK           = SPACE
    *    DAT_MODE                  = SPACE
    *    CONFIRM_OVERWRITE         = SPACE
    *    NO_AUTH_CHECK             = SPACE
    *    CODEPAGE                  = SPACE
    *    IGNORE_CERR               = ABAP_TRUE
    *    REPLACEMENT               = '#'
    *    WRITE_BOM                 = SPACE
    *    TRUNC_TRAILING_BLANKS_EOL = 'X'
    *  IMPORTING
    *    FILELENGTH                =
      changing
        data_tab                  =
    *  EXCEPTIONS
    *    FILE_WRITE_ERROR          = 1
    *    NO_BATCH                  = 2
    *    GUI_REFUSE_FILETRANSFER   = 3
    *    INVALID_TYPE              = 4
    *    NO_AUTHORITY              = 5
    *    UNKNOWN_ERROR             = 6
    *    HEADER_NOT_ALLOWED        = 7
    *    SEPARATOR_NOT_ALLOWED     = 8
    *    FILESIZE_NOT_ALLOWED      = 9
    *    HEADER_TOO_LONG           = 10
    *    DP_ERROR_CREATE           = 11
    *    DP_ERROR_SEND             = 12
    *    DP_ERROR_WRITE            = 13
    *    UNKNOWN_DP_ERROR          = 14
    *    ACCESS_DENIED             = 15
    *    DP_OUT_OF_MEMORY          = 16
    *    DISK_FULL                 = 17
    *    DP_TIMEOUT                = 18
    *    FILE_NOT_FOUND            = 19
    *    DATAPROVIDER_EXCEPTION    = 20
    *    CONTROL_FLUSH_ERROR       = 21
    *    NOT_SUPPORTED_BY_GUI      = 22
    *    ERROR_NO_GUI              = 23
    *    others                    = 24

  • How would I implement something similar to SSRS data driven subscriptions in CRM 2015 Online?

    Requirement: Generate Report and send specific pricing information to a list of contacts based on field value.
    I'm new to CRM, but am well versed in SSRS and I'm looking to understand:
    1. Is it possible to create something like a data driven subscription in CRM?
    Everything I've looked at is from years ago, and I'm just looking for some high level directions I can pursue in order to fulfill this requirement.
    Thanks!

    Did you notice the difference between your image and theirs. Their image has a coordinate grid. This coordinate grid can be used to determine size, location of pixels, etc...
    If you add a grid, when you process the image, find the grid, then find the coordinate markings, then find the pixels in relation to these coordinate marking creating an internal buffer of the image.
    ie: have 0=white 1=black 2=grid 3=coordinate marking and make an internall representation of your image
    011002300000
    001002201000
    011102300010
    323232232323
    222222222222
    001002310000
    000102200100
    010002301000
    Just an idea, but look into the coordinate grid it may be the key to why they can process their image.
    DeltaCoder

  • Data driven subscription query returns no data

    We have a data driven subscription on SSRS 2008 R2. The columns in the query are tied to one or more parameters of the report. When we run the subscription and if the query does not return any rows, I was hoping that the subscription will not start; however,
    instead, to my surprise, I got error stating..."Parameter XYZ value can't be null". How to avoid this error and keep subscription from running in this situation? 
    Example: I have a report that required employeeID as a parameter. I have a query (step 3: data driven subscription) that fetches employee ID based on some criteria. If there is no row returned by the query; It throws error on report stating "Parameter
    EmployeeID can't be null."
    Nehal Jain

    Hello Nehal -
    Try adding a UNION ALL to your parameter dataset query like
    UNION ALL SELECT NULL AS EmployeeID , ..
    Just check accordingly. I ll revert again based on this , got a priority now.
    Happy to help! Thanks. Regards and good Wishes, Deepak. http://deepaksqlmsbusinessintelligence.blogspot.com/

  • How to pass the multiplevalue parameter into SSRS by data driven subscription

    Hi All,
    I create a table and show it in the SSRS by table
    EmID Name
    AA1, A
    BB1, C
    CC1, E
    And set one parameter EmID for the user to filter the record and that Parameter Accept multiple values and the type is text.
    And I create a another table for the data-driven subscription to send the report to user by email.
    EmailTitle EmID  EmailComment
    TestEmail  AA1,BB1,CC1    TestComment
    And I set the subscription and set the EmID parameter is from EmID column, then test the subscription, it failed...
    However, when I only put AA1 into the table, then the subscription works well
    EmailTitle EmID  EmailComment
    TestEmail  AA1    TestComment
    So How I can config the above table to support subscription?
    Thanks.

    Hi Bimaster,
    When specify a column for the parameter value in a data-driven subscription, it will be regarded as a single value. So when specify the value "AA1,BB1,CC1" as the parameter value, the subscription will fail.
    The work around for this issue clear the "Allow multiple values" for the report parameter, and then change the filter
    From
    Expression:[ParameterName]
    Operator   :In
    Value         :[@ParameterName]
    To
    Expression:[ParameterName]
    Operator   :In
    Value         :Split(Parameters!ParameterName.Value,",")
    In this case, we can specify a value like "AA1,BB1,CC1" from database to the data-driven subscription. I have tested it on my local host environment, it works fine.
    Regards
    Charlie Liao
    TechNet Community Support

  • [Forum FAQ] How to configure a Data Driven Subscription which get multi-value parameters from one column of a database table?

    Introduction
    In SQL Server Reporting Services, we can define a mapping between the fields that are returned in the query to specific delivery options and to report parameters in a data-driven subscription.
    For a report with a parameter (such as YEAR) that allow multiple values, when creating a data-driven subscription, how can we pass a record like below to show correct data (data for year 2012, 2013 and 2014).
    EmailAddress                             Parameter                      
    Comment
    [email protected]              2012,2013,2014               NULL
    In this article, I will demonstrate how to configure a Data Driven Subscription which get multi-value parameters from one column of a database table
    Workaround
    Generally, if we pass the “Parameter” column to report directly in the step 5 when creating data-driven subscription.
    The value “2012,2013,2014” will be regarded as a single value, Reporting Services will use “2012,2013,2014” to filter data. However, there are no any records that YEAR filed equal to “2012,2013,2014”, and we will get an error when the subscription executed
    on the log. (C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\LogFiles)
    Microsoft.ReportingServices.Diagnostics.Utilities.InvalidReportParameterException: Default value or value provided for the report parameter 'Name' is not a valid value.
    This means that there is no such a value on parameter’s available value list, this is an invalid parameter value. If we change the parameter records like below.
    EmailAddress                        Parameter             Comment
    [email protected]         2012                     NULL
    [email protected]         2013                     NULL
    [email protected]         2014                     NULL
    In this case, Reporting Services will generate 3 reports for one data-driven subscription. Each report for only one year which cannot fit the requirement obviously.
    Currently, there is no a solution to solve this issue. The workaround for it is that create two report, one is used for view report for end users, another one is used for create data-driven subscription.
    On the report that used create data-driven subscription, uncheck “Allow multiple values” option for the parameter, do not specify and available values and default values for this parameter. Then change the Filter
    From
    Expression:[ParameterName]
    Operator   :In
    Value         :[@ParameterName]
    To
    Expression:[ParameterName]
    Operator   :In
    Value         :Split(Parameters!ParameterName.Value,",")
    In this case, we can specify a value like "2012,2013,2014" from database to the data-driven subscription.
    Applies to
    Microsoft SQL Server 2005
    Microsoft SQL Server 2008
    Microsoft SQL Server 2008 R2
    Microsoft SQL Server 2012
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    For every Auftrag, there are multiple Position entries.
    Rest of the blocks don't seems to have any relation.
    So you can check this code to see how internal table lt_str is built whose first 3 fields have data contained in Auftrag, and next 3 fields have Position data. The structure is flat, assuming that every Position record is related to preceding Auftrag.
    Try out this snippet.
    DATA lt_data TYPE TABLE OF string.
    DATA lv_data TYPE string.
    CALL METHOD cl_gui_frontend_services=>gui_upload
      EXPORTING
        filename = 'C:\temp\test.txt'
      CHANGING
        data_tab = lt_data
      EXCEPTIONS
        OTHERS   = 19.
    CHECK sy-subrc EQ 0.
    TYPES:
    BEGIN OF ty_str,
      a1 TYPE string,
      a2 TYPE string,
      a3 TYPE string,
      p1 TYPE string,
      p2 TYPE string,
      p3 TYPE string,
    END OF ty_str.
    DATA: lt_str TYPE TABLE OF ty_str,
          ls_str TYPE ty_str,
          lv_block TYPE string,
          lv_flag TYPE boolean.
    LOOP AT lt_data INTO lv_data.
      CASE lv_data.
        WHEN '[Version]' OR '[StdSatz]' OR '[Arbeitstag]' OR '[Pecunia]'
             OR '[Mita]' OR '[Kunde]' OR '[Auftrag]' OR '[Position]'.
          lv_block = lv_data.
          lv_flag = abap_false.
        WHEN OTHERS.
          lv_flag = abap_true.
      ENDCASE.
      CHECK lv_flag EQ abap_true.
      CASE lv_block.
        WHEN '[Auftrag]'.
          SPLIT lv_data AT ';' INTO ls_str-a1 ls_str-a2 ls_str-a3.
        WHEN '[Position]'.
          SPLIT lv_data AT ';' INTO ls_str-p1 ls_str-p2 ls_str-p3.
          APPEND ls_str TO lt_str.
      ENDCASE.
    ENDLOOP.

  • Special Characters in the file name in Data Driven Subscription via File Share

    Hi,
    I am trying to create a Data Driven Subscription with option to delivery as  windows file share in SQL server 2005. I need to save the report as a pdf with the following file name  '[City] City_Name', but it errors out and it is because of the
    Square Brackets. Is there any way i can save the file using the Square brackets as i mentioned above.
    I am using a query to get the filename and filepath. It works fine as long as i do not have [], but i need to save the file as i mentioned along with the Square Brackets.
    Please help.

    Hello,
    I can reproduce the issue on my test environment: When I create a Data Driven Subscription and specify the report name by get from a subscription delivery table, and the value of the "report name" column contains square brackets. The subscription failed
    with following error in the error log:
    ERROR: Error occurred processing subscription ab9523a6-0256-4607-b818-a7666204d018:
    The file name is not valid. Avoid using special characters such as /\?*:<>|+,[]"& in the file name.
    notification!WindowsService_1!1f24!05/30/2014-15:31:02:: i INFO: Notification 0cf5a356-3172-4108-9d8c-58ea81a0b80a completed.  Success: False, Status: The file name is not valid. Avoid using special characters such as /\?*:<>|+,[]"& in the
    file name., DeliveryExtension: Report Server FileShare, Report: Report6, Attempt 0
    It seems that the behavior is by design. please avoid using square brackets as file name. Maybe you can try to use parentheses () instead.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • What is correct way to join a start/end date driven dimension to a fact table in data foundation?

    I have a bad universe or a data design issue. 
    Several versions of hierarchies reporting store entities in reporting Fact measures.
    Example of date driven Hierarchy Dimension:   ORG_KEY
                                                                                START_DATE
                                                                                END_DATE
                                                                                STORE_NUMBER
                                                                                ORG_HIERARCHY   
                                                                                CURR_FLG   (Y/N)        
    Fact table  :                                                         ORG_KEY
                                                                                 CALENDAR_KEY
                                                                                 TRANS_DATE
                                                                                 $amount  
    Calendar Dimension:                                            CALENDAR_KEY
                                                                                  DAY_DATE
                                                                                   FY_WEEK          (201452)
                                                                                    FY_PERIOD      (201412)
                                                                                    FY_QUARTER   (201401)
                                                                                     FISCAL_YEAR    (2014)
    Users WISH:
    Wish for store number and org hierarchy to pull as of the last day of each pull without prompt.    The Store(ORG_KEY) as in the fact table; but the ORG_HIERARCHY and other attributes as of the last day they pull.
    Daily (Would be Calendar.Day_Date in Filter) ,
    Week to date (would be Max Calendar.Day_Date for (201452) FY_WEEK  as entered,
    Month to date,
    Year to date, 
    AdHoc queries.  
    My problem is I see how they could manually pull this in Webi.   I have tried everything I know to join to no avail.  I have not gotten @Prompts to work in joins, derived tables, etc.  in the data foundation.  Wonder what is difference between parameter in Data foundation vs. filter in buisness layer.    None of them worked. 
    Please help!   ANY ideas would be appreciated.   .

    {Note that abbrevations in brackets are just for short form further down the answer}
    Join Store Dim (SD) to Transaction Fact (TF) on ORG_KEY=ORG_KEY with 1 to Many cardinality
    Create an alias of Calendar Dim and call it Transaction Date (TD)
    Join TD to TF on TD.CALENDAR_KEY=TF.CALENDAR_KEY with 1 to Many cardinality
    Create a predefined condition in your universe called "Return Yesterday's Transactions" as:
    TD.DAY_DATE = trunc(sysdate-1) <-- That assumes Oracle database; use whatever is correct for yesterday for your RDBMS
    The above predefined condition when added to your data query will return only yesterday's transactions.
    However, if you want to return all the different types of sales, you would need an object for each one. To do that, you'd use a case statement. Again, using Oracle syntax, an example of MTD would be:
    SUM(CASE WHEN trunc(TD.DAY_DATE,'yyyymm') = trunc(sysdate,'yyyymm') THEN TF.amount END)
    If you have any more questions about how this approach would work please shout.
    As an alternative, you could create a time hierarchy and add scope of analysis to your report for it and enable drilling at report level.

  • Data Driven Test doesn't work in coded UI

    Hi,
    I have written my first coded ui data driven test (Visual Studio 2012).  Although the test ran and was marked passed. I don't think it actually did anything.  
    I have 2 fields (Input and Output) on my csv file.
    n my app,  I want to enter the input field in a field called GoTo which is an UITbedit field, hit enter.  This should open another window where I want to validate the window title = to my Output 
    Here is my code
            [DataSource("Microsoft.VisualStudio.TestTools.DataSource.CSV", "|DataDirectory|\\Data/MainData.csv", "MainData#csv", DataAccessMethod.Sequential), DeploymentItem("MainData.csv"), TestMethod]
            public void DataDrivenTest()
                //string paramVal = TestContext.DataRow["Input"];
                this.UIMap.EnterGoToValueMainParams.TextInputEditText =
                    TestContext.DataRow["Input"].ToString();
        this.UIMap.EnterGoToValueMain();
                this.UIMap.PressEnter();
                this.UIMap.AssertWindowTitleExpectedValues.TextOutputEditText =
                    TestContext.DataRow["Output"].ToString();
    During playback, it appeared that the coded ui test had looped through the csv file, but it didn't actually write anything to the edit field that I was testing.

    It still doesn't work,
    I modified my code as follows:
                this.UIMap.EnterGoToValueMainParams.TextInputEditText =
                       TestContext.DataRow["Input"].ToString();
                this.UIMap.EnterGoToValueMain();
                this.UIMap.PressEnter();
                this.UIMap.AssertWindowTitleExpectedValues.TextOutputEditText =
                       TestContext.DataRow["Output"].ToString();
                this.UIMap.AssertWindowTitle();
    The application appears to loop through the file, but it is placing my original entered test "1" in the edit field during both iterations.  The playback is slow enough that I can see what is being entered. It doesn't seem to be replacing the
    "1" with a "5" from my input file.

  • Help With Date driven report

    I am trying to generate a list of the programs on all channels for a specific day showing the channel number, supplier, package, program name, rating code, and show time. This will be similar to a program guide, only not package specific. This is a date-driven report, therefore it should only display programs for a single date specified.
    [code/]SELECT DISTINCT
    S.PROGTIME AS "SHOWTIME",
    S.PROGNAME AS "PROGRAM TITLE",
    C.CHNUM AS "CHANNEL #",
    SU.SUPNAME AS "SUPPLIER",
    R.RATINGDESCRIPT AS "RATING"
    FROM SCHEDULE S
    CROSS JOIN CHANNELS C
    CROSS JOIN SUPPLIERS SU
    INNER JOIN PROGRAM P ON P.PROGNAME = S.PROGNAME
    INNER JOIN CHANNEL_PACKAGE CP ON CP.CHID = S.CHID
    INNER JOIN RATING R ON R.RATINGID = P.RATINGID
    WHERE S.PROGTIME='18-DEC-10'
    ORDER BY C.CHNUM
    Which gives me an undesired resulT containg rows that put names of all channels with each channel number and ends up outputting 3016 rows which there should be only 29.
    I don't know how to add my script file here since there is no option for an attachment.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Ok here is my syntax I have been working on
    SELECT DISTINCT
    S.PROGTIME AS "SHOWTIME",
    S.PROGNAME AS "PROGRAM TITLE",
    C.CHNUM AS "CHANNEL #",
    SU.SUPNAME AS "SUPPLIER",
    R.RATINGCODE AS "RATING"
    FROM SCHEDULE S
    CROSS JOIN CHANNELS C
    CROSS JOIN SUPPLIERS SU
    INNER JOIN PROGRAM P ON P.PROGNAME = S.PROGNAME
    INNER JOIN CHANNEL_PACKAGE CP ON CP.CHID = S.CHID
    INNER JOIN RATING R ON R.RATINGID = P.RATINGID
    WHERE C.CHID=S.CHID
    ORDER BY C.CHNUM;
    Here are the tables and data
    CREATE TABLE CHANNEL_TYPES(
    CHANTYPEID CHAR(10) NOT NULL,
    CHANTYPEDESC VARCHAR2(15) NOT NULL,
    PRIMARY KEY(CHANTYPEID));
    CREATE TABLE SUPPLIERS(
    SUPID NUMBER(4) NOT NULL,
    SUPNAME CHAR(4) NOT NULL,
    SUPSTADD VARCHAR2(30) NOT NULL,
    SUPCITY VARCHAR2(30),
    SUPSTATE CHAR(2),
    SUPZIP NUMBER(9),
    CONTNAME VARCHAR2(30) NOT NULL,
    CONTPHNUM VARCHAR2(15),
    CONTEMAIL CHAR(50),
    PRIMARY KEY(SUPID));
    CREATE TABLE RATING(
    RATINGID NUMBER(4),
    RATINGDESCRIPT VARCHAR(30),
    RATINGCODE VARCHAR(10),
    PRIMARY KEY(RATINGID));
    CREATE TABLE PACKAGE(
    PKGID NUMBER(6) NOT NULL,
    PKGDESC VARCHAR2(40) NOT NULL,
    PKGNAME VARCHAR2(15),
    PKGPRICE NUMBER (8,2),
    PRIMARY KEY(PKGID));
    CREATE TABLE CHANNELS(
    CHID NUMBER(5) NOT NULL,
    CHNUM NUMBER(3) NOT NULL,
    CHNAME VARCHAR2(20) NOT NULL,
    CHANTYPEID CHAR(10) NOT NULL,
    PRIMARY KEY(CHID),
    FOREIGN KEY(CHANTYPEID) REFERENCES CHANNEL_TYPES(CHANTYPEID));
    CREATE TABLE PROGRAM(
    SUPID NUMBER(4) NOT NULL,
    PROGNAME VARCHAR2(20),
    PROGDESC VARCHAR2(30) NOT NULL,
    PROGLGTH NUMBER(4),
    CHANTYPEID CHAR(10),
    RATINGID NUMBER(4),
    PRIMARY KEY(PROGNAME),
    FOREIGN KEY(SUPID) REFERENCES SUPPLIERS(SUPID),
    FOREIGN KEY(CHANTYPEID) REFERENCES CHANNEL_TYPES(CHANTYPEID),
    FOREIGN KEY(RATINGID) REFERENCES RATING(RATINGID));
    CREATE TABLE SCHEDULE(
    SCHEDID CHAR(6) NOT NULL,
    CHID NUMBER(4) NOT NULL,
    PROGNAME VARCHAR(20) NOT NULL,
    PROGTIME DATE NOT NULL,
    PRIMARY KEY(SCHEDID),
    FOREIGN KEY(PROGNAME) REFERENCES PROGRAM(PROGNAME));
    CREATE TABLE CHANNEL_PACKAGE(
    CHID NUMBER(5) NOT NULL,
    PKGID NUMBER(6) NOT NULL,
    FOREIGN KEY(CHID) REFERENCES CHANNELS(CHID),
    FOREIGN KEY(PKGID) REFERENCES PACKAGE(PKGID));
    --INSERT STATEMENTS
    INSERT INTO SUPPLIERS (SupID, SupName, SupStAdd, SupCity, SupState, Supzip, ContName, ContPhNum, ContEmail)
    VALUES ( 4578, 'NBC', '10880 WILSHIRE BLVD #1200', 'LOS ANGELES','CA','90213','JEFF KING','310-369-5231','[email protected]');
    INSERT INTO SUPPLIERS (SupID, SupName, SupStAdd, SupCity, SupState, Supzip, ContName, ContPhNum, ContEmail)
    VALUES ( 5267, 'ABC', '26547 STARS BLVD #5699', 'LOS ANGELES','CA', '90212', 'JACK CAVERISI', '310-840-9966', '[email protected]');
    INSERT INTO SUPPLIERS
    (SupID, SupName, SupStAdd, SupCity, SupState, Supzip, ContName, ContPhNum, ContEmail)
    VALUES ( 7137, 'FOX', '10960 WILSHIRE BLVD', 'LOS ANGELES','CA', '90213', 'JANIS CARMIKEL', '310-235-5233', '[email protected]');
    INSERT INTO SUPPLIERS
    (SupID, SupName, SupStAdd, SupCity, SupState, Supzip, ContName, ContPhNum, ContEmail)
    VALUES ( 3549, 'WB', '3701 W. OAK ST', 'BURBANK', 'CA','91125', 'SIMON PHILIPS', '310-532-6588', '[email protected]');
    INSERT INTO SUPPLIERS (SupID, SupName, SupStAdd, SupCity, SupState, Supzip, ContName, ContPhNum, ContEmail)
    VALUES ( 6389, 'STAR', '3291 GOLDEN LN.', 'BURBANK', 'CA', '91124', 'SOPHIA SLERPY', '310-677-9511', '[email protected]');
    INSERT INTO SUPPLIERS (SupID, SupName, SupStAdd, SupCity, SupState, Supzip, ContName, ContPhNum, ContEmail)
    VALUES (5729, 'CNN', '579 WALNUT ST. #7893', 'LOS ANGELES', 'CA', '90215', 'MILDRED FOLLEY', '310-729-5568', '[email protected]');
    INSERT INTO SUPPLIERS (SupID, SupName, SupStAdd, SupCity, SupState, Supzip, ContName, ContPhNum, ContEmail)
    VALUES (5376, 'CBS', '3499 SURVIVOR CR.', 'BURBANK', 'CA', '91125', 'SHANNON MYERS', '310-648-1064', '[email protected]');
    INSERT INTO SUPPLIERS (SupID, SupName, SupStAdd, SupCity, SupState, Supzip, ContName, ContPhNum, ContEmail)
    VALUES (7763, 'TBS', '95 TURNER BLVD.', 'ATLANTA', 'GA', '26478', 'ALEXIS COUPE', '443-752-7335', '[email protected]');
    INSERT INTO SUPPLIERS (SupID, SupName, SupStAdd, SupCity, SupState, Supzip, ContName, ContPhNum, ContEmail)
    VALUES (3675, 'LIFE', '9945 SAILOR LN.', 'NEW YORK', 'NY', '36984', 'KRISTIAN HART', '646-985-8998', '[email protected]');
    INSERT INTO SUPPLIERS (SupID, SupName, SupStAdd, SupCity, SupState, Supzip, ContName, ContPhNum, ContEmail)
    VALUES (2599, 'CW', '55890 TERRANCE DR', 'NEW YORK', 'NY', '36983', 'NANCY BOTWIND', '646-736-7349', '[email protected]');
    INSERT INTO SUPPLIERS (SupID, SupName, SupStAdd, SupCity, SupState, Supzip, ContName, ContPhNum, ContEmail)
    VALUES (8771, 'MTV', '7721 TIMES SQ. #98654', 'NEW YORK', 'NY', '36983', 'KID ROCK', '646-992-1257', '[email protected]');
    INSERT INTO SUPPLIERS (SupID, SupName, SupStAdd, SupCity, SupState, Supzip, ContName, ContPhNum, ContEmail)
    VALUES (7700, 'G4', '87264 GEEK LN.', 'NEW YORK', 'NY', '36983', 'OLIVIA MUNN', '646-753-7312', '[email protected]');
    INSERT INTO SUPPLIERS (SupID, SupName, SupStAdd, SupCity, SupState, Supzip, ContName, ContPhNum, ContEmail)
    VALUES (6666, 'FEAR', '666 ELM ST.', 'SLEEPY HOLLOW', 'NY', '36907', 'FREDDY KRUGER', '646-568-9666', '[email protected]');
    INSERT INTO RATING (RatingID, RatingDescript, RatingCode)
    VALUES ( 0001, 'GENERAL AUDIENCE', 'G');
    INSERT INTO RATING (RatingID, RatingDescript, RatingCode)
    VALUES ( 0002, 'PARENTAL GUIDENCE', 'PG');
    INSERT INTO RATING (RatingID, RatingDescript, RatingCode)
    VALUES ( 0003, 'PARENTAL GUIDENCE 13', 'PG13');
    INSERT INTO RATING (RatingID, RatingDescript, RatingCode)
    VALUES ( 0004, 'RATED', 'R');
    INSERT INTO RATING (RatingID, RatingDescript, RatingCode)
    VALUES ( 0005, 'NO ONE 17 AND UNDER ADMITTED', 'NC17');
    INSERT INTO RATING (RatingID, RatingDescript, RatingCode)
    VALUES (0006, 'MATURE', 'M');
    INSERT INTO RATING (RatingID, RatingDescript, RatingCode)
    VALUES (0007, 'NUDITY', 'N');
    INSERT INTO RATING (RatingID, RatingDescript, RatingCode)
    VALUES (0008, 'LANGUAGE', 'L');
    INSERT INTO RATING (RatingID, RatingDescript, RatingCode)
    VALUES (0009, 'MILD VIOLENCE', 'MV');
    INSERT INTO RATING (RatingID, RatingDescript, RatingCode)
    VALUES (0010, 'VIOLENCE', 'V');
    INSERT INTO RATING (RatingID, RatingDescript, RatingCode)
    VALUES (0011, 'SEXUAL CONTENT', 'SC');
    INSERT INTO CHANNEL_TYPES (ChanTypeID, ChanTypeDesc)
    VALUES ('M', 'Movie');
    INSERT INTO CHANNEL_TYPES (ChanTypeID, ChanTypeDesc)
    VALUES ('N', 'News');
    INSERT INTO CHANNEL_TYPES (ChanTypeID, ChanTypeDesc)
    VALUES ('L', 'Lifestyle');
    INSERT INTO CHANNEL_TYPES (ChanTypeID, ChanTypeDesc)
    VALUES ('D', 'Documentary');
    INSERT INTO CHANNEL_TYPES (ChanTypeID, ChanTypeDesc)
    VALUES ('S', 'Sports');
    INSERT INTO CHANNEL_TYPES (ChanTypeID, ChanTypeDesc)
    VALUES ('R', 'REALITY');
    INSERT INTO CHANNEL_TYPES (ChanTypeID, ChanTypeDesc)
    VALUES ('C', 'CHILDREN');
    INSERT INTO CHANNEL_TYPES (ChanTypeID, ChanTypeDesc)
    VALUES ('F', 'FAMILY');
    INSERT INTO CHANNEL_TYPES (ChanTypeID, ChanTypeDesc)
    VALUES ('H', 'HORROR');
    INSERT INTO CHANNEL_TYPES (ChanTypeID, ChanTypeDesc)
    VALUES ('I', 'INSTRUCTIONAL');
    INSERT INTO CHANNEL_TYPES (ChanTypeID, ChanTypeDesc)
    VALUES ('MU','MUSIC');
    INSERT INTO CHANNEL_TYPES (ChanTypeID, ChanTypeDesc)
    VALUES ('MYST', 'MYSTERY');
    INSERT INTO CHANNEL_TYPES (ChanTypeID, ChanTypeDesc)
    VALUES ('NA', 'NATURE');
    INSERT INTO CHANNEL_TYPES (ChanTypeID, ChanTypeDesc)
    VALUES ('RE', 'RELIGOUS');
    INSERT INTO CHANNEL_TYPES (ChanTypeID, ChanTypeDesc)
    VALUES ('ROM', 'ROMANCE');
    INSERT INTO CHANNEL_TYPES (ChanTypeID, ChanTypeDesc)
    VALUES ('SCIFI', 'SCIENCE FICTION');
    INSERT INTO CHANNEL_TYPES (ChanTypeID, ChanTypeDesc)
    VALUES ('SO', 'SOAP OPERAS');
    INSERT INTO CHANNEL_TYPES (ChanTypeID, ChanTypeDesc)
    VALUES ('TS', 'TALK SHOW');
    INSERT INTO CHANNEL_TYPES (ChanTypeID, ChanTypeDesc)
    VALUES ('W', 'WESTERN');
    INSERT INTO CHANNEL_TYPES (ChanTypeID, ChanTypeDesc)
    VALUES ('AD', 'ADULT');
    INSERT INTO CHANNEL_TYPES (ChanTypeID, ChanTypeDesc)
    VALUES ('BIO', 'BIOGRAPHY');
    INSERT INTO CHANNEL_TYPES (ChanTypeID, ChanTypeDesc)
    VALUES ('CART', 'CARTOONS');
    INSERT INTO CHANNEL_TYPES (ChanTypeID, ChanTypeDesc)
    VALUES ('SHOP', 'SHOPPING');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES(1001, 1, 'Movie Channel 1', 'M');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES(1002, 2, 'StarZ', 'M');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES(1003, 3, 'FOX News', 'N');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES(1004, 4, 'Real News', 'N');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES(1005, 5, 'Lyfetiem', 'L');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES(1006, 6, 'FIT TV', 'L');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES(1007, 7, 'Gumshoe', 'D');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES(1008, 8, 'Reality Everything', 'D');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES(1009, 9, 'Pure Gridiron', 'S');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES(1010, 10, 'NESN', 'S');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES (1011, 11, 'GAMESHOW NETWORK', 'L');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES ( 1012, 12, 'HSN', 'SHOP');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES (1013, 13, 'CARTOON NETWORK', 'CART');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES (1014, 14, 'ONE LIFE', 'BIO');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES (1015, 15, 'MY MUSIC', 'MU');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES (1016, 16, 'HEAVENLY TV', 'RE');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES (1017, 17, 'GUNSLINGER', 'W');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES (1018, 18, '24-7 TALK SHOWS', 'TS');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES (1019, 19, 'SOAPNET', 'SO');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES (1020, 20, 'WBFF20', 'MYST');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES (1021, 21, 'ABC FAMILY', 'F');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES (1022, 22, 'LOVETV', 'ROM');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES (1023, 23, 'SYFY', 'SCIFI');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES (1024, 24, 'OUTDOORS', 'NA');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES (1025, 25, 'DIY', 'I');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES (1026, 26, 'CHILLER', 'H');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES (1027, 27, 'REALTV', 'R');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES (1028, 28, 'ESPN', 'S');
    INSERT INTO CHANNELS (ChID, ChNum, ChName, ChanTypeID)
    VALUES (1029, 29, '5STAR', 'M');
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES(4578, 'N', 'NBC Tonight', 'News from around the world', 360, 0002);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES(7137, 'L', 'Sale of the Year', 'Game Show Lifestyle', 24, 0001);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES(3549, 'M', 'Fly Killers are Back', 'Flies attack the city once', 175, 0004);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES (5267, 'N', 'FOX ACTION NEWS', 'LOCAL NEWS', 60, 0002);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES (6389, 'M', 'MR. NICE GUY', 'MR.NICE GUY SAVES THE DAY', 120, 0003);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES ( 3675, 'L', 'COOKING WITH FOOD', 'PREPARING A HOLIDAY FEAST', 180, 0001);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES ( 5267, 'S', 'STEELERS VS RAVENS', 'FOOTBALL', 240, 0009);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES ( 5376, 'S', 'US OPEN', 'CHAMPIONSHIP TENNIS', 360, 0002);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES ( 7700, 'D', 'HISTORY VIDEO GAMES', 'THEN AND NOW', 120, 0003);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES ( 7763, 'D', 'A WORLD AT WAR', 'WWII DOCUMENTARY', 120, 0010);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES ( 6666, 'L', 'WHEEL O TERROR', 'GAMESHOW', 60, 0004);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES ( 3675, 'SHOP', 'DEAL OF THE CENTURY', 'SHOPPING', 240, 0001);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES ( 7763, 'C', 'SCOOBY DOO', 'SCOOBY AND GANG', 60, 0001);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES ( 3675, 'BIO', 'MS13 GANG', 'INSIDE THE MS13 GANG', 120, 0010);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES ( 8771, 'MU', '#1 VIDEOS', 'TODAYS HOTTEST VIDEOS', 300, 0011);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES ( 6666, 'RE', 'SCRIPTURE READING', 'REV.DEAK READS ',120, 0002);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES (7700, 'W', 'GUNSLINGER', 'SHOOTOUT IN THE OLD WEST', 60, 0009);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES ( 5729, 'TS', 'JERRY SPRINGER', 'RELATIONSHIP BREAKUPS', 60, 0011);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES ( 4578, 'SO', 'GENERAL HOSPITAL', 'SOAP OPERA', 120, 0006);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES ( 7137, 'MYST', '48 HOURS', 'WHO KILLED JIMMY HOFFA', 60, 0003);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES ( 5267, 'F', 'FULL HOUSE REUNION', 'STARS FROM FULL HOUSE REUNITE', 120, 0002);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES ( 8771, 'ROM', 'CUPIDS ARROW', 'LOVERS IN LOVE', 30, 0011);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES ( 6666, 'SCIFI', 'WAREHOUSE 13', 'NONE AVAILIBLE', 60, 0005);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES ( 3675, 'NA', 'DEER HUNTER EXTREME', 'HUNTING', 120, 0009);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES ( 5729, 'I', 'FIXING THE SINK', 'HOW TO FIX LEAKY SINK', 60, 0008);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES (6666, 'H', 'SAW XX', 'RELENTLESS PSYCO KILLS AGAIN', 300, 0010);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES ( 6389, 'AD', 'VICTORA FASHION SHOW', 'MODELS', 60, 0007);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES ( 5267, 'S', 'UFC 300', 'PRO MMA', 300, 0010);
    INSERT INTO PROGRAM (SupID, ChanTypeID, ProgName, ProgDesc, ProgLgth, RatingID)
    VALUES ( 6389, 'M', 'NOT HOME ALONE', 'NONE AVAILABLE', 120, 0002);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1001, 1);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1001, 2);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1001, 3);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1001, 4);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1002, 1);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1002, 3);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1002, 4);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1003, 1);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1003, 2);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1003, 3);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1003, 4);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1004, 2);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1004, 4);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1005, 4);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1006, 1);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1006, 2);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1006, 3);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1006, 4);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1007, 1);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1007, 2);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1007, 3);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1007, 4);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1008, 3);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1008, 4);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1009, 1);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1009, 2);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1009, 3);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1009, 4);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1010, 3);
    INSERT INTO CHANNEL_PACKAGE(ChID,PkgID)
    VALUES (1010, 4);
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1101', 1001, 'NBC Tonight',TO_DATE('18-DEC-10 18:00', 'DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES (1102, 1002, 'Sale of the Year',TO_DATE('18-DEC-10 20:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1103', 1003, 'Fly Killers are Back',TO_DATE('18-DEC-10 20:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1104', 1004, 'FOX ACTION NEWS',TO_DATE('18-DEC-10 18:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1105', 1005, 'MR. NICE GUY',TO_DATE('18-DEC-10 11:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1106', 1006, 'COOKING WITH FOOD',TO_DATE('18-DEC-10 12:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1107', 1007, 'STEELERS VS RAVENS',TO_DATE('18-DEC-10 15:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES('1108', 1008, 'US OPEN',TO_DATE('18-DEC-10 14:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1109', 1009, 'HISTORY VIDEO GAMES',TO_DATE('18-DEC-10 13:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1110', 1010, 'A WORLD AT WAR',TO_DATE('18-DEC-10 17:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1111', 1011, 'WHEEL O TERROR',TO_DATE('18-DEC-10 17:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1112', 1012, 'DEAL OF THE CENTURY',TO_DATE('18-DEC-10 13:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1113', 1013, 'SCOOBY DOO',TO_DATE('18-DEC-10 14:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1114', 1014, 'MS13 GANG',TO_DATE('18-DEC-10 15:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1115', 1015, '#1 VIDEOS',TO_DATE('18-DEC-10 12:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1116', 1016, 'SCRIPTURE READING',TO_DATE('18-DEC-10 11:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1117', 1017, 'GUNSLINGER',TO_DATE('18-DEC-10 18:00', 'DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1118', 1018, 'JERRY SPRINGER',TO_DATE('18-DEC-10 20:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1119', 1019, 'GENERAL HOSPITAL',TO_DATE('18-DEC-10 11:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ( '1120', 1020, '48 HOURS',TO_DATE('18-DEC-10 12:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ( '1121', 1021, 'FULL HOUSE REUNION',TO_DATE('18-DEC-10 15:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1122', 1022, 'CUPIDS ARROW',TO_DATE('18-DEC-10 14:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1123', 1023, 'WAREHOUSE 13',TO_DATE('18-DEC-10 13:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1124', 1024, 'DEER HUNTER EXTREME',TO_DATE('18-DEC-10 15:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1125', 1025, 'FIXING THE SINK',TO_DATE('18-DEC-10 11:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1126', 1026, 'SAW XX',TO_DATE('18-DEC-10 12:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1127', 1027, 'VICTORA FASHION SHOW',TO_DATE('18-DEC-10 13:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1128', 1028, 'UFC 300',TO_DATE('18-DEC-10 12:00','DD-MON-YY HH24:MI'));
    INSERT INTO SCHEDULE (SchedID, ChID, ProgName, ProgTime)
    VALUES ('1129', 1029, 'NOT HOME ALONE',TO_DATE('18-DEC-10 11:00','DD-MON-YY HH24:MI'));

  • Creating Data Driven Subscription does not allow me to get Auto copy from Query.

    I am trying to create a data driven Subscription for sharepoint document Library.  I have a table I populate with values.  Then a stored procedure that exec and returns the values.  I use this in my data driven subscription. 
    Here is what my table looks like
    intSubscriptionID strSubscriptionName strFileName strPath strRenderFormat strWriteMode strFileExt strTitle strAutoCopy strUserName strPassword strVar1 strVar2 strVar3 strVar4 strVar5 strVar6 strVar7 strVar8 strVar9 strVar10 bitEnabled
    400 Billing - Invoice_ParentChildRollup 19_Jan2015 http://eagleviewportal/BusinessIntelligenceCenter/AccountingBI/Reports/New Excel Overwrite True Invoice_ParentChildRollup False NULL NULL 0000019 NULL NULL NULL NULL NULL NULL NULL NULL NULL 1
    401 Test Daily Order and Pending Status by SubAccount Test Daily Order and Pending Status by SubAccount http://eagleviewportal/BusinessIntelligenceCenter/ClientRelationsBI/Reports/New Excel Overwrite True Test
    Daily Order and Pending Status by SubAccount True NULL NULL 152884 NULL NULL NULL NULL NULL NULL NULL NULL NULL 1
    I can use all the values and it creates my subscription no problem as long as I do not try to use the autocopy. 
    If I select Use no Value  all works great. 
    If I select Specify a static Value and then choose True it gives me an error The AutoCopy Delivery setting cannot be set to True if the WriteMode Delivery setting is not set to Overwrite.  as you can see that value is set to overwrite.  If I use
    hard coded word OverWrite instead of getting it from query it works.
    If I do the same step above but select False it seems to work as well.
    If I try to choose the value from the query then it errors with the generic Sorry Something went wrong. I cannot find any value in url logs.
    Ken Craig

    Hi Ken,
    I have reproduced the same issue as you encountered. If you choose both value for the fields(WriteMode and AutoCopy) from query, SharePoint will result in an error page. I finally fixed the issue by manually updating the table
    dbo.Subscriptions from the reporting service database. To make this, please first copy the value of field
    ExtensionSettings from the subscription table.
    Change the WRITEMODE and AUTOCOPY from "<ParameterValue><Name>WRITEMODE</Name><Value>Overwrite</Value></ParameterValue> <ParameterValue><Name>AUTOCOPY</Name><Value>AutoCopy</Value></ParameterValue>"
    to "<ParameterValue><Name>WRITEMODE</Name><Field>strWriteMode</Field></ParameterValue> <ParameterValue><Name>AUTOCOPY</Name><Field>strAutoCopy</Field></ParameterValue>".
    Here Value means the static value, and field means the name of the query field. After you modify it, copy the settings back to field
    ExtensionSettings or use update SQL to update it.
    At last, your data driven subscription should be like this:
    Thanks,
    Reken Liu

  • The connection string for coded UI Data driven test using excel data source is not working

    Hello,
    I am using the visual studio 2012 coded UI test, i added the following connection strings to connect to an excel data source:
    [DataSource("System.Data.Odbc", "Dsn=Excel Files;Driver={Microsoft Excel Driver (*.xls)};dbq=C:\\Users\\shaza.said.ITWORX\\Desktop\\Automation\\On-track Automation Framework\\On-track_Automation\\Automation data file.xls;defaultdir=.;driverid=790;maxbuffersize=2048;pagetimeout=5;readonly=true",
    "Sheet1$", DataAccessMethod.Sequential), TestMethod]
    [DataSource("System.Data.Odbc", "Dsn=Excel Files;dbq=|DataDirectory|\\Automation data file.xls;defaultdir=C:\\Users\\shaza.said.ITWORX\\Desktop\\Automation\\On-track Automation Framework\\On-track_Automation\\Automation data file.xls;driverid=1046;maxbuffersize=2048;pagetimeout=5",
    "Sheet1$", DataAccessMethod.Sequential), TestMethod]
    But i get the following error:
    "The unit test adapter failed to connect to the data source or to read the data. For more information on troubleshooting this error, see "Troubleshooting Data-Driven Unit Tests" (http://go.microsoft.com/fwlink/?LinkId=62412) in the MSDN Library.
    Error details: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified"
    Thanks,
    Shaza

    Thanks for Adrian's help.
    Hi shaza,
    From the error message, I suggest you can refer the Adrian's suggestion to check the date source connection string correctly.
    In addition, you can refer the following about how to Create a Data-Driven Coded UI Test to check your issue:
    http://msdn.microsoft.com/en-us/library/ee624082.aspx
    Or you can also try to use a Configuration File to Define a Data Source for coded UI test.
    For example:
    <?xml
    version="1.0"
    encoding="utf-8"
    ?>
    <configuration>
    <configSections>
    <section
    name="microsoft.visualstudio.testtools"
    type="Microsoft.VisualStudio.TestTools.UnitTesting.TestConfigurationSection,
    Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
    </configSections>
    <connectionStrings>
    <add
    name="ExcelConn"
    connectionString="Dsn=Excel Files;dbq=E:\Unit Test\AddClass\AddUnitTest\add.xlsx;defaultdir=.;
    driverid=790; maxbuffersize=2048; pagetimeout=60;"
    providerName="System.Data.Odbc"/>
    <add
    name="ExcelConn1"
    connectionString="Dsn=Excel Files;dbq=E:\Unit Test\AddClass\AddUnitTest\sum.xlsx;defaultdir=.;
    driverid=790;maxbuffersize=2048;pagetimeout=60"
    providerName="System.Data.Odbc"/>
    </connectionStrings>
    <microsoft.visualstudio.testtools>
    <dataSources>
    <add
    name="ExcelDS_Addition"
    connectionString="ExcelConn"
    dataTableName="Addition$"
    dataAccessMethod="Sequential"/>
    <add
    name="ExcelDS_Multiply"
    connectionString="ExcelConn1"
    dataTableName="Multiply$"
    dataAccessMethod="Sequential"/>
    </dataSources>
    </microsoft.visualstudio.testtools>
    </configuration>
    For more information, please see:https://msdn.microsoft.com/en-us/library/ms243192.aspx
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Add Data driven subscription option missing in sharepoint 2013

    i have a sharepoint 2013 enterprise version with sql server 2012 standard version. And i want to add Data- driven subscriptions for a document library by selecting manage subscriptions. But in the manage subscriptions Add Data- Driven subscription option
    is missing. How can i get the options. is ther any workaround if  i am using standard version.

    Hi sppanda,
    According to your description, you want to use data driven report subscription feature with SQL Server 2012 Standard.
    In Reporting Services 2012, only SQL Server 2012 Enterprise and Business Intelligence edition support the data driven feature. So it’s expected that the Add Data- Driven subscription option is missing in your environment. In your scenario, if you want to
    use data driven subscription feature, please perform edition upgrade.
    Reference:
    Reporting Services Features
    Upgrade to a Different Edition of SQL Server 2012 (Setup)
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Question on Data Driven Graphics (non-English)

    I am trying Data Driven Graphics with Illustrator CS4 on Win.
    The program works fine with English XML data, however when I try other non-English language, Illustrator cannot show characters like é,è,ë.
    The data is in XML UTF-8 encoding.
    Anyone could help?
    Thanks,
    Wallace428

    I am trying Data Driven Graphics with Illustrator CS4 on Win.
    The program works fine with English XML data, however when I try other non-English language, Illustrator cannot show characters like é,è,ë.
    The data is in XML UTF-8 encoding.
    Anyone could help?
    Thanks,
    Wallace428

  • ANNOUNCE:  Speed up your Data-Driven JSF/Seam Application by Two Orders of

    Hello,
    I am pleased to announce a new article on JSF Central. In the second installment of this two-part article, Dan Allen continues his discussion of some common performance problems you may encounter when using JSF components, Seam components, and the EL. You'll learn about the set of best practices for eliminating them that led to an improvement of two orders of magnitude in the performance of his application.
    Here is an excerpt:
    In the first part of this article, I began briefing you on optimizations I made to maximize the responsiveness of a JSF application that I developed out in the field. I cited performance problems caused by casually accessing components from a JSF view, then presented a set of best practices to eliminate this unnecessary overhead. Despite the progress made by the end of the first part, you had not yet witnessed the two orders of magnitude in performance improvement that was promised.
    In this part, the additional gains will be achieved by leveraging partial page rendering-provided by the RichFaces JSF component library and by slimming the response. Partial page rendering cuts out the overhead of rerendering the entire page after each user interaction, which turns out to be the real bottleneck in most traditional web applications, and instead redraws only the areas of the page that have changed. Naturally, you want the replacement HTML source to be as condensed as possible. These optimizations allow the responsiveness of a web application to measure up to its desktop counterpart.
    Read the full article here: [Speed up your Data-Driven JSF/Seam Application by Two Orders of Magnitude – Part 2|http://www.jsfcentral.com/articles/speed_up_your_jsf_app_2.html]
    Kito D. Mann -- Author, JavaServer Faces in Action
    http://twitter.com/kito99  http://twitter.com/jsfcentral
    http://www.virtua.com - JSF/Java EE consulting, training, and mentoring
    http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info
    +1 203-404-4848 x3

    Hi,
    how can we ensure that every body define the id in jsf page. we are using the jsf 1.0 and I think this artical for jsf 1.2
    with IBM extended JFS lib.
    if we don't want to change the code of full application,is it possible to speed up the render time with the help of framework or some other way.

Maybe you are looking for