Sort data from a Named Set - SSAS

Hi All,
I am trying to create a Named Set called as "Last 13 Weeks", mdx code looks like below:
EXCEPT({EXCEPT({Tail([Time].[Week].members,14)}, 
{[Time].[Week].[All]})},{Tail([Time].[Week].members,1)})
I have a Dim_Date dimension which consists of data from 2013 till 2015 year.Columns like Date,week,month,year. The above Named set is created as week filter, which will show last 13 weeks excludes from current week. Looks like below.
Row Labels
Count
2015-01-18
1392
2015-01-25
1400
2015-02-01
1433
2015-02-08
1449
2015-02-15
1457
2015-02-22
1456
2015-03-01
1456
2015-03-08
1456
2015-03-15
1471
2015-03-22
1477
2015-03-29
1484
2015-04-05
1497
2015-04-12
1504
Now, weeks are displaying in ascending order. I would like to sort them in descending order, means last week should be displayed at top level and rest are followed in descending order.
Please help me how I can achieve this solution in Named Set ?
Any replies will be appreciate. Thanks.
Maruthi... http://www.msbimaru.blogspot.com/

Hi Maruthi,
According to your description, you want to get the data of last 13 week and sort them in descending order. Right?
In MDX, for sorting the records, we can use Order() function to achieve it, in this scenario, we can order the members based on the member name. Please refer to query below:
select [Measures].[Internet Sales Amount] on 0,
ORDER(TAIL([Date].[Calendar Weeks].[Calendar Week].members,13),
[Date].[Calendar Weeks].currentmember.member_name,desc) on 1
from
[Adventure Works]
Also you can use the ORDER() function for your set expression:
Order(
EXCEPT({EXCEPT({Tail([Time].[Week].members,14)},
{[Time].[Week].[All]})},{Tail([Time].[Week].members,1)}),
[Time].currentmember.member_name,
desc
Reference:
Order (MDX)
Best Regards,
Simon Hou
TechNet Community Support

Similar Messages

  • How to read data from Linux named pipes using java?

    In linux box I want to get data from a named pipe(created using "mkfifo <filename>".
    How I can read the incoming data from the named pipe?

    there are some caveats though: if i remember correctly, when you reach the end of data in a fifo it will look like end-of-file and that may confuse some classes. So your mileage may vary

  • TopLink doesn't sort data received using Named query

    Hello!
    I'm trying to build a Tree table using a TopLink Named query in my application.
    There are Id, Parent|_Id, Code and Name columns in the corresponding database table, where Id and Parent|_Id are linked together by Foreign key (typical tree). I used TopLink to describe this table in the Model part of my application. There I wrote a Named query, without using a query constructor (not Expression radio button, but SQL radio button). Here the text of query:
    select * from regions a connect by prior a.Id = a.Parent_Id start
    with a.Id is null order by a.Code
    Then I created a Data control and tried to build a JSF page with data based on this query, as tree-table.
    But I discovered the fact, that data under the same node on the same leaf level of the Tree are not sorted by code on the JSF page. For example, data may be situated as follows (Code - Name):
    2. wwwwwwwwwwww
    2.3.kkkkkkkkkkkk
    2.1.fffffffffffffffffffff
    2.2.oooooooooo
    1. qqqqqqqqqqqqqqqq
    1. 2. lllllllllllllllllllllllllllll
    1. 1. hhhhhhhhhhhhhh
    etc.
    I verified this query on other environment (PL/SQL Developer, SQL+), but didn't found such unsorted results anywhere.
    Please, give me an advice to avoid this problem.
    Thanks.

    Hi
    Something to do with TreeMap(TreeSet). I tried with TreeSet but it didn't work. Here is the code :
    In servlet :
    Connection lConnection = getConnection(pRequest);
    String lSQL = "";
    Statement lStatement;
    ResultSet lResultSet;
    Hashtable lLtypeHashtable = new Hashtable();
    lStatement = lConnection.createStatement();
    lSQL = "SELECT RCID,RCMEANING FROM REFERENCECODES WHERE RCDOMAIN = 'LOCATIONTYPE' AND RCROWSTATE > 0 order by RCMEANING";
    lResultSet = lStatement.executeQuery(lSQL);
    while(lResultSet.next())
    String lRcid = lResultSet.getString(1);
    String lRcmeaning = lResultSet.getString(2);
    lLtypeHashtable.put(lRcid.trim(),lRcmeaning.trim());
    if(lResultSet != null) lResultSet.close();
    if(lStatement != null) lStatement.close();
    pRequest.setAttribute("LtypeHashtable",lLtypeHashtable);
    //Below Query is executed when one data from select element is selected
    String lLType = DisplayUtilities.getString(pRequest.getParameter("LType"),true);
    //LType is name of select element in JSP.
    if (lLType != null)
    lSQL = lSQL + " AND " + lUpperCaseFunction + "(LOCATIONTYPE)" +
    " = " + DBUtilities.formatString(lLType.toUpperCase());
    pRequest.setAttribute("rLType",lLType+"");
    In JSp :
    <%
    Hashtable lLtypeHashtable = (Hashtable)request.getAttribute("LtypeHashtable");
    %>
    <TR>
    <TD width="15%"> <div align="left">
    <select name="LType" size="1" >
    <option Value="">< Select ></option>
    <%
    if(lLtypeHashtable != null)
    Enumeration enum = lLtypeHashtable.keys();
    while(enum.hasMoreElements())
    String key = (String)enum.nextElement();
    String value = (String)lLtypeHashtable.get(key);
    String flagBack = "";
    if(key.equals((String)request.getAttribute("rLType")))
    flagBack = "selected";
    %>
    <option Value="<%=key%>" <%=flagBack%>><%=value%></option>
    <%
    %>
    </select></div>
    </TD>
    </TR>
    How should I implement TreeSet?
    Looking forward for an early reply.
    Thanks.

  • Pb retrieving sorted data from Table in SQL.

    Hi,
    I get problem to retrieve data in the right order from table in database SQL.
    See code attached: code.png
    I want to sort data according to ID number And then to retrieve those data and fill out a ring control in the right order "descending" .
    But i got always ID 2 instead of 1. See attached  picture : control.png
    it seems that the select statement (see under) is not woking properly. But it is working well in a query in Access DataBase .  
    //Select statement
       hstmt = DBActivateSQL (hdbc, ("SELECT * FROM %s ORDER BY ID DESCENDING",szTableName));
       if (hstmt<= DB_SUCCESS) {ShowError(); goto Error;}
    Some idea ??
    Lionel.
    Attachments:
    code.PNG ‏39 KB
    control.png ‏32 KB

    Hello Lionel,
    According to the document Robert linked, the prototype of DBActivateSQL() is:
    int statementHandle = DBActivateSQL (int connectionHandle, char SQLStatement[]);
    For the 2nd parameter(SQLStatement), you're sending:
    ("SELECT * FROM %s ORDER BY ID DESCENDING",szTableName)
    Probably your intention is to substitute %s with szTableName, but that's not what it happens.
    By using comma operator, ("SELECT * FROM %s ORDER BY ID DESCENDING",szTableName) is evaluated to szTableName, so you call is equivalent to:
    hstmt = DBActivateSQL (hdbc, szTableName);
    In order to substitute %s with szTableName you need to first build the string you're passing as the 2nd parameter:
    char query[512];
    sprintf(query, "SELECT * FROM %s ORDER BY ID DESCENDING",szTableName);
    hstmt = DBActivateSQL (hdbc, query);

  • Extracting similar data from a dynamic set of tables

    I want to select common fields from an arbitrary set of tables, adding an extra field that is the table name, and return all of these rows in a single table. I know the steps but I am getting bogged down in the details (being new to Oracle):
    --Create a temporary table.
    --Generate a dynamic SQL statement to grab the data for each table of interest.
    --Execute that query and store the results in the temporary table.
    --Output the entire temporary table and delete it.
    Here is my latest attempt:
    ================
    Create global temporary table myTempTable
         Title varchar2(30),
         IdType number(8),
         Count number(8)
    ) on commit delete rows;
    declare
    sql_stmt VARCHAR2(200);
    tname VARCHAR2(30);
    begin
    for tname in (
    select distinct table_name from sys.ALL_TAB_COLS
              where owner='me' and table_name like '%ASSIGNS'
    loop
    sql_stmt :=
    'insert into myTempTable(Title, IdType, Count) ' ||
         'select '':1'', IdType, count(*) from me.:1 group by IdType';
    EXECUTE IMMEDIATE sql_stmt USING tname;
    end loop;
    select * from myTempTable;
    commit; -- to delete the temp table
    end;
    ================
    The error messages are:
    --expressions have to be of SQL types
    --an INTO clause is expected in this SELECT statement
    What am I missing here?

    (1) First of all I am executing the whole script in SQL*Plus, thats why I use SQL*Plus command like the SLASH Operator.
    <br>
    (2)
    SQL> VAR cur refcursor
    SQL> CREATE TABLE mytemptable AS SELECT ename table_name, deptno idtype, sal cnt FROM emp WHERE 1=0
    Table created.
    SQL> DECLARE
       sql_stmt   VARCHAR2 (200);
       tname      VARCHAR2 (30);
    BEGIN
       FOR tname IN (SELECT DISTINCT table_name
                                FROM SYS.all_tab_cols
                               WHERE owner = USER AND table_name LIKE '%EMP')
       LOOP
          sql_stmt :=
                'insert into myTempTable select '''
             || tname.table_name
             || ''' table_name, deptno IdType, count(*) cnt from '
             || tname.table_name
             || ' group by deptno';
          EXECUTE IMMEDIATE sql_stmt;
       END LOOP;
       OPEN :cur FOR
          SELECT *
            FROM mytemptable;
       EXECUTE IMMEDIATE 'drop table myTempTable';
    END;
    PL/SQL procedure successfully completed.
    SQL> PRINT :cur
    TABLE_NAME     IDTYPE        CNT
    EMP                10          3
    EMP                20          5
    EMP                30          6
    3 rows selected.Since we DROP the table at the end we don't need an explicit commit, since all DDL statement will implicitly commit anyway.

  • Efficent method to sort data from tab delimited text file

    I am currently writing a program to sort through data that was acquired and display it on a graph and some other indicators.  The file is a tab delimited text file with possibly 100,000s of data points.  the current method that I have tried using was that if I wanted all of the data from Oct, I would parse out the month from the timestamp, compare that to the desired month, and add it to the array if it is the same.  Other possible options of sorting are yearly and daily, possibly even hourly.
    The method does work, however it does take some time (up to a minute on a P4 3.6 GHz with 2 gb ram), and most of the other computers are not nearly as fast or with as much memory.  Is there a more efficent method to sorting the data??
    I attached my sorting vi as well as a sample data file.
    thanks for the advice.  It is saved in LV8.0.1
    Kenny
    Kenny
    Attachments:
    data sort.zip ‏84 KB
    oven1.txt ‏21 KB

    First of all, "sorting" has usually a different meaning (Sorting and numeric array ascending or descending, a string array aphabetically, etc.). Your data already seems sorted by date and time, you just want to pick a subset having certain characteristics.
    The main problem that is slowing you down is your constant growing of large arrays. This causes constant memory reallocations.
    Since your data is already sorted by date and time, all you need is to place your data in a sutable data structure, find the start and end point of your selection, then use "array subset" for example.
    Your code also seems to have a lot of unecessary complexity. See for example your "test for sort data" (see image below).
    the four cases only differ by filename --> only the file name belongs into the case and the file operation outside the inner case. Even better, just use autoindexing.
    that shift register does not do anything, because it always contains the same data. Using "index array" with index wired to [i] is equivalent to an autoindexing tunnel.
    You have a case structure to select which files to read, skipped files give you an empty array. Do you really need to do all these operations on an empty array. Why not place all code inside the TRUE case??
    Below is an image of one possible code alternative that addresses some of these points.
    Message Edited by altenbach on 10-26-2006 09:32 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    testForSortData.png ‏33 KB

  • Stuck trying to sort data from CONNECT BY query

    Hi,
    I am querying the Oracle E-Business Suiite menu tables.
    This query:
    #   MENU TREE WALK EXCLUDING FUNCTIONS
    SELECT     LPAD('_', (LEVEL - 1) * 10, '_') || fmev.prompt prompt
             , LEVEL
             , fmev.ENTRY_SEQUENCE
          FROM apps.fnd_menus_vl fmv
             , apps.fnd_menu_entries_vl fmev
         wHERE fmev.menu_id = fmv.menu_id
           AND fmev.prompt IS NOT NULL
    CONNECT BY fmev.menu_id = PRIOR fmev.sub_menu_id     
    START WITH fmv.menu_name = 'CN_SETUP';Generates this output:
    PROMPT                                   LEVEL     ENTRY_SEQUENCE
    Flexfields                              1     12
    __________Descriptive Flexfields               2     1
    Financials                              1     11
    __________Currencies and Rates                    2     5
    ____________________Rates                    3     10
    ______________________________Daily               4     5
    ______________________________Historical          4     10
    ______________________________Types               4     15
    ____________________Currency Rates Manager          3     5
    ______________________________Daily Rates          4     5
    ______________________________Historical Rates          4     10
    ______________________________Rate Types          4     15
    ____________________Define                    3     15
    __________GL Calendar                         2     2
    __________GL Period Types                    2     3
    __________GL Open and Close Periods               2     4
    Collections                              1     9
    __________Mappings                         2     1
    __________Runtime Values                    2     2
    External Table Mapping                         1     3
    Classification Rules                         1     4
    System Parameters                         1     1
    Payment Plans                              1     6
    Define Pay Groups                         1     14
    View Compensation Groups                    1     16
    Classification Rules                         1     22
    Credit Type Conversions                         1     21
    Credit Types                              1     20
    Interval Types                              1     19
    External Table Mapping                         1     18
    Define Security Profile                         1     17
    Define Payment Plans                         1     15
    Define Salesforce                         1     13
    Lookups                                   1     10
    Revenue Class                              1     8
    Dimensions                              1     7
    Revenue Class                              1     5
    Tables and Columns                         1     2I'd like to sort by fmev.entry sequence.
    However, if I do, I get this output:
    PROMPT                                   LEVEL     ENTRY_SEQUENCE
    System Parameters                         1     1
    __________Descriptive Flexfields               2     1
    __________Mappings                         2     1
    __________Runtime Values                    2     2
    Tables and Columns                         1     2
    __________GL Calendar                         2     2
    External Table Mapping                         1     3
    __________GL Period Types                    2     3
    __________GL Open and Close Periods               2     4
    Classification Rules                         1     4
    ____________________Currency Rates Manager          3     5
    ______________________________Daily Rates          4     5
    ______________________________Daily               4     5
    Revenue Class                              1     5
    __________Currencies and Rates                    2     5
    Payment Plans                              1     6
    Dimensions                              1     7
    Revenue Class                              1     8
    Collections                              1     9
    ______________________________Historical Rates          4     10
    ____________________Rates                    3     10
    ______________________________Historical          4     10
    Lookups                                   1     10
    Financials                              1     11
    Flexfields                              1     12
    Define Salesforce                         1     13
    Define Pay Groups                         1     14
    Define Payment Plans                         1     15
    ______________________________Types               4     15
    ______________________________Rate Types          4     15
    ____________________Define                    3     15
    View Compensation Groups                    1     16
    Define Security Profile                         1     17
    External Table Mapping                         1     18
    Interval Types                              1     19
    Credit Types                              1     20
    Credit Type Conversions                         1     21
    Classification Rules                         1     22That sort of works, except for where the tree-walking SQL has a parent/child scenario. I'd ideally like to get the output to look like this:
    PROMPT                                   LEVEL     ENTRY_SEQUENCE
    System Parameters                         1     1
    Tables and Columns                         1     2
    External Table Mapping                         1     3
    Classification Rules                         1     4
    Revenue Class                              1     5
    Payment Plans                              1     6
    Dimensions                              1     7
    Revenue Class                              1     8
    Collections                              1     9
    __________Mappings                         2     1
    __________Runtime Values                    2     2
    Lookups                                   1     10
    Financials                              1     11
    __________Currencies and Rates                    2     5
    ____________________Rates                    3     10
    ______________________________Daily               4     5
    ______________________________Historical          4     10
    ______________________________Types               4     15
    ____________________Currency Rates Manager          3     5
    ______________________________Daily Rates          4     5
    ______________________________Historical Rates          4     10
    ______________________________Rate Types          4     15
    ____________________Define                    3     15
    __________GL Calendar                         2     2
    __________GL Period Types                    2     3
    __________GL Open and Close Periods               2     4
    Flexfields                              1     12
    __________Descriptive Flexfields               2     1
    Define Salesforce                         1     13
    Define Pay Groups                         1     14
    Define Payment Plans                         1     15
    View Compensation Groups                    1     16
    Define Security Profile                         1     17
    External Table Mapping                         1     18
    Interval Types                              1     19
    Credit Types                              1     20
    Credit Type Conversions                         1     21
    Classification Rules                         1     22Where the pseudo order-by is like this:
    ORDER BY fmev.ENTRY_SEQUENCE for the lowest level, but where there is a submenu, then include those in the right place!
    Apologies for the fact I can't recreate the data here for use in testing, but as I'm using E-Bus tables, it's not so easy.
    Any advice much appreciated.
    Thanks

    ORDER SIBLINGS BY fmev.entry_sequence
    will help.
    roger

  • How to achieve the sorted data from BEx report.

    Hi Guys.
    I have a report which is having characteristics called customer and posting date.
    when i execute that report i want data in assending order of  first customer and next posting date.
    I have given customer as sorting character in BEx display tab of customer  and then i have given Posting Date also in display tab of posting date. But when query is executed its showing as execel will sort.
    for ex.
    C001          5/29/2007
    C001          6/1/2007
    C001          6/3/2007
    C001          6/3/2007
    C001          10/1/2007
    C001          10/4/2007
    this is how i want see my data
    but i am seeing as below
    C001          10/1/2007
    C001          10/4/2007
    C001          5/29/2007
    C001          6/1/2007
    C001          6/3/2007
    C001          6/3/2007
    Kindly anyone help me out.
    thanks
    peter

    Hi,
    I hope , you can set the property of Posting date by right click on it in the query designer, to make the report display on the required Sorting order.
    With rgds,
    Anil Kumar Sharma .P

  • Best way to sort data from a file alphabetically

    If I have a file as such:
    FIRST_NAME|LAST_NAME
    I want to display the data in alphabetical order by last name and by first name. what is the best way to do this? I found java.util.Arrays
    but i thought that it might be best if i read the data into a linked list. I want to display it on a form, so that I can press a next and previous button. Next will show the next record in alphabetical order after the previous one(B->C) and previous would go (C->B)
    thanks.

    How about this:
    Create a PersonRecord object, and have it implement Comparable.
    import java.util.Comparator;
    public class PersonRecord implements Comparable < PersonRecord >
        public static Comparator < PersonRecord > surnameComparator ()
            public int compare (PersonRecord pr1, PersonRecord pr2)
                return pr1.getSurname ().compareTo (pr2.getSurname ());
        public static Comparator < PersonRecord > nameComparator ()
            public int compare (PersonRecord pr1, PersonRecord pr2)
                return pr1.getName ().compareTo (pr2.getName ());
    }See java.util.Comparator, java.lang.Comparable.
    Then use Arrays.sort(List, Comparable) at your own discretion...
    I've said enough; work that part out yourself.
    lutha

  • Query Data From Database and set Visibility Accordingly

    Hi there,
    i have a case where i have to set the rendered property of some items on my screen according to values retrieved from an sql statement.
    When i change a value in a listbox, that value must be given to an sql statement as a parameter (select field_id fom table where id = the value in the list box) to query the ids of the fields from a database table . (each id of a field in my jsf page has the same value in that database table).
    For each record retrieved in that query, the field's rendering having that id must turn to false.
    Anyone can give me a solution to my urgent problem ? ( Where do i write the select statement and the loop and how ... )

    Hi,
    what comes to my mind is to create a custom version of HashMap (extend HashMap) and override the get method. The configure this custom Hashmap as a managed bean. Usually you cannot pass arguments in EL, but for HashMaps this is doable by overriding the get method (at least I remember having done this before).
    So in your EL rendered property value you do
    #{managedHashMapBean["nameOfFieldId"]
    In the bean you just check if the ID exists and if it doesn't return true. So all that your query needs to do is to populate the internal state of the hashmap with the IDs that should be false.
    Frank

  • How to sort data from database and display in combobox in required order

    Hi evrybody, it makes me sick i need to get data form database and fill combobox in required order (last item added to database - last firstName) actualy i already did that, but i'm useing DefaultComboBoxModel and all records are sorted in alphabetical order. Thanks very much for any help

    The items in the JComboBox are displayed in the order in which you add them to the combo box. Use an order by clause in your SQL statement.
    Don't [url http://forum.java.sun.com/thread.jsp?forum=54&thread=516608]crosspost.

  • Migrated data from Powerpivot to SSAS tabular model, can i change the Excel source to SSAS?

    Hi
    I have developed some powerview reports in  Excel/powerpivot files. Now, i have migrated powerpivot data from these files to SSAS tabular cubes. The question is if i can change the source of the Excel files, to "feed" my powerview reports
    with these SSAS Tabular cubes, or do i have to create my powerview reports again via new Excel files or PowerBI designer (and "point" these to SSAS Tabular cubes). It totally seems not logical and so i think that's a good question.
    Kind regards

    Hi Pascal,
    Power View only supports Microsoft BI Semantic Model (BISM) for Power View data sources. BISM files are designed specifically for connecting to Excel workbooks and SSAS tabular models. The Excel workbooks can be in the PowerPivot Gallery on a SharePoint
    site or in a SharePoint library. In this issue, you can publish the PowerPivot workbooks to a SharePoint library or the PowerPivot Gallery, and then create RSDS file or BISM data source to the workbooks. Here are the connection string samples:
    An Excel workbook in Shared Documents on a SharePoint site:
    Data Source=”http://<SharePointSite>/Shared Documents/MyExcelWorkbook.xlsx”
    An Excel workbook in the PowerPivot Gallery on a SharePoint site:
    Data Source=”http://<SharePointSite>/PowerPivot Gallery/MyExcelWorkbook.xlsx”
    Reference:
    http://office.microsoft.com/en-us/excel-help/create-a-connection-to-a-data-model-for-power-view-HA102835737.aspx?CTT=5&origin=HA102834736
    Regards, 
    Mike Yin
    TechNet Community Support

  • Problem with JFMERGE using the last set of data on all form sets

    b Here is the scenario...
    I have a file of data in character delimited format. Each record needs to produce the same set of forms. I used the Visual Transformation Editor to define the field nominated data file, including the ^form statements. The transformation agent processes the file of multiple records just fine. I get a file from JFTRANS that contains the set of data & form statements repeated for each record in the file.
    Great so far.
    b Here is the problem...
    Unfortunately, the print agent is repeating the same set of data on every copy of the set of forms that is printed. It uses the data from the last set of forms to be printed.
    b Additional information...
    For ease of building the field nominated file by our custom client program we have standardized on using GLOBAL fields. Therefore, our DAT files contain all the ^global declarations with all the necessary ^form statements at the end. I used the transformation editor to build the same type of file. Therefore the file going to the print agent looks like:
    ^global name1
    data1
    ^global name2
    data2
    ^form form1
    ^form form2
    ^global name1
    newdata1
    ^global name2
    newdata2
    ^form form1
    ^form form2
    The printed result puts "newdata1" & "newdata2" on both sets of form2. Strangely, the correct data values are showing up on both sets of form1.
    The only difference between the two forms is that form1 is not defined with the fields as global where form2 does define them as global. I removed the global flag from form2 but that didn't change anything.
    I think I know what is occurring. JFMERGE is putting the data elements into the global dictionary and when the same name is in the file the latest data value ends up in the dictionary (thus all the forms print using the last data put into the dictionary). I certainly didn't expect this. I thought it would load the dictionary and print the first set of forms, then reload the dictionary and print the next set of forms. At least that is the way I see it occuring based on the order of things in the DAT file. Based on what is occuring it appears that JFMERGE reads the whole DAT file, building the dictionaries and then processes all the ^form statements.
    b My request for help...
    Does anyone know what I can do (such as insert some command) to get the correct data on the forms?
    It looks like using a fixed record format might do the trick but that isn't an option at this time. As things are right now it looks like I'm going to have to take the data file apart, and make lots of files with one line of data per file.
    I have a time deadline to get this printed so if there isn't a way to make JFMERGE operate as I expected it looks like I'll be doing this by hand. Fortunately, there are only 250-300 data lines. Future jobs could have thousands of data lines so if there isn't a way to do it with a multi-line data file I'll have someone create a program for splitting the original file up (and adding the ^job line).

    We don't use subforms so some of what you suggest isn't effective for us. Our forms are a duplication of the paper forms and are not dynamic. We design each form separately and our custom filler software (that builds the DAT file) uses a database with the required forms for each print job defined within it.<br /><br />Since we don't have subforms, our simple method of printing is to declare as GLOBAL all the unique fields used on all the forms to be printed followed by the ^form commands. It was a simple & straightforward method for us to do better than 500 print jobs over that past couple of years. In addition, our custom filler software can easily build the DAT files.<br /><br />Because I need to manually declare all the ^form statements my experience with using ^field is that the form must be declared followed by the appropriate field commands (repeat for all the forms).<br /><br />i <many hours later I continue typing this post><br /><br />Taking the original Transformation Definition File and customizing it for how things need to be when using ^field commands was a time consuming experience (and a learning one). It did the job as I needed but it is an experience I don't want to repeat. There has got to be a better way of building the TDF properly. I'm definately leaning towards a program to split the file into multiple files.<br /><br />Here is what I went through...<br /><br />I did all the editting using Notepad. I changed all ^global to ^field. Then I had to remove the #comment lines. Next was to find any references to fields that had to be global to the top and chang ^field to ^global. Then it was moving the fields around so they were underneath the appropriate ^form statement. Then, since one of the forms was multi-page I had to add the ^page command and sort the fields so they were under the correct page. That was followed by duplicating fields that are used on multiple forms or multiple pages. Then I discovered that the print agent won't do ^page unless "inline processing" is turned off (I did not want to specify the page name as it could change over time) - so I added "^inline off" in front of every ^page. Finally it was removing unecessary field references so the log file would be clean.<br /><br />For those that are interested, the following is an example of my final file. <br /><br />^global nameA<br />data<br />^global nameB<br />data<br />^form nameX<br />^field name1<br />data<br />^field name2<br />data<br />^form nameY<br />^field name1<br />data<br />^field name3<br />data<br />^inline off<br />^page<br />^field name4<br />data<br />^field name1<br />^inline off<br />^page<br />^field name5<br />data<br />^field name6<br />data

  • Sort data does not match song info

    I've just discovered that some of my songs have sort data from different files. Short of going though all my music song by song is there a way to clear all sort data?

    Generally setting a common Album Artist will fix split albums.
    For deeper problems see Grouping tracks into albums.
    tt2

  • XML Schema to generate table data from a repeating subform data

    Hi All, I would like to have a check box that when checked, will hide a quotation form, and make a purchase order form visible, carrying over some of the field data from the quotation form into a new table on the Purchase order form. I've attached this form at https://workspaces.acrobat.com/?d=pqpsXx5VPi*LkMeVKrX57w if you would like to take a look. When the checkbox is unchecked, it will hid the PO form, and make the quite form visible.
    The idea behind this is that my client will create his quote and send t to his customer. Once the customer accepts the quote, he can just click a button to generate his purchase order that he will send to his supplier.
    It seems that because I've got buttons to add rows on the quote form that the problem is more complex. I would be able to do this myself if the table had a fixed number of rows and I was able to use global fields and naming each cell something different, but beacuse it's a single repeating subform, I can't seem to make it work at all.
    I understand that because its a repeating subform that I need to create an XML schema to accomplish this, but also can't figure out for the life of me how to actually create the schema. I've been reading tons of tutorials, but no clue how to apply it to my specific need. I have only been able only find info on how to bind the data source once it's been created.
    I would be forever grateful if anyone could help me out.
    Thank you!

    I've edited your form and put it here.
    Here's what I've done:
    Inserted script into your checkbox renamed Accpted that hides/shows the Purchase Order/ Sales Quotation
    I've included a scripting object with a function I wrote to transfer data from like named fields/subforms from one section to another
    Inserted a few common fields into your Purchase Order table
    What you need to do is complete the development of your Purchase Order table. Make sure the common fields between the quote and purchase tables have the same names in order to transfer the data.
    No schema necessary.
    Kyle

Maybe you are looking for

  • Re: Hard drive failing on my 1 year old Satellite A305-S6905

    My hard drive is failing on my laptop [a Satellite A305-S6905] it was a year old Feb 11'th so no warranty, now i have to pay someone to put in a new HD, pay for the HD and pay them to put a new OS in it because they don't come with Operating System D

  • Silent Uninstall Switch for FlashUtil32_11_4_402_278_ActiveX.exe

    I know I can run 'FlashUtil32_11_4_402_278_ActiveX.exe' (found in 'C:\Windows\System32\Macromed\Flash') manually, but I'd like to automate the removal process to avoid having the user click on anything.  (I want zero user interaction!) Are there any

  • Refurb vs New

    First off, I'd like to apologize for putting this in possibly the wrong catagory, but I've always gotten excellent responses from everyone here so I'd like to know your opinion. I'm planning on buying a 27" iMac when my tax return comes. I'm going ba

  • Oracle ADF simple question...

    Hi All, I have 2 EOs/VOs. One AM and 2 datacontrol. EO1/VO1 is used to display af:table with multiple rows as below with button on each row to a popup (that is based on EO2/VO2) Main page EMP1 popupbutton EMP2 popupbutton Commit Rollback Popup Page c

  • How to convert wma files for iTunes

    I will appreciate any help from anyone who shows me how to play wma audio files in Itunes. I do not want to use an outside non-Apple  audio video converter. The quick time program plays the audio file but I do not know how to bring it in the Itunes L