XML - a list of possible values for filtering

Hello world

I have a bunch of data from AMFPHP to be edited by flex. The data is a combination of data is is attached to various SQL tables. The format is similar to:

< date = October 10, 2008 ">"
... < grade_number rank = "1" >
... < name of the subject 'English' = >
... < name type = 'homework' >
... < input id = "1" >
... < entry_e > create new homework < / entry_e >
... < date > 10/10/2008 < / date >
... < object > 10/10/2008 < / topic >
... < Adder > 1 < / Adder >
... < / Entry >
...

I used to send these data on an object, and then use a collection of grouping and a filter function to extract relevant data when an opportunity chose the date, subject, category, type. This barely worked and given with the binding problems. I feel, the best solution is to use an EX4 object instead. To do this, however, I need the following information:
-A list of all possible values for each grade, subject, date and type. These values would then fill controls to choose fields to filter data to allow the user to drill down to the entry they wish to change.

I'm on the right track with this idea? How do you get a single list of all possible values, you can filter the dataset? It is d ' assign focus in the books about how to filter data with an e4x expression, but little discussion of how to get all possiblve values so that the filter (for example to fill a combo box that lists the possible values)

In addition, when the data is returned via an e4x expression, is a copy or a pointer to the source data? IE, if I change the data returned, does it also change it in the source data?

Thank you

Stone

I don't know how your application is designed, but does a good job up front in the design data exchange will save you tons of time/bandwidth later.

In my application, there are semi-static data, driven by the table (for example, tables search db). These data do not change frequently (for example, possible to assign grades a student 'A, B, C, D, F').

Then, the user starts the questioning of the system (for example, the list of students in a course). In the query result, the information may be changed (for example, assign a student a grade from the menu drop-down). Once all changes have been made, a 'Save' may be issued. A 'Cancel' might pull down new data (i.e., re-run the last query) and reset the visible screen to a non-altered state.

Quote:
So from what I understand you query the PB often enough?

Not really. The initial list of data loading can be slow... but we did things like caching server-side to speed up a bit. This initial list of data is retrieved only ONCE per logon session.

Queries are short and return summary of results. The entire record of the data extraction is fast enough because things are indexed on the back-end.

Quote:
I tried to limit the bandwidth by downloading a copy of the week and then classes allowing the user to "save changes". I'm not too worried about getting a data collision since the classes are unique to each connection.

Looks like your application protocol design is simple. The user logs and data are extracted by user id. The user updates the data and record visits. Fact.

In this scenario, if I'm right about your application, I would always break cela in two different HttpService calls to get a sort of simultaneous treatment. A HttpService would be responsible for downloading the data to fill in the boxes on the menu drop down. The other to download the classes for that day there.

In fact, this raises the question; the user can update the other than just the current day? If so, looks like you will need to allow the user to choose a day, extract the data for this date, allow updates/save, then choose another day to update.

In this scenario, the separation of the HttpServices is paying off, since the query to extract semi-static data to fill drop-down list boxes is done only once when the user connects to the departure.

Again, I'm not sure the design of your application, so I talk only through different scenarios.

Quote:
Therefore, there is no way to obtain the unique values of the dataset object directly?

I'm not sure that understand this issue. You would get the values to fill your combo boxes through a HttpService (for semi-static data). It can then return something like:


....
........ English Spanish Spanglish
....

....
........
....

Then you might have something like:

I hope this helps.

Tags: Flex

