[SOLVED] Property of the label of the box = MySQL column name

Hello!
I'm trying to get the value of a column in a MySQL database to link to the label of a checkbox property.
I use a Repeater to retrieve all records in the database - but what I really need, but the names of column to a table and not the lines/records.

So, is it possible to get the values of the column names in a MySQL via a PHP request directly, or I have to create a
an XML file separate that contain manually entered values?

Thanks for your help!
Kind regards
Christo

This has been resolved.

See the code below
Kenwio

THE FLEX AND PHP CODE:

Tags: Flex

Similar Questions

  • 404 error when the lowest selection (column name) for the metadata 11 g dictionary


    Hi all

    I get a 404 error when I select a column name and click the link for dictionary of metadata. I get the 404 because obiee is allowing more 179 characters for the web link. You do not get a 404 error if you click on one of the shorter column names.

    When you select the number of offices with commands and then click the metadata dictionary button you get the error 404 below and the web address is truncated causing the 404

    This is the product link

    http / / self/analyticsRes/SampleAppLite_BI0024/SubjectArea/PRCAT_Sample_Sales_Lite80cb6a2e /.

    PRT_Calculated_Facts80cb6aa9/PRC_N_of_Offices_with_Or80cb6cfb.x

    If you type the ml at the end, you can see the Web page you want. Also if you click on the area in question and then click the dictionary of metadata and access the column from here the link works.


    otn screen shot2.png

    We receive this error in our Dictionary of metadata generated, but I can also reproduce the problem with the sample app, we have placed the dictionary in the folder anlyticsRes.

    I just wanted to check to see if someone else has this problem.

    Thanks in advance!

    S. Clark

    I opened a SR and a bug has already been reported, and the solution is in the latest patch.

    Solution

    The fix for the Bug 17449036

    is included in the bundle 20124371 Patch (patch bundle 11.1.1.7.150120). See this note for more information:

    Note 1488475.1: OBIEE 11 g: required and recommended patches and Patch Sets

    There is also a one-off Patch 17449036 on top of previous patch bundle for different platforms.
    It is advisable to be in the latest patch bundle. In this case, you prefer to apply exceptional measures, you can do but
    It is not for all platforms and all the patches together.

  • IN parameter is the string of column names I want to SELECT delimited

    Hi guys,.

    Please bare with me. Not a pro at writing stored procedures.

    What I try to do is to pass a parameter of 'IN' to the proc. The setting is a varchar2 which is a comma-delimited string.
    I want to put this string in the SELECT statement.

    This setting is called "P_SelectFields".

    The value in the passage in the proc is like:
    P_SelectFields = ' CUSTOMERS SUM (CLI_SERVED) AS SUM (EI_INTC) + SUM (NEI_INTC) AS INTERVENTIONS,
    SUM (TOT_EMPRTN) AS EMP_RETURN, SUM (TOTAL_RTS) AS SCHOOL_RETURN
    "


    That's what I've got and I know that it works, if I put the string instead of the parameter it works. !

    PROCEDURE GET_NATIONAL_TOTAL_RESULTS (P_SelectFields IN varchar2, P_AGREEMENT_TYPE_IND AGREEMENT_TYPE.agreement_type_ind%TYPE, io_cursor in SYS_REFCURSOR)
    IS
    BEGIN
    OPEN FOR Io_cursor

    SELECT year_desc,
    P_SelectFields - that's where I want my partameter go.

    OF SPF_RESULT_VW
    WHERE r_num = 1 - FILTER for the LAST PERIOD for EACH YEAR
    and agreement_type_ind = P_AGREEMENT_TYPE_IND - desired FILTER FOR Agreement_type_ind
    GROUP BY year_desc
    ORDER BY year_desc
    ;

    END GET_NATIONAL_TOTAL_RESULTS;


    That's what I'm after you run the proc.

    YEAR_DESC = 2011-2012
    : B2 = SUM (CLI_SERVED) ACE, SUM (EI_INTC) CUSTOMERS + EMP_RETURN SUM (NEI_INTC) AS OF THE INTERVENTIONS, SUCH AS SUM (TOT_EMPRTN), SUM (TOTAL_RTS) SCHOOL_RETURN

    Where is ': B2 = "come from?".

    What can I do to make my parameter is "picked up" by the proc?

    Thank you

    Firstly: in relational databases, there is no distinction between 'fields '. Tables is not 'fields', they have columns.
    It is my experience that that call columns 'fields' basically treats the database as a flat file system. It's a very bad idea!

    If you want to pass as a parameter column names, you need dynamic SQL.
    However, PL/SQL was invented to reduce the analysis and using of the dynamic SQL, you'll at least soft-parse each statement.

    Dynamic SQL is obviously in the documentation, but most people here think that they don't need to read the documentation.

    So, for once
    glance

    OPEN io_cursor FOR
    'SELECT year_desc,'||
    P_SelectColumns||
    ' FROM SPF_RESULT_VW '||
    'WHERE r_num = 1 '|| --FILTER FOR LATEST PERIOD FOR EACH YEAR
    'and agreement_type_ind = P_AGREEMENT_TYPE_IND '||-- FILTER FOR desired Agreement_type_ind
    'GROUP BY year_desc '||
    'ORDER BY year_desc'
    ;
    

    Please note that I have renamed the parameter.

  • Value of the item as column name to select

    Hello

    I have a problem with the selection of the columns in the query using elements. For example: I have a request:
    Select column_a table; or select table column_b;

    and I want to do something like this:
    n ' any item where I choose the column name
    -query: select column_from_item from the tale of

    Is this possible?
    My version of the apex: 4.0.2.00.07
    My version of db oracle: oracle 11g

    Hello

    Create a report... type... as a function returning the SQL statement...

    and then you source should be something like

    declare
       my_sql_statement varchar2(1000);
    begin
       my_sql_statement := 'select ' || :p1_x || ' from table';
       return my_sql_statement;
    end;
    

    Kind regards
    Shijesh

  • Count the boxes with unique names 500 +.

    The form, I use a simple list, which has been generated in Word and converted to a form in Acrobat, it's why he has so many unique domain names.

    I found the following solution but I'm looking for something more elegant, and requires no me enter each unique name.

    At the document level feature, I added the following script:

    function CountCheckBoxes(aFieldNames) {
    // count field names that have been selected
    var count = 0;
    var cField = "";
    // loop through array of field names
    for(i = 0; i < aFieldNames.length; i++) {
    // for field names with a value of not Off increment counter
    if(this.getField(aFieldNames[i]).value != "Off") count++;
    } // end loop of field names
    // return count
    return count;
    } // end CountCheckBoxes
    
    

    I also added text field with the following custom calculation script:

    // var define field names to be tested
    var aFields = new Array('uniquename', 'anothername...etc');
    // count field names that have been selected
    event.value = CountCheckBoxes(aFields);
    

    To quickly add 500 + field names, I use a temporary field to enter any field using Pick value under calculate sum. I then cut and paste into Notepad and replace it

    , 
    

    with

    ', '
    

    "then a copy of the full text in the above code replacing"uniquename", ' anothername... etc"

    It works but it is long, and I'm hoping a code guru might have a smarter solution.

    This is the first case, not the last...

    Anyway, you can use this code, then:

    var totalCheckboxes = 0;

    var totalChecked = 0;

    for (var i = 0; i)

    var f = this.getField (this.getNthFieldName (i));

    If (f == null) continue;

    If {(f.type=="checkbox)"}

    totalCheckboxes ++;

    If {(f.value!="Off)"}

    totalChecked ++;

    }

    }

    }

    In the end totalCheckBoxes will contain the total number of check boxes in the file and totalChecked the number boxes enabled out of them.

  • In SSMS, that means the space between an alias of the table and column name mean?

    Sometimes I see this: "d.PhaseKey" instead of this "d.PhaseKey".

    I'm sure this means something is wrong in the query or table - but this gives no indication of what is wrong?

    I'm not sure on how to interpret it.

    Hello

    We have dedicated support for Microsoft SQL Server Management Studio Express forums. I would have you post your query in the MSDN Forums for assistance on this issue.

    You can check the link to post your question:

    http://social.msdn.Microsoft.com/forums/en-us/home

    It will be useful.

  • Add the string at the end of the column name

    Hi all

    I wonder whether it is possible or not. I created a similar table to another table to help-


    create table table_name in select * from table_name1;
    Now, I want to differentiate the name of the column of the previous table column names. I want to add E at the end of all column names. Is it possible using sql Command in sql or Toad workshop without doing it manually as I have more than 100 columns in this table?



    Thanks in advance.



    Kind regards



    Pascal M

    Hello

    Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
    Connected as hr
    
    SQL> create table test_1(col1 number, col2 varchar2(30));
    
    Table created
    
    SQL> create table test_2 as select * from test_1;
    
    Table created
    
    SQL> desc test_2;
    Name Type         Nullable Default Comments
    ---- ------------ -------- ------- --------
    COL1 NUMBER       Y
    COL2 VARCHAR2(30) Y                         
    
    SQL>
    SQL> DECLARE
      2     v_table_name USER_TAB_COLUMNS.TABLE_NAME%TYPE := 'TEST_2';
      3     c_column_suffix CONSTANT VARCHAR2(1) := 'E';
      4  BEGIN
      5     FOR REG IN (SELECT UTC.COLUMN_NAME
      6                   FROM USER_TAB_COLUMNS UTC
      7                  WHERE utc.TABLE_NAME = v_table_name) LOOP
      8        EXECUTE IMMEDIATE 'ALTER TABLE ' || v_table_name || ' RENAME COLUMN ' ||
      9                          reg.column_name || ' TO ' ||
     10                          substr(reg.column_name,
     11                                 1,
     12                                 29) || c_column_suffix;
     13     END LOOP;
     14  END;
     15  /
    
    PL/SQL procedure successfully completed
    
    SQL> desc test_2;
    Name  Type         Nullable Default Comments
    ----- ------------ -------- ------- --------
    COL1E NUMBER       Y
    COL2E VARCHAR2(30) Y                         
    
    SQL>
    

    Kind regards

  • The label in the box?

    using the SDK 0.9.1 I don't see all the labels are displayed to the right of my box.  Here is my code:

    //Imports
    import qnx.ui.buttons.CheckBox;
    import qnx.ui.buttons.LabelPlacement;
    
    //Code
    var check:CheckBox = new CheckBox();
    check.label = "My CheckBox";
    check.x = check.y = 100;
    check.labelPlacement = LabelPlacement.RIGHT;
    
    addChild(check);
    

    screenshot of the top left of the Simulator:

    Oh... I forgot to set the width property of the checkbox object

    check.width = 200;
    
  • How to add a password to a site labeled initailly never ask, but is not displayed in the box exceptions to remove exceptions (exceptions is empty)

    I try to have Firefox remember not a password to a website, I scored at the start 'never ask', but I can not remove it from the box "exceptions" because there is no indication in the box exceptions. This can be solved?

    In addition, I can't change the passwords in the box of saved passwords. Where are saved passwords published?

    You can delete all data stored in Firefox with a specific area through "Forget this Site" in the context menu of a history entry ("" history > view history "or" view > sidebar > History "") or via the subject: permissions page.

    Using "Forget this Site" will delete all data stored in Firefox in this area as bookmarks, cookies, words of past, cache, history, and exceptions, so be careful and if you have a password or other data from that domain you don't want to lose then check that back up these data or make a comment.

    You can't recover from this "forget" unless you have a backup of the files involved.

    It has no lasting effect, so if come back you on such a 'forgotten' site, then the data of this Web site will be saved once more.

    Compensation of the "Site Preferences" clears all exceptions for cookies, images, pop-up windows, installation of software, passwords, and other specific data from Web site.

  • On the right of the adressbox, I always have Yahoo then Google, how can I solve that, I already delete Yahoo from the list in the box search, but every time I start firefox Yahoo is back. Thanks Ron Mijtelen ter, Amsterdam.

    Question
    On the right of the adressbox, I always have Yahoo then Google, how can I solve that, I already delete Yahoo from the list in the box search, but every time I start firefox Yahoo is back. Thanks Ron Mijtelen ter, Amsterdam.

    Hi Ron,

    Have you looked at article in the Knowledge Base using the search in Firefox bar? There are lots of good information in there. You happen to have an installed Yahoo! toolbar? You must disable or delete as well if you do. Try to start Firefox in Mode safe mode by holding down the SHIFT key while starting Firefox. If you have any problems using the safe, it's a matter of add-on or extension.

    Hope this helps!

  • I try to enter the serial number to register my software, but the label outside of the box, he's starting with the letters and it does not accept the letters... . Only numbers

    I try to enter the serial number to register my software, but the label outside of the box, he's starting with the letters and it does not accept the letters... . Only numbers

    Serial numbers contain no letters, so maybe it's your redemption code, for use on adobe.com to get your serial number.

    Here are a few links to look for more information

    https://helpx.Adobe.com/x-productkb/global/redemption-code-help.html#productboxorprepaidca rd

    Quickly find your serial number

  • Trying to open the message box appears 'lightroom has encountered an error when reading the preview cache and needs to stop smoking' Lightroom "Lightroom will try to solve this problem, the next time that it launches" OK when you press closed Lightroom an

    Trying to open 5 Lightroom, a message appears 'Lightroom has encountered an error when reading the preview cache and needs to quit' "Lightroom will attempt to solve this problem, the next time he throws" when OK key Lightroom quit unexpectedly and the computer returns to the office.  This persisted for 2 days and it has not set itself.  help please.

    Click OK close Lightroom.

    You must manually go to the location of your Lightroom by Finder catalogue / file Explorer and get rid of the Previews.lrdata folder

    By default, the location would be in Pictures\Lightroom folder

  • Can not access the context property of the Interior of the ListView checkbox - onCheckedChange event

    I have a context property called "app" that connects to my C++ application. My listview has a box with onCheckedChange event listener. In this method, when I make a call to the C++ side. application app.runAction, the system displays not found error app.

    If I move the box outside the list view, it will correctly trigger app.runAction.

    Can you please take a look? Thank you!

    On the side of C++ on how I set the context property.

    QmlDocument * qml = QmlDocument::create("asset:///main.qml").parent(this);

    If (qml-> {hasErrors())}
    Returns false;
    }

    QML-> setContextProperty ("app", this);

    navigationPane = qml-> createRootObject();
    If (! navigationPane) {}
    Returns false;
    }

    QML side

     

    NavigationPane {}
    ID: nav

    {Page}
    ID: mainPage
    {Of container

    {To ListView

    listItemComponents:]
    {ListItemComponent}
    type: 'point '.
    {Of container

    Checkbox {}
    Determine whether the check box should be checked
    According to a value in the data model
    checked: ListItemData.checked
    onCheckedChanged: {}
    app.testAction ();
    }
    }

    This is a scope issue... I really hope the devs find a way to fix it properly apart from this ugly solution:

    You can solve this problem by setting your app variable in the global object Qt

    NavigationPane {
        id: nav
    
    onCreationCompleted: Qt.app = app
    
    Page {
            id: mainPage
            Container {
    ListView {
    listItemComponents: [
            ListItemComponent {
                            type: "item"
                            Container {
                       CheckBox {
                                    // Determine whether the CheckBox should be checked
                                    // according to a value in the data model
                                    checked: ListItemData.checked
                                    onCheckedChanged: {
                                         app.testAction();
                                         Qt.app.testAction();
                                    }
                                }
    

    all code in a ListItemComponent will suffer from this 'framing' question

  • Color inside the box of the item

    Is there a way to change the color inside the fiield of entry? This field could be date picker, list selection, text field or text box.

    Basically, asked me to change the color inside the box, not the box background color when it is a required field. This must be done in addition to the ' *' which indicates a required field.

    If it's important, I use the theme 15 and two legs level.

    Thank you
    Yivon

    Is there a way to change the color inside the fiield of entry?

    Yes, easy to achieve simply by setting the property color CSS to the required value. You could get the text in blue for a single item by entering style = "" color: Blue " in the attributes of elements in HTML form for the item." But you probably want to be specifying this kind of thing in the world, using a style sheet provided by the template page...

    Asked me to change the color inside the box, not the box background color when it is a required field.

    This looks much more delicate. APEX does not have anything that makes the 'required field', with respect to the generated HTML, inherently "required." There is, unfortunately, no automatically applied to the element of class "needed". It is 'necessary' because its (somewhat perverse) label there is a 'compulsory' class and there is a validation performed on presentation requiring its value is not to be null. It looks like there is not nothing output by the engine of the form which could be used as a CSS selector to style rules apply to elements, and form elements is not customizable models.

    The only "global" approach, I can see (certainly at this late hour) would be an exercise in Javascript to find labels required (not particularly trivial in itself, as the required class may be on an element that is framed by the label element, not on the label itself), get the ID of their components of the subject of the attributes to apply the desired for this item class.

    You could do this manually by entering class = "required-item" in the attributes of elements in HTML form for each item and by applying the color required in a style sheet.

  • Deleting e-mails on I-Phone delete everything in the box entrieson Thunderbird

    I have a major problem that no one - including Apple Genius Bar - can solve. I have two PCs and 2 Apple devices, all about IMAP settings. Whenever I have delete emails on my iPhone all the entries in the box on the two PCs disappear - and they are not in the Recycle Bin or deleted. Apple Genius Bar experts have repeatedly thought they had solved this problem, but all to no avail. Were originally my I - Pad devices on my PC on IMAP and POP settings, but it's the same thing. I'll be very grateful to anyone who can solve this problem.

    You say that if you delete a message on the iPhone, all the messages in the Inbox disappear, probably in Thunderbird on both PCs?

    Have you checked on the website of the the email provider? If the messages are passed here too so it's no surprise they are missing in Thunderbird. And, to be honest, it looks like a problem between the servers and the iPhone email client.

Maybe you are looking for