The pre-selection of the Spry data selection box

Hello

I'm new here so sorry if this is in the wrong section/format

I use two data sets Spry on XML to fill 2 drop-down lists with vehicle makes and the names of connected model (there are other fields but for the sake of clarity, I'll show only these 2). The XML generated dynamically by PHP/MySQL and works very well for creating records initially. The problem I have is when I want to edit my file and so pre-Selection data in the dropdown select box. The first area is simple and works very well but the second box updates only when the first is updated by using the 'onchange' and I can't update when loading. I can get it to update 'onclick' or other events, but I need to update the second area when the page is loaded. Any ideas? I don't know there is a simple solution that with myself, but I can't see it

My code is listed below. I cut out all of the necessary code to make it more clear (I hope)

"< script src ="... /... "/ SpryAssets/xpath.js" type = "text/javascript" > < / script >

"< script src ="... /... "/ SpryAssets/SpryData.js" type = "text/javascript" > < / script >

< script type = "text/javascript" >

var dsmakes = new Spry.Data.XMLDataSet ("xmlgenmake.php", "vehicle / makes");

var dsmodel = new Spry.Data.XMLDataSet ("xmlgenmodel.php? xmlmake = {dsmakes::make}", "brands/models/model");

< /script >

< / head >

< body >

< do action = "<?" PHP echo $editFormAction;? ">" method = "post" name = "form1" id = "form1" >

< span spry: region = "dsmakes" id = "makeSelector" >

< select spry: repeatchildren = "dsmakes" id = "makeSelect" name = "make" onchange = "return [0].modelSelect.disabled = true;" dsmakes.setCurrentRowNumber (this.selectedIndex); ">

< option spry: If = ""{dsmakes::make}"== ' <?" PHP echo $row_Recordset1 ['make'];? ' > ' ' value = '{dsmakes::make}' selected = "selected" > {dsmakes::make} < / option >

< option spry: If = "" {dsmakes::make}"! = ' < ? PHP echo $row_Recordset1 ['make'];? ' > ' "value ="{dsmakes::make}"> {dsmakes::make} < / option >

< / select >

</span > < span spry: region = "dsmodel" id = "modelSelector" >

< select spry: repeatchildren = "dsmodel" id = "modelSelect' name 'model' = >

< option spry: If = ""{dsmodel::model}"== ' <?" PHP echo $row_Recordset1 ['template'];? ' > ' ' value = '{dsmodel::model}' selected = "selected" > {dsmodel::model} < / option >

< option spry: If = "" {dsmodel::model}"! = ' < ? PHP echo $row_Recordset1 ['template'];? ' > ' "value ="{dsmodel::model}"> {dsmodel::model} < / option >

< / select >

</span >

< / body >

< / html >

He solved it myself!

Just had to add the below to allow to load and activate the boxes to fill out before you can set the position of the page.

Thanks to Gramps for trying.

Tags: Dreamweaver

Similar Questions

  • Make the spry data in a hyperlink?

    I use a Spry data set that uses a doc xml created by another program.  What I want to do is make this: < td > {name} < table > wise into a hyperlink like www.somesite\name\anotherpage.htm where the name is taken from repeating data in line with the table...?

    Any suggestions?

    TIA!

    In the markup, use the anchor tag as in

    http://www.somesite/name/ {name} .htm "> {name}"

  • Hand cursor with the line of the Spry data set

    I carefully built a Spry - a table - with a corresponding region of detail data set, following the instructions in the Adobe video workshop. Everything works, including the row headers clickable to use lines and activation of the changes in the retail area. BUT I can't get the hand cursor appears (at the place of arrow or the sliders of the i-beam) on interactive areas. Tried creating null links (href = "#") to activate the hot words (it works) but which causes actual links on the page to insert the root of my site in front of the URL to other sites.
    Here's the example page
    I looked at the code on the model and may not know what I am doing wrong.

    Help! and thank you.

    I carefully built a Spry - a table - with a corresponding region of detail data set, following the instructions in the Adobe video workshop. Everything works, including the row headers clickable to use lines and activation of the changes in the retail area. BUT I can't get the hand cursor appears (at the place of arrow or the sliders of the i-beam) on interactive areas. Tried creating null links (href = "#") to activate the hot words (it works) but which causes actual links on the page to insert the root of my site in front of the URL to other sites.
    Here's the example page
    I looked at the code on the model and may not know what I am doing wrong.

    Help! and thank you.

  • Add icon w/link to the table of the Spry data set

    I placed an icon inside a table data cell, then tried to give him a hyperlink to a clip. However, the link appeared as underlined text in the cell of the table under the icon.

    Then I tried to type the HTML code in code view, and this is what it looked like. It also did not work the display page:

    "< td align ="center"> < img src =" graphics/speaker.jpg"width ="29"height ="30"/ > < img src =" graphics/movie.jpg "a href="graphics/melanoma1.wmv"/ > < table >

    How I would make the icon itself launch the WMV clip?

    Thank you!

    How I would make the icon itself launch the WMV clip?

    By using the appropriate syntax.

    
    

    If you do not border link Hypertext for image links, add this to your CSS:

    an img {border: none ;}}

    --
    Mark A. Boyd
    Keep-on-Learnine :-)

  • DateFields 5.0 + operating systems. Impossible to select the current date.

    Have a slight situation.    Have a date with the value field by default of - etc.   The user is not able to select the current date, and must choose another date and what to do again to select the current date.

    This works very well in the pre - 5.0 OSes, but does not work with 5.0 +.

    The date field popup works fine, but if the user tries to select the current date, it is not get populated in the date field.

    I see what you mean now.  I connected it the Issue Tracker here: https://www.blackberry.com/jira/browse/JAVAAPI-1163

  • DateField, can not be able to select the current date

    Hai,

    I use DateField in my application. Initially, the date field is showing-/-/---(JJ/MM/AAAA) this format. So if I click on this field to date I can't able to select the current date. If I go on any later date or past date and define it and that I can not choose the current date.

    Hai,
    Thax for your quick response...
    I found this question in "Issue Tracker" here: https://www.blackberry.com/jira/browse/JAVAAPI-1163

  • Select the XML data

    Dear all,

    Please find a list of the steps done to read the date of conversion of currency by the last final query, that I can be able to obtain the release of the name of the Bank as the Central Bank, but impossible to extract the time, rates, currency of the XML data.

    Please tell us how to solve the problem.

    CREATE TABLE url_tab

    (

    URL_NAME VARCHAR2 (100),

    SYS URL. URIType

    );

    INSERT INTO url_tab VALUES

    ("This is a test URL',

    sys . UriFactory.getUri ("http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml" "")

    );

    INSERT into xml_data_tab select sys.xmltype.createXML (u.url.getClob ()) in u url_tab;

    Select Bank_name, xt1.* from

    XMLTable (XMLNamespaces (default 'http://www.ecb.int/vocabulary/2002-08-01/eurofxref', ))

                                   ' ( http://www.GESMES.org/XML/2002-08-01 ' as "gesmes"),

    ' / / gesmes:Envelope'

    FROM (select * from xml_data_tab)

    columns

    Path of varchar2 (100) Bank_name ' / gesmes:Envelope / gesmes:Sender / gesmes:name',

    outer join left perv_t XMLTYPE PATH "Cube/Cube")

    XMLTable (XMLNamespaces ('http://www.gesmes.org/xml/2002-08-01' as "gesmes"), )

    "/ / Cube/Cube."

    FROM (select * from xml_data_tab)

    COLUMNS

    path of varchar2 (100) of rate_date "@time"

    path varchar2 (100) coin "@currency."

    path of rate varchar2 (100) '@rate') xt1 on 1 = 1

    its work for me

    SQL > with xml_data_tab like)

    2. Select XMLType)

    3'http://www.gesmes.org/xml/2002-08-01' xmlns ="http://www.ecb.int/vocabulary/2002-08-01/eurofxref" >. "

    4 reference rate

    5

    6 the European Central Bank

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    17

    18

    19

    20

    21

    22

    23

    24

    25

    26

    27

    28

    29

    30

    31

    32

    33

    34

    35

    36

    37

    38

    39

    40

    41

    42

    43 ') as the double DATA

    44)

    45 select Bank_name, xt1. RATE_DATE, xt2.*

    XMLTable 46 (XMLNamespaces (default 'http://www.ecb.int/vocabulary/2002-08-01/eurofxref',

    47'http://www.gesmes.org/xml/2002-08-01"as"gesmes"),"

    48 ' / / gesmes:Envelope'

    49 FROM (select * from xml_data_tab)

    50 columns

    51 way of varchar2 (100) of Bank_name ' / gesmes:Envelope / gesmes:Sender / gesmes:name',

    52 perv_t XMLTYPE PATH 'Cube'):

    53 left outer join XMLTable (XMLNamespaces (default 'http://www.ecb.int/vocabulary/2002-08-01/eurofxref'),

    54                         '*'

    55 in PASSING (h.perv_t)

    56 COLUMNS

    path of varchar2 (100) 57 rate_date "Cube/@time."

    58 rate_data XMLType path ' / / Cube/Cube ') xt1 on 1 = 1

    59 left outer join XMLTable (XMLNamespaces (default 'http://www.ecb.int/vocabulary/2002-08-01/eurofxref'),

    60 ' / / cube/Cube/Cube. "

    61 FROM (select * from xml_data_tab)

    62 COLUMNS

    path of VARCHAR2 (3) currency 63 "@currency."

    number 64 path "@rate" rate) xt2 on 1 = 1;

    BANK_NAME RATE_DATE HEART RATE

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

    2015 Central Bank European-12-30 US $ 1.0926

    30-12-2015 of the European Central Bank JPY 131.66

    2015 Central Bank European-12-30 BGN 1.9558

    2015 Central Bank European-12-30 CZK 27.029

    30-12-2015 of the European Central Bank DKK 7.4625

    2015 Central Bank European-12-30 GBP.73799

    30-12-2015 of the European Central Bank HUF 313,15

    2015 Central Bank European-12-30 PLN 4.24

    30-12-2015 of the European Central Bank, RON 4.5296

    2015 Central Bank European-12-30 SEK 9.1878

    2015 Central Bank European-12-30 CHF 1.0814

    BANK_NAME RATE_DATE HEART RATE

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

    2015 Central Bank European-12-30 NOK 9.616

    30-12-2015 of the European Central Bank 7.637 HRK

    30-12-2015 of the European Central Bank RUB 79.754

    30-12-2015 of the European Central Bank TRY 3.1837

    2015 Central Bank European-12-30 AUD 1.499

    30-12-2015 of the European Central Bank BRL 4.259

    2015 Central Bank European-12-30 CAD 1.5171

    2015 Central Bank European-12-30 CNY 7.091

    2015 Central Bank European-12-30 HKD 8.4685

    30-12-2015 of the European Central Bank IDR 15081.33

    30-12-2015 of the European Central Bank, ILS 4.2606

    BANK_NAME RATE_DATE HEART RATE

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

    30-12-2015 of the European Central Bank INR 72.535

    30-12-2015 of the European Central Bank 1284.79 KRW

    2015 Central Bank European-12-30. 18.8867 MXN

    30-12-2015 of the European Central Bank MYR 4.6887

    2015 Central Bank European-12-30 NZD 1.5959

    30-12-2015 of the European Central Bank PHP 51.281

    30-12-2015 of the European Central Bank SGD 1.5449

    2015 Central Bank European-12-30 THB 39.334

    30-12-2015 of the European Central Bank ZAR 16.8847

    31 selected lines.

  • How to select the csv data stored in a BLOB column as if it were an external table?

    Hi all

    (Happy to be back after a while! )

    Currently I am working on a site where users should be able to load the data of csv (comma is the separator) of their client machines (APEX 3.2 application) in the Oracle 11.2.0.4.0 EE database.

    My problem is:

    I can't use an external table (for the first time in my life ) so I'm a little clueless what to do as the csv data is stored by the application of the APEX in a BLOB column, and I'm looking for an elegant way (at least SQL PL/SQL/maximization) to insert the data into the destination table (run validations by a MERGER would be the most effective way to do the job).

    I found a few examples, but I think they are too heavy and there could be a more elegant way in Oracle DB 11.2.

    Simple unit test:

    drop table CBC purge;

    drop table dst serving;

    create table src

    (myblob blob

    );

    create table dst

    (num number

    , varchar2 (6) str

    );

    Insert in src

    Select utl_raw.cast_to_raw (1; AAAAAA ;'|| Chr (10) |

    2; BATH; »

    )

    Double;

    Desired (of course) output based on the data in table SRC:

    SQL > select * DST;

    NUM STR

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

    1 ABDELKRIM

    2 BATH

    Does anybody know a solution for this?

    Any ideas/pointers/links/examples are welcome!

    / * WARNING: I was 'off' for about 3 months, then the Oracle - the part of my brain has become a bit "rusty and I feel it should not be so complicated as the examples I've found sofar ' * /"

    Haha, wonder about regexp is like the blind leading the blind!

    However, it's my mistake: I forgot to put the starting position setting (so 1, 2, 3,... was in fact the starting position, not the nth occurrence. duh!)

    So, it should actually be:

    select x.*
    ,      regexp_substr(x.col1, '[^;]+', 1, 1)
    ,      regexp_substr(x.col1, '[^;]+', 1, 2)
    ,      regexp_substr(x.col1, '[^;]+', 1, 3)
    ,      regexp_substr(x.col1, '[^;]+', 1, 4)
    ,      regexp_substr(x.col1, '[^;]+', 1, 5)
    ,      regexp_substr(x.col1, '[^;]+', 1, 6)
    from  src
    ,      xmltable('/a/b'
                  passing xmltype(''||replace(conv_to_clob(src.myblob), chr(10), '')||'')
                  columns
                    col1 varchar2(100) path '.') x;
    

    Note: that's assuming that all the "columns" passed in the string won't be lame.

    If one of them might be null, then:

    select x.*
    ,      regexp_substr(ltrim(x.col1, ';'), '[^;]+', 1, 1)
    ,      regexp_substr(ltrim(x.col1, ';'), '[^;]+', 1, 2)
    ,      regexp_substr(ltrim(x.col1, ';'), '[^;]+', 1, 3)
    ,      regexp_substr(ltrim(x.col1, ';'), '[^;]+', 1, 4)
    ,      regexp_substr(ltrim(x.col1, ';'), '[^;]+', 1, 5)
    ,      regexp_substr(ltrim(x.col1, ';'), '[^;]+', 1, 6)
    from   src
    ,      xmltable('/a/b'
                  passing xmltype(replace(';'||replace(conv_to_clob(src.myblob), chr(10), ';')||'', ';;', '; ;'))
                  columns
                    col1 varchar2(100) path '.') x;
    
  • Select only the lines with the duplicate data in columns

    Hello

    I try to find roles here in duplication.  I created a script for me the employee, the name of the State, the title of the post, the end date and the union_id.

    Select
    p.emp_no,
    p.Surname | «, » || p.Forenames,
    p.person_status,
    j.job_title,
    j.end_date,
    j.union_id

    person p
    inner join appointee_history ah on trim (ah.emp_no) = trim (p.emp_no) and ah.change_date = (select max (change_date) in the appointee_history where ah.emp_no = emp_no)
    join in-house job j on trim (j.job_title) = trim (ah.job_title) and trim (j.org_unit) = trim (ah.org_unit)
    where j.change_date = (select max (j2.change_date) of j2 work
    where trim (j2.job_title) = trim (j.job_title) and trim (j.org_unit) = trim (j2.org_unit))

    and p.person_status like 'a % '.
    and p.emp_no not like 9% '
    and j.union_id is not null
    order of j.union_id

    However, I'm looking only for duplication through the union_id. I tried a having count (*) > 1 but the emp_no is configured to be separate, and I get and not a single - group function error.

    Can anyone recommend a way to do this please?   I would be very grateful.

    Hello

    2729819 wrote:

    ...  So the expected results.

    See you soon

    This is what produces the query I posted earlier, if you use the new table and the columns and (unlike me) come out MORE correctly:

    WITH got_cnt AS

    (

    SELECT emp_no

    person_status

    function

    union_id

    COUNT AS NTC (*) OVER (PARTITION BY union_id)

    SAMPLE

    )

    SELECT person_status, emp_no, union_id, function

    OF got_cnt

    WHERE cnt > 1

    ORDER BY union_id

    ;

    You can get the same results with the COUNT aggregate function, but it should be faster, because it requires only a single pass through the table.

  • How can I select the first date (at least) and the corresponding date of two different tables source?

    I have 2 tables, INVOICE and INVOICE_REFNUM similar to below. I'm writing a query that withdrawing the first date (less) for a single record remaining the two tables. Each table records the receipt of invoices, but according to the source of the received invoice some may reside in INVOICE_REFNUM and others the INVOICE table. I also use DECODE on the topic of INVOICE_SOURCE, when the date less is taken from the INVOICE table that contains that field, so if the date is in the field INVOICE_REFNUM DECODE is not necessary. Example:

    INVOICE (table)

    INVOICE_GID INVOICE_SOURCE INSERT_DATE

    ABC. AVRT123 I HAVE 11/03/2012-15:49:32

    ABC. CNWY234 G 12/03/2012 14:07:30

    ABC. UPGF678 M 15/03/2012 20:21:54

    INVOICE_REFNUM (table)

    INVOICE_GID INVOICE_REFNUM_QUAL INVOICE_REFNUM_VALUE INSERT_DATE

    ABC. AVRT123 SOURCE ACS 11/03/2012 14:49:32

    ABC. CNWY234 SOURCE CSA 12/03/2012 13:07:30

    ABC. UPGF678 SOURCE ACS 15/03/2012 21:21:54

    My decode statement is: DECODE ("INVOICE_SOURCE, 'I', 'IDE', 'G', ' Auto-Pay", ', 'Manual')

    If I were to write a query on these two tables, the output will resemble the following:

    INVOICE_GID INVOICE_SOURCE INSERT_DATE

    ABC. AVRT123 ACS 11/03/2012 14:49:32

    ABC. CNWY234 ACS 12/03/2012 13:07:30

    ABC. UPGF678 Manual 15/03/2012 20:21:54

    I worked on it for 2 days, and I was able to pull a date by using the following SQL code, but cannot determine how to extract the corresponding source:

    SELECT THE LEAST (GLOGOWNER. INVOICE_REFNUM. INSERT_DATE, GLOGOWNER. THE INVOICE. INSERT_DATE) AS 'DATE OF THE INVOICE.

    GLOGOWNER. THE INVOICE. INVOICE_GID,

    DECODE (GLOGOWNER. THE INVOICE. INVOICE_SOURCE, 'I', 'IDE', 'G', 'Auto-Pay', ', 'Manual').

    GLOGOWNER. INVOICE_REFNUM. INVOICE_REFNUM_VALUE

    OF GLOGOWNER. INVOICE

    LEFT JOIN GLOGOWNER. INVOICE_REFNUM

    ON GLOGOWNER. THE INVOICE. INVOICE_GID = GLOGOWNER. INVOICE_REFNUM. INVOICE_GID

    WHERE GLOGOWNER. INVOICE_REFNUM. INVOICE_REFNUM_VALUE = "ACS."

    AND GLOGOWNER. INVOICE_REFNUM. INVOICE_REFNUM_QUAL_GID = 'SOURCE '.

    AND GLOGOWNER. THE INVOICE. INVOICE_TYPE = 'I '.

    ORDER OF GLOGOWNER. THE INVOICE. INVOICE_GID

    Any help is greatly appreciated!

    Best regards

    -Adam

    Hello

    Is that what you want?

    SELECT i.invoice_gid

    CASE

    WHEN ir.insert_date<= i.insert_date ="" then ="">

    WHEN i.invoice_souce = 'I' and THEN 'EDI '.

    WHEN i.invoice_souce = 'G' THEN 'debit '.

    WHEN i.invoice_souce = am' THEN 'manual '.

    END AS invoice_source

    , The LEAST (i.insert_date, ir.insert_date) AS insert_date

    I have the Bill OF

    JOIN invoice_refnum ON i.invoice_gid = ir.invoice_gid ir

    WHERE ir.invoice_refnum_value = 'ACS '.

    AND ir.invoice_refnum_qual_gid = 'SOURCE '.

    AND i.invoice_type = 'I '.

    ORDER BY i.invoice_gid

    ;

    There is no reason to do an outer join if you only want the lines with specific values anyway.

    What happens if the 2 tables have exactly the same invoice_date?  The query above takes the invoice_source of invoice_refnum in this case, but that can easily be changed.

    Or the other of the insert_dates can be NULL?

    I hope that answers your question.

    Otherwise, thank you post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also after the results you want from these data (otherwise what you have already posted).

    Explain, using specific examples, how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002#9362002

  • You can select the XMLTYPE data in shape without withdrawal, a query.

    I need to select data XMLTYPE among relational as an element XML data

    SELECT

    XMLSERIALIZE (DOCUMENT

    XMLELEMENT ("account,

    XMLATTRIBUTES (LPAD(ROWNUM, 10, '0') AS "recordId")

    XMLELEMENT ("Header",

    XMLELEMENT ("AccountId"

    XMLELEMENT ("AccountNumber", car.acc_nbr)))

    XMLELEMENT ("CreditPurpose", car.credit_purp)

    XMLELEMENT ('AccountType', car.acc_type)

    , (cdx.cus_dtls)-/ * THIS XMLTYPE IS data * /

    ()) AS crdtrpt

    Cus_dtls_xml cdx Cus_acc_rpt CAR

    WHERE car.ar_id = cdx.ar_id

    Here cdx.cus_dtls need to be selected in the form without withdrawal (each recorded uninterrupted time string data). While I can be rolled UP huge number of records in a short time.

    I'm trying to convert CLOB and Insert into a column of type CLOB in a table.

    But XMLSERIALIZE does not serialize the xml data in the cus_Dtls column.

    However it serializes the data of selected xml type other than cus_dtls.

    To meet the requirements quick tips will be very welcomed!

    Bravo!

    Sofiane

    Use XMLSerialize with option no. DASH:

    SELECT XMLSERIALIZE (DOCUMENT

    XMLELEMENT ("account,

    ...

    )

    NO DASH

    ) AS crdtrpt

    Cus_dtls_xml cdx Cus_acc_rpt CAR

    WHERE car.ar_id = cdx.ar_id

  • Select the last Date of multicolumn and its value adjustent cust_id

    I have a Table with 5 customer_id and 5 Dates with each belonging to its cust_id.

    I need to take the last, in my example would be CUSTID_5.  I know

    this with the GREATEST who select the CHANGE_DATE_5 (in my example), but

    How to choose the CUSTID_x? that goes along with the winning Date?

    create table test_tbl)

    number of custid_1

    date of change_date_1,

    number of custid_2

    date of change_date_2,

    number of custid_3

    date of change_date_3,

    number of custid_4

    date of change_date_4,

    number of custid_5

    date of change_date_5

    );

    INSERT INTO test_tbl

    (CUSTID_1, CHANGE_DATE_1, CUSTID_2, CHANGE_DATE_2, CUSTID_3, CHANGE_DATE_3, CUSTID_4, CHANGE_DATE_4, CUSTID_5, CHANGE_DATE_5)

    VALUES

    (111, sysdate, 222, sysdate + 1, 333, sysdate + 2, 444, sysdate + 3, 555, sysdate + 4);

    commit;

    Hello

    Here's one way:

    WITH unpivoted_data AS

    (

    SELECT custid, change_date

    , EVALUATE () OVER (ORDER BY change_date DESC) AS r_num

    OF test_tbl

    UNPIVOT ((custid, change_date)

    Label ((custid_1, change_date_1) AS 1)

    , (custid_2, change_date_2) AS 2

    , (custid_3, change_date_3) AS 3

    , (custid_4, change_date_4) AS 4

    , (custid_5, change_date_5) AS 5

    )

    )

    )

    SELECT custid, change_date

    Of unpivoted_data

    WHERE r_num = 1

    ;

    Having several columns for several occurrences of basically the same thing is a bad table.  This problem would be much simpler, but also more effective if each pair custid/change_date has been strored on a separate line.  In addition, you would not be limited to 5 pairs.

  • Select the query to select the month range based on the current date.

    It's the database 10 g oracel.

    I want to choose two months of data in the table. But these two months should be based on the current date.

    For example.

    If I run the select query on July 7, 2013, then the query must ignore the current month being July 2013 and last month, which is June 2013 and it shoud select only may 2013 and April 2013.

    Can someone help me how to make this request.

    SELECT *.

    FROM my_table

    WHERE my_date > = TRUNC (ADD_MONTHS (sysdate,-3), 'MY') - first day of the month 3 months ago

    AND my_date< trunc(add_months(sysdate,-1),'mon')="" --="" first="" day="" of="" last="">

  • The display of a box of af: as pre-selected selectManyCheckbox

    Hello


    I'm new to ADF. I need to display a checkbox as preselected selectManyCheckbox.


    Code in my .jspx is
    < af:selectManyCheckbox id = "smc4' autoSubmit ="true"value =" #{bean.beanSelectedList} ">"
    < f: selectItems value = "#{bean.listofItemsToShow}" id = "ssi4" / > "
    < / af:selectManyCheckbox >

    listofItemsToShow:-fill the box names.

    listofItemsToShow.add (new SelectItem(1,"Name1"));
    listofItemsToShow.add (new SelectItem(2,"Name2"));
    listofItemsToShow.add (new SelectItem(3,"Name3"));
    beanSelectedList:-bring the list of the selected ID...

    Suppose I want to show checkbos with the id 1 as pre-selected, how can I achieve it? Please help me. With the help of ADF 11.1.1.5.0 (11g)

    Published by: 924834 on July 24, 2012 05:05

    Try this.

    private Object[] beanSelectedList={1,2}; 
    
        public void setBeanSelectedList(Object[] beanSelectedList) {
            this.beanSelectedList = beanSelectedList;
        }
    
        public Object[] getBeanSelectedList() {
            return beanSelectedList;
        }
    
    
    

    Arun-

  • DropDownList as renderer, how to pre-select an item in the DropDownList control?

    People in the original documents have given height stored as 1, 2, 3

    1 = tall

    2 = medium

    3 = short

    DropDownList in the DataGrid displays the height in option name.  The requirement is when the page is loaded for the first time, control DropDownList for each record must indicate the original data of the height. How to do?

    Thanks for all the ideas.

    <?xml version="1.0" encoding="utf-8"?>
    <!-- Simple example to demonstrate the MXDataGridItemRenderer control -->
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"    
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx">
        
        <fx:Declarations> 
            <!-- Data provider for the DataGrid -->
            <s:ArrayCollection id="dp1">
                <fx:Object firstName="Alex" enumValue="1"/>
                <fx:Object firstName="Britanny" enumValue="2"/>
                <fx:Object firstName="Charlie" enumValue="3"/>
                <fx:Object firstName="Douglas" enumValue="1"/>
                <fx:Object firstName="Eric" enumValue="2"/>
                <fx:Object firstName="Frank" enumValue="2"/>
            </s:ArrayCollection>        
        </fx:Declarations>
        
        <s:Panel width="75%" height="75%" title="MXDataGridItemRenderer Example" horizontalCenter="0" verticalCenter="0">
            <!-- Halo DataGrid -->
            <mx:DataGrid id="dg1" height="200" width="300" editable="true" dataProvider="{dp1}">
                <mx:columns>            
                    <!-- Column 1 -->
                    <mx:DataGridColumn dataField="firstName" headerText="Name" />
                    <!-- Column 2 -->
                    <!-- itemRenderer used as the itemEditor via rendererIsEditor flag -->
                    <mx:DataGridColumn dataField="enumValue" headerText="Size" editorDataField="editValue" rendererIsEditor="true">
                        <mx:itemRenderer>
                            <fx:Component>                            
                                <s:MXDataGridItemRenderer height="22" >     
                                    <!-- function to set the value selected by the user -->
                                    <fx:Script>
                                        <![CDATA[                                
                                            public function get editValue():* {
                                                return ddl.selectedItem;
                                            }
                                        ]]>
                                    </fx:Script>
                                    <!-- DropDownList used as renderer and itemEditor -->
                                    <s:DropDownList id="ddl" width="100%" height="100%" labelField="HeightName" selectedItem="{data.enumValue}">
                                        <s:dataProvider>
                                            <s:ArrayList>
                                                <fx:Object HeightID="1" HeightName="Tall" />
                                                <fx:Object HeightID="2" HeightName="Medium" />
                                                <fx:Object HeightID="3" HeightName="Short" />
                                            </s:ArrayList>
                                        </s:dataProvider>
                                    </s:DropDownList>
                                </s:MXDataGridItemRenderer>
                            </fx:Component>
                        </mx:itemRenderer>
                    </mx:DataGridColumn>                 
                </mx:columns>
            </mx:DataGrid>    
        </s:Panel>          
    </s:Application>
    

    Hi Alex,

    Please find the code to work for your problem. I did it in Flex3... but you can do even in Flex4.

    Since it is just a function in your script. Check out the code below:


    http://www.Adobe.com/2006/mxml">
       
                             
    ]]>
       


           
           
           
           
           
           
       
      
           
       
    paddingTop = "10" paddingLeft = "10" paddingRight = "10" paddingBottom = "10" >
           
            
             
             
              
                                        
                
                 
                     
                         
                         
                         
                     

                 

                 
                  Import mx.collections.ArrayCollection;
                  
    private function setDDLSelectedItem (): void
    {
    var ddlDP:ArrayCollection = this.dataProvider as ArrayCollection collection;
    for (var intLoop:int = 0; intLoop<>
    {
    var v1:int = data.enumValue;
    var v2:int = ddlDP.getItemAt (intLoop). HeightID
                    
    If (data.enumValue is ddlDP.getItemAt (intLoop). HeightID)
    {
    this.selectedIndex = intLoop;
    break;
    }
    }
    }
    ]]>
                

             

               

              

             

            

           

       

    If this post answers your question or assistance, please mark it as such.

    Thank you

    Jean Claude Chari

Maybe you are looking for

  • Setup

    Used this multi-function model to be printed.  Do not require fax and scan features. When I turned it on, the printer is enabled. Worked well. Recently, after that paper jam won print, due restart the system and the psc 2210xi. Now, when the unit is

  • Ergonomics of Linux lost after Firmware upgrade

    I use my rocket for some time, with no major problems, using Ubuntu. But recently I've updated the firmware to V01.02.28 (using Windows) and now every time I connect Ubuntu the thing crashes with a message 'written', and I am unable to mount. I tried

  • no login to 3750G after upgrade to 15, 0 - 2.SE3

    I just did a test upgade to a unit of 15, 0-2SE2 to 15.0.2 - SE3 after that reload Ganymede no longer works and the console, remote ssh, telnet access no longer works.  I get console access if it starts the switch without having an uplink. TAC newspa

  • Is it possible to simulate a click on a button?

    HelloI want to click on a button by using a script in acrobat pro dc, how can I do this?

  • Could not import my Canon G3X to Lightroom

    I bought a Canon G3X for when I want a small camera.  Only, I shoot in raw, but I can't import my files into Lightroom 5.  What should I do?