Similar Questions

  • possible values for limit forced help

    Hi all

    I've got table t1 with column period. The possible values for the period of the column: 1 or 2.

    How can I restrict the possible values by using the constraint?

    You can add a constraint check as follows:

    ALTER TABLE t1 ADD CONSTRAINT t1_chk CHECK (period IN (1,2))
    
  • A workflow that lists all the possible values for VirtualMachineGuestOsIdentifier

    I want to set up a workflow that will present you with a list of values VirtualMachineGuestOsIdentifier and their long name equivalents. My goal is to create a service that other people can use to select the operating system they run on a new virtual machine. It is in favour of a 'portal' that develops where users will be "order" new virtual machines and manage their existing virtual machines.

    I know I can get the list of the VirtualMachineGuestOsIdentifier of the vim file - types.xsd our vCenter server but it is a huge file and it does not list the long names for possible values of the BONES. I want to somewhat make life easier for our web developers about it.

    I know how to get a guest operating system object, if I already have the value corresponding to the call to VcVirtualMachineGuestOsIdentifier.fromString (). But if I can get a list of all possible values?

    Please and thank you.

    Colin j.

    If you want to get the values of interactively simply use the input type.

    If you want to list these programmatically, use:

    var array = Server.findAllForType("VC:VirtualMachineGuestOsIdentifier");
    
    for each (var element in array) {
        System.log(element.value);
    }
    
  • What are the possible values for APP_COMPONENT_TYPE?

    The possible values of APP_COMPONENT_TYPE documented anywhere?

    Also, I want to ask all the components in my APEX application. My current query of multiple views unions APEX (apex_application_page_items, apex_application_page_buttons, apex_application_page_regions,...)-a point of view by each component type. Is there a better way to list components?

    Thank you

    -Kris

    Select * from APEX_APPLICATION_ALL_AUTH

    View: APEX_APPLICATION_ALL_AUTH
    Description: All the authorisation schemes for all components of the Application
    Column Name Comments
    WORKSPACE Model authorization workspace
    WORKSPACE_DISPLAY_NAME Full name of the workspace
    APPLICATION_ID Number of request of authorization Scheme
    APPLICATION_NAME Name of the schema to request authorization
    PAGE_ID ID of Page authorization regime
    COMPONENT_TYPE APEX authorization schema component type
    NAME OF THE COMPONENT Name of the component system APEX authorization
    AUTHORIZATION_SCHEME Name of schema authorization
    STATUS Situation of authorisation system

    See http://eberapp.com/pls/apex/f?p=447:1301:35096966318357:CLEAR_SORT:RP, 1301:P1301_VIEW:APEX_APPLICATION_ALL_AUTH

  • error in xml problem cf10 installation - conflicting values for method of output property

    We just finished a 10 ColdFusion on Windows Server 2008 R2 installation. After dealing with some configuration issues, we are now facing a problem that we cannot understand. Searches on Google for almost nothing returned error.

    The error occurs when xmltransform is called a CFC file. The error we get from CF is:

    An error occurred during the processing of an XML document

    Cannot compile the style sheet. 1 error found.

    It is not very useful. In the error.log file - coldfusion, we have this entry:

    Error in xsl: output on column of the 2 193 row

    XTSE1560: Conflict of values for the method of output property

    Someone has ideas of how to do to solve this problem? Is this something simple that we overlooked, or a fundamental difference between the way CF10 manages xmltransform?

    Thank you

    Jamie Carter

    This tells us that there is another xsl: output defined elsewhere. Have you checked the included XSL files?

  • The possible values for fFileType when you add a file in frame files?

    Hello

    I did experiment with creating links to files in the framework Folders pane. Currently I have it works using the following parameters:

    fParentGUID: the GUID of the folder parent where the new link will be created.
    fFileType: the type of link that you want to create.
    dDocName: the name of the document to the target of the link.

    I was unable to find out what the possible values of fFileType. The value that I know is 'owner' but, my understanding of fFileType stops.

    I tried to find valid values in the 'Configuration Manager' applet (views-> FoldersFileTypes), but I'm unable to view/edit all values. It is said:
    "Cannot get to change the"FoldersFileTypes"view information. The "FoldersFileTypes" view isn't a view on a table. »
    While at the same time, it says in its description:
    "View of system on SharedObjects table FrameworkFoldersFileTypes.

    I guess then SharedObjects tables are not considered in tables (DB?). Then the question would be how to access the SharedObjects.

    Alternatively, if anyone knows of the documentation on that?

    Kind regards
    Niels

    The only two possible values are 'owner' and 'soft '.
    'soft' will create a shortcut to the item content link.
    It can be one and only one "owner" a link to a piece of content (consider this canonical location in the folder for the element tree).
    There may be several 'soft' links (shortcuts) for the content item.

  • List using select value for relationship building

    I have a form of interactive report. I have one "after Header" (LOAD) of the process running the sql commands that will fill a table with the data that the report needs for a given week.

    I have a select list element that works like a "before header" which retrieves a list of the dates in a table. Dates containing only the first day of the week for the past two years. It is called "WEEK_OF" table and the column is called "WEEK_OF_DATE".

    The default value for the select list is the first day of the current week. And then all of the first day of the week of the WEEK_OF table.

    I wish that the process of LOADING using the value in the Select list. So, to start, I would list to display the report to begin with the data of the current week and the current week.

    So I tried to use the variable: WEEK_OF_DATE (name of the element) as the start date of the report. However: WEEK_OF_DATE is null.

    Also, after that I have the status, I would choose a new date in the list and have the report automatically refreshes with the new data.

    Any ideas what I am doing wrong?

    Hi Lyle,

    When you set a default value for a selection list that should be used to filter a report, I thought it best to do using a calculation, dependent on the element is NULL and the header before running. If other calculations are based on this value, it should have the sequence number low to ensure that the value is available for those.

    Andy

  • Maximum possible value for the Maximum files per virtual folder

    Hello Experts,

    Could if it you please let me know the maximum number that can be specified for input config 'Files per virtual folder'.

    Also is there a recommended value that, for best performance?

    Thank you
    Maton

    Hello

    This limitation has been abolished with with framework files.

    Thank you
    Srinath

  • What are the possible values for a checkbox?

    I am filling a PDF with an asp.net web form. I get the filled text ok boxes, but I can't set the checkboxes. I'm testing to see if a web form checkbox is checked. If this is the case, I tried to put the value of pdf checkbox on 'on '. But this does not seem fair.

    Looks like my asp.net code:

    If CheckBox1.Checked then

    AF. SetField ("pdfbox1", "On")

    End If

    Any suggestions?

    Thank you

    The value is the value in the option "Export value", when the form is created. You can use the Acrobat JavaScript "exportValues" property to get the array of values to the same named boxes. And if you know the "trick" of the box, you can use the method "isBoxChecked" to check if a given 'widget' is checked. More information is contained in the Acrobat JavaScript documentation.

  • I use AOL for email and Firefox 9.0.1. Problem started 2 days ago. Before that I put in the two first letters of an email address and he gave me a list of possible. Now I get "undefined" for each possible instead of the email address.

    There is no problem after updating to Firefox 9.0.1. My contact list always displays as he did before that this problem occurred. When I type the first letter or two of the email address, it used to give me a list of possible. Now t shows just as "undefined" e-mail address when he gives me suggestions for the address that I type in the invoice line. This means that instead of being able to click on my choice in the possible he gives me, I have to go to my contact list, find the name and then click on it if I send email to a person. If it passes in more ways than one, I either enter the full address or use copy and paste from the list of contacts. It is a huge hassle. Any help is appreciated.

    You use like CCleaner cleaning software?

    It is possible that there is a problem with the file that stores the data for the "saved form.

    Rename or delete the formhistory.sqlite (more formhistory.sqlite - log and formhistory.sqlite.corrupt, if they exist) in the profile folder of Firefox in the case where there is a problem with the file that stores the data for the "saved form.

    Which will remove all the data forms, so you can rename formhistory.sqlite to formhistory.sqlite.sav or move the file to another folder in case you need to retrieve recorded data.

    If that worked, then you can delete the files renamed.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • NULL values for some elements of the XML reading tree

    I am confirming that I interpret correctly all the elements of a custom data XML structure defined by my application (the schema is completely under my control).  Some of the elements in my XML tree are read as NULL values, even if similar items are readind as expected.  I have checked some obvious things like misspelling the names of keys, but have not yet find the problem.  Anyone who has debugged similar questions - what else could cause this?

    Example XML:

    
        1.0.0.0
        1000
        MyAppsName
        
            
                1000
                userDefined
                StructName
            
        
    
    

    And extracted C++ w/comments at the end of each line about what I see (DataManager is my class of CRUD operations):

    In DataManager.hpp:

    QVariant mCustomDataStructsTopLevel;
    QVariantMap mCustomDataStructsTopLevelMap;
    

    In DataManager.cpp:

    mCustomDataStructsTopLevel = mXda.load(Utils::dataFilePath(customDataStructsFileName));  // XmlDataAccess; verified loading w/no errors
    mCustomDataStructsTopLevelMap = mCustomDataStructsTopLevel.toMap();
    
    qDebug() << "appName element value: " << mCustomDataStructsTopLevelMap["appName"]; // Outputs "MyAppsName" as expected
    qDebug() << "lastId element value: " << mCustomDataStructsTopLevelMap["lastId"]; // Outputs null (specifically: QVariant(, ) ) - this is NOT expected
    qDebug() << "appVersion element value: " << mCustomDataStructsTopLevelMap["appVersion"]; // Outputs null (specifically: QVariant(QString, "") )  - this is NOT expected
    

    OK, I got the feeling (and actually hoped) it was a silly mistake of face-palm on my part (compared to a problem of BB10 who had little chance of getting fixed).

    The problem is that I copy the structure of custom data from Starter to my Active dir to my data directory to first install but do not crush him on subsequent launches, as the copy in the data directory is what the user changes and relies on.  I was not a delete and reinstall on each of my iterations, so I wasn't really loading the modified versions of my XML I wanted--just, I was getting a day old stale version which was actually for the items I didn't expect NULL values for nulls.  DOH!

  • Simulator Device.xml file has a tag with an attribute of memory, what are the optional values for this attribute of the os?

    In the Device.xml file, it starts with the tags of the os. Each os has a memory attribute. What are the optional values for the attribute memory?

    Can we really control the memory for the simulators?

    0x85000F03
    0x8C000F03
    0x87000F03
    0x84001503
    0x86001503
    0x04001507
    0x0F001507
    0x0C001404
    0x0D001404
    0x0E001404
    0x0D000D04
    0x16000D04
    0x05001504
    0x07001504
    

    These values refer to specific hardware configurations are simulated.  They should not be changed.

  • Common list of values for any Application

    Hello all, I am fairly new to Apex and I am working on a project where I need to be able to select from a list of values and have set a value of session for the entire application. What makes this more complicated is that I need the list of values on almost every page of the application. Here's the basic scenario, a user connects to the first report chooses a reporting period in a drop-down list, and then when the user goes to another page in the application of the reporting period is still the same. This reporting period must be available for binding to the SQL statement for each report and I would like the list of the values on each page to show the same value as well.

    Thank you

    Shawn

    put the drop down list on page 0.

  • How do you define a value for a list item select (LOV) with Javascript?

    I am trying set the values for a group of elements in a dynamic way, based on a selection of a report. Everything works fine, but the selection list.  What I have so far is the following:

    get var = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is REFRESH_LIMIT_TYPE', $v ('pFlowStepId'));
    var gReturn = get.get ();
    $x('P10014_LIMIT_TYPE').value = gReturn;

    My guess is that a Select list of an LOV is more complicated than a text or a single display element.

    Thanks in advance for your help,

    Jim

    Thank you user - placed you me in the correct district-

    $s ('P10014_LIMIT_TYPE', gReturn); -This update value, but not the displayed value.

    Apparently LOVs require two values ('P10014_LIMIT_TYPE', return_value, display_value) $s;    Then I changed my code-

    ".. gReturn a = 44001, now = ' 44001, ASSUMPTION..."

    var args = gReturn.split(",");

    var r = args [0];

    var d = args [1];

    $s ('P10014_LIMIT_TYPE', r, d);

  • Constraint for possible values

    I have the table named "test1":

    CREATE TABLE test1)

    site_number VARCHAR2 (255),

    number of criteria_number

    criteria_value varchar2 (255));

    INSERT INTO test1 (site_number, criteria_number, criteria_value) VALUES (1, 1, 'Yes');

    INSERT INTO test1 (site_number, criteria_number, criteria_value) VALUES (1, 2, 'No');

    INSERT INTO test1 (site_number, criteria_number, criteria_value) VALUES (2, 1, 'Yes');

    INSERT INTO test1 (site_number, criteria_number, criteria_value) VALUES (2, 2, 'Probable');

    If the criteria_number is 1, then the possible values are either 'yes' or 'no '.

    If the criteria_number is 2, then the possible values are 'Yes', 'No', or 'of nature. "

    How to create a constraint on the criteria_value column or something similar that would guarantee the integrity of the data by preventing a person from inserting a line with criteria_number 1 and criteria_value '' probably '' still would allow a line to be inserted with criteria_number 2 and criteria_value "likely"?

    I am using Oracle 11g

    Use the constarint control. You does not say what criteria value may be for the number of criteria other than 1 or 2, so I guess it can be almost anything:

    ALTER TABLE test1

    ADD CONSTRAINT test1_chk1

    CHECK)

    (

    criteria_number = 1

    AND

    IN criteria_value ('yes', 'No')

    )

    OR

    (

    criteria_number = 2

    AND

    IN criteria_value ('yes', 'No', "Probable")

    )

    OR criteria_number NOT IN (1,2)

    )

    /

    Modified table.

    SQL > INSERT INTO test1 (site_number, criteria_number, criteria_value) VALUES (1, 1, 'Yes');

    1 line of creation.

    SQL >
    SQL > INSERT INTO test1 (site_number, criteria_number, criteria_value) VALUES (1, 2, 'No');

    1 line of creation.

    SQL >
    SQL > INSERT INTO test1 (site_number, criteria_number, criteria_value) VALUES (2, 1, 'Yes');

    1 line of creation.

    SQL >
    SQL > INSERT INTO test1 (site_number, criteria_number, criteria_value) VALUES (2, 2, 'Probable');

    1 line of creation.

    SQL > INSERT INTO test1 (site_number, criteria_number, criteria_value) VALUES (1, 1, 'Probable');
    INSERT INTO test1 (site_number, criteria_number, criteria_value) VALUES (1, 1, 'Probable')
    *
    ERROR on line 1:
    ORA-02290: check constraint (SCOTT. TEST1_CHK1) violated

    SQL > INSERT INTO test1 (site_number, criteria_number, criteria_value) VALUES (1, 1, 'X');
    INSERT INTO test1 (site_number, criteria_number, criteria_value) VALUES (1, 1, 'X')
    *
    ERROR on line 1:
    ORA-02290: check constraint (SCOTT. TEST1_CHK1) violated

    SQL > INSERT INTO test1 (site_number, criteria_number, criteria_value) VALUES (2, 2, 'Y');
    INSERT INTO test1 (site_number, criteria_number, criteria_value) VALUES (2, 2, 'Y')
    *
    ERROR on line 1:
    ORA-02290: check constraint (SCOTT. TEST1_CHK1) violated

    SQL > INSERT INTO test1 (site_number, criteria_number, criteria_value) VALUES (3.99, 'Whatever');

    1 line of creation.

    SQL >

    SY.

Maybe you are looking for

  • Cannot automatically receive files

    I use Skype 7.0.0.102, IE 11 win7 desktop. The option "automatically accept the received files" is checked. However, I can't receive files automatically from any contact. I work with the Jet lag, and it would be vital for me. Same problem on my lapto

  • Pavilion 20 all in one pc: my UEFI Bios does not appear when I click on the parameters of the UEFI firmware

    I have to change some settings in my bios so that I can start my CD of restoration but whenever I click on the parameters of the UEFI firmware and select restart it never brings the Bios screen.

  • Problems with Saitek Cyborg P3600 in Lego games (Star Wars The Complete Saga and Indiana Jones Adventures Oryginal)

    I have a serious problem with my Saitek Cyborg Rumble P3600. In Control Panel in Windows 7 (64-bit), all right. But when I run the Lego games, my controller is not working corectly. Only the left stick works, but the buttons are not responding; Furth

  • interruptions

    Hello. don't know if I came to the right place for help with my xoom. While surfing I keep getting interrupted by this notice "sorry, the process com.google Process.Gapps has stopped unexpectedly. PLS, try again force stop - report. recurs every minu

  • When UAC is disabled

    When UAC is disabled, is an administrator connected with a full administrator access token? Or it is connected with the standard access token (as in the case when this OPTION is enabled) and the elevation happens in silence?