With the help of data contained in an event.

I'm trying to understand how to use the data of an event to set the selectedIndex of a comboBox control property.  If I hardcode the number 4, as it is in the example below, the function sets the selectedIndex property correctly.  When I run the debugger, (4) data under event.itemRenderer.data.ConstructionPhase.  However, if I try example B or C, Flex builder gives an error... D example gives no error in flex builder but then when run.  Please, how can help I get the value of the event to be used for the function?

Example has (it works, but may well hard-code the value!) :

private void fillInForm(event:Event):void {}
openAddForm();
addEditItem.label = 'Edit ';
for (var i: int = 0; i < ConstructionPh.dataProvider.length; i ++) {}

If (ConstructionPh.dataProvider [i]. ConstructionPhaseId == 4) {}

ConstructionPh.selectedIndex = i;
break;
}

}
}

Example B (Error message in flexbuilder = "" 1119: access of the itemRenderer property possibly not defined through a reference with static type flash.events.Event "")

private void fillInForm(event:Event):void {}
openAddForm();
addEditItem.label = 'Edit ';
for (var i: int = 0; i < ConstructionPh.dataProvider.length; i ++) {}

If (ConstructionPh.dataProvider [i]. ConstructionPhaseId == event.itemRenderer.data.ConstructionPhase) {}

ConstructionPh.selectedIndex = i;
break;
}

}
}

Example C (Error message in flexbuilder = "" 1120: access of undefined property itemRenderer ' ")

private void fillInForm(event:Event):void {}
openAddForm();
addEditItem.label = 'Edit ';
for (var i: int = 0; i < ConstructionPh.dataProvider.length; i ++) {}

If (ConstructionPh.dataProvider [i]. ConstructionPhaseId == itemRenderer.data.ConstructionPhase) {}

ConstructionPh.selectedIndex = i;
break;
}

}
}

Example D (no error message in flexbuilder, but the following operating... Type Error: Error #1009: cannot access a property or method of a null object reference)

private void fillInForm(event:Event):void {}
openAddForm();
addEditItem.label = 'Edit ';
for (var i: int = 0; i < ConstructionPh.dataProvider.length; i ++) {}

If (ConstructionPh.dataProvider [i]. ConstructionPhaseId == data. ConstructionPhase) {}

ConstructionPh.selectedIndex = i;
break;
}

}
}

How can I get the value of the event?  When I run the debugger with a newline at the beginning of the function, it is under event.itemRenderer.data.ConstructionPhase... how are referencing it?

Thank you very much

Mark

Cool. From what I see, you need to find a record in the drop-down list that is based on a

shared value in the record of DataGrid. So in summary, you're screwed.

No, no, I'm kidding! It's Friday and I'm looking forward to the weekend. How about you

will be too, after seeing the solution to your problem!

Answer: Search through data provider for your ComboBox for the value in the

The DataGrid SelectedItem. Then set the selectedItem of the ComboBox as a result.

So the trick is to then assign an ITEM from the dataprovider of the ComboBox

selectedItem property. Voila! Don't bother with the selectedIndex property and not looping

necessary.

Oh and another thing: when you are working with the DataGrid control, you use the

ListEvent, not the event ol ' ordinary that you were using. The ListEvent contains the

object selectedItem from the data provider. just what it takes for this method.

Oh, what? Not quite clear? Ok. Let's get this party started...

There are two things you have to remember to achieve:
(1) to find a Collection of table, you create a cursor. Just like a database.
(2) the Collection of table should be sorted before searching in it. Mandatory!

OK, here's an example I want you to try. Not knowing what your data looks like, I

had to pretend, please excuse my laughable attempts of creating classic data

that could be used in your business.

Notes:
(a) sort and find takes time on large data sets. But made a loop,

which is what you were doing.

(b) you must return the ComboBox control to its 'home' State after sorting and

research on the field, otherwise the user will see a different kind

order each time it opens.

This example implements everything above. Enjoy!
//***************************************************

http://www.Adobe.com/2006/mxml"layout ="absolute">

    Import mx.events.ListEvent;
Import mx.collections.ArrayCollection;
Import mx.collections.SortField;
Import mx.collections.Sort;
Import mx.collections.IViewCursor;
       
Data provider for the ComboBox control:
[Bindable]
public var acConstructionPhases:ArrayCollection = new ArrayCollection([)
{label: 'in progress', data: '1', idx:0},
{label: "Extended", data: '2', idx:1},
{label: "on track", data: '3', idx:2},
{label: 'Cancelled', data: '4', idx:3},

{label: "Completed", data: '5', idx:4},
{label: "Beak", data: "6", idx:5},
]);
       
Data provider for the DataGrid control:
[Bindable]
public var acEstimatesFixedItems:ArrayCollection = new ArrayCollection([)
{Function: 'Kitchen remodel', ConstructionPhaseDes: '1'},
{Function: "Bathroom remodeling", ConstructionPhaseDes: "4"},
{Function: 'Demolition of the Garage', ConstructionPhaseDes: '5'},
{Function: 'Landscaping', ConstructionPhaseDes: '2'},
{Function: 'Replacement of the roof', ConstructionPhaseDes: '6'},
]);
               
private var cursor: IViewCursor;
public var sortConstPhaseData:String; Used to determine the sort field
               
These function sort ComboBox data provider.
Nore that the data provider uses the field of 'idx' for one of the kind.
This allows me to return to the 'natural' order, "housewives."
I want the values appear in the drop-down list.
public function sortacConstructionPhases (): void {}
Sort on the field "data".
var sortAC:Sort = new Sort();
sortAC.fields = [SortField ('data') new];
acConstructionPhases.sort = sortAC;
acConstructionPhases.refresh ();
This var records which domain we sorted on:
sortConstPhaseData = "data";
}
public function unsortacConstructionPhases (): void {}
Sort on the field 'idx '.  BY DEFAULT.
var sortAC:Sort = new Sort();
sortAC.fields = [new SortField('idx')];
acConstructionPhases.sort = sortAC;
acConstructionPhases.refresh ();
This var records which domain we sorted on:
sortConstPhaseData = 'idx ';
}
public void syncComboBoxToDataGrid(event:ListEvent):void {}
Called by clicking on a row of DataGrid.
First, sort the array of ComboBox (must be made before the cursor

Search):
If (sortConstPhaseData! = 'data') {}
sortacConstructionPhases();
}
Get the value of the currently selected item ConstructionPhaseDes:
var phaseDes:String = event.target.selectedItem.ConstructionPhaseDes;
Put in the subject:
var ConstructionPhSearchObject:Object = {data: phaseDes};
Create a cursor for research on the DataProvider of the ComboBox:
cursor = acConstructionPhases.createCursor ();
Search the object in the ComboBox DataProvider:
var phaseFound:Boolean =

cursor.findFirst (ConstructionPhSearchObject);
If (phaseFound) {//If the value was found...
It is found; the data of the object found at the ConstructionPh

ComboBox.
This will ensure that the displayed value corresponds to the selected data.
var constructionPhFoundObject:Object = cursor.current;
ConstructionPh.selectedItem = constructionPhFoundObject;
}
Now, to return the ComboBox control to its original state "housewives":
unsortacConstructionPhases();
                    
}
private void setComboBoxIndex(event:ListEvent):void {}
ConstructionPh.selectedItem = event.target.selectedItem;
trace();
}
]]>
   
       
dataProvider = "{acConstructionPhases}".
labelField = "label".
prompt = "SΘlectionner one...» »
width = "244".
dropdownWidth = "200".
fontWeight = 'normal '.
x = "158" y = "50" >
           
       
       

Width = "396".
itemClick = "syncComboBoxToDataGrid (event)" > "
       

//***************************************************

Tags: Flex

Similar Questions

  • With the help of data from the database on my Web page

    Hello

    This is probably a simple great question, so I apologize in advance. I looked through a lot of information on BC and I can't seem to find the answer to my question (although a lot of it seems to go over my head that I'm a n00b full BC., and I feel that my hands are tied without being able to just stir up the something in Python or PHP!).

    I am trying to create a Web page that displays a single product (the entire site exists just for 1 product), and the user can click on the color chart of different color in order to customize it. I would like my client (owner of site) so you can easily add new colors (using the hexadecimal code) for different parts of the product.

    So I basically just need a place where the client can enter these values, and then I can write on my page in JavaScript format and build dynamic page using JavaScript.

    It seemed that the way to do would be to create a new "Web App" inside the BC. I did, and I created a "Web App Item" called "Data". Under "Data", I added a 'field Item' named 'Color', which is a multiline text area. I entered a few different hexadecimal codes like this:

    000000

    FFFFFF

    003366

    (I thought that I can analyze the lines with JS)

    The problem, I comes across however, is to know how to enter these data in my source code on my Web page? I created a Web page and I put the code in it:

    {module_webapps, 6042, one,}

    but this will display a list of links, with a link to 'Data', and then if you click on "Data" you go to a separate web page that says only: "Data" in this topic. Very strange.

    Is there a way I can get the data entered here in the source of my Web page? (Or is there a better way to do it?)

    As a more general question... It's basically just how use BC as a CMS and have custom fields that you can then access your web page. A bit like plugin, WordPress Advanced Custom Fields, if you're familiar with that. (I know that's not WordPress, but just a way that I can access certain values that my client has entered in)

    Thanks in advance!

    Heather

    You may be better to use electronic commerce and assign different attributes for your colors?

  • With the help of &amp; quot; contains &amp; quot; and it does not work for me.

    Hey everybody, thanks for your help. Here's what I'm trying to do:

    < cfif #address # contains "Washington" > you can not access this site. < other > access granted. < / cfif >

    I want to be able to have my site perform certain actions based on the street, that the person feeds. They enter their address in a form, that information is then verified when they submit. If they enter 1234 Washington Street, I think that the above line would be that Washington contained in this string. I tried several times and have had no luck.

    Any suggestions?

    Thanks for the help. I understood where the problem was. This is the problem by trying to fix the bugs of programmers on drugs... lol

    The problem is in the code it says .

    What was going on in this code was just after the definition of the error, the code then was

    Your suggestions help me to find this because I tried both of your suggestions and none worked so I thought, there is something wrong in this code.

    In any case, thanks for you help.

  • a request IN with the help of date comparison

    I have 2 tables.

    first table has email, keywords, date.

    -drop table email_tbl;

    create table email_tbl)

    e-mail varchar2 (500),

    keyword varchar2 (500),

    create_date date

    );

    -Select * from email_tbl

    insert into email_tbl values (' [email protected]', 'Hello', sysdate);

    insert into email_tbl values (' [email protected]', 'Hello again', sysdate);

    insert into email_tbl values (' [email protected]', 'test', sysdate);

    insert into email_tbl values (' [email protected]',' Yes, sysdate);

    insert into email_tbl values (' [email protected]', 'no', sysdate);

    second table has 3 fields of description, id field and create the date field.

    create table descriptions_tbl)

    number of desc_id

    DESC1 varchar2 (500),

    desc2 varchar2 (500),

    Desc3 varchar2 (500),

    create_date date

    );

    insert into descriptions_tbl values (1, "Thank you and good morning", "Derby", "saada", sysdate);

    insert into descriptions_tbl values (2, 'new test', "dfd", "Abdallah", sysdate);

    insert into descriptions_tbl values (3, ' Yes we do and no, we don't ', 'asda', "asdaf", sysdate);

    insert into descriptions_tbl values (4, 'blabla', "beard", "beard", sysdate);

    insert into descriptions_tbl values (5, 'blalblba', 'afd', 'asfddsa', sysdate);

    -Select * from descriptions_tbl

    what I want as an end result is:

    E-mail | keyword | URL

    the url may be for example "www.test.com/" desc_id of the descriptions_tbl.

    If the enamel, the keyword of emails tbl, and if the keyword is in the text be desc1 and desc2 desc3 table of descriptions,

    It should create the url with this id.

    Also - this should be only for those who have a creation date in the last 7 days in the tbl descriptions.

    so, if a new record of e-mail is created today, and there is a date of creation of 2 weeks in the lading descriptions, even if the keyword

    is located, it should not pull it due dates.

    I hope I'm being clear.

    Thanks for any help.

    SELECT a.email,

    a.Keyword,

    "www."

    || SUBSTR (a.email, INSTR (a.email, ' @', 1) + 1)

    ||' /'

    || b.desc_id

    Email_tbl has,.

    descriptions_tbl b

    WHERE 1                          =1

    AND (INSTR (b.desc1, a.keyword, 1) > 0

    OR INSTR (b.desc2, a.keyword, 1) > 0

    (OR INSTR (b.desc3, a.keyword, 1) > 0)

    AND b.create_date BETWEEN sysdate-7 AND sysdate

    ORDER BY 1 DESC;

  • With the help of data values for the selection of members

    Hello everyone:

    I know there are operating functions, with members, strings, names of members... so that you are able to convert a string to a member (@MEMBER) and vice versa.

    But, is it possible to use a value of Member to select someone else?. For example, if in the account dimension, I'm a member of 'parent' with value '100'. Could I put a value, using the value '100' in the '100' member registered in 'parent' to select this member. So if its value is '200', I should put in '200' member.

    Thank you

    Kind regards

    Javier

    Hello

    First, you insert the CDF, essbase server. in the zip file, you have a small description how draconian make zip archive contains a file bat with a script maxl who do all the work. then restart the essbase server and then a new list of functions should be available on the script calc under Group Editor "functions only the user".

    Here is a small piece of code I created for my current project.

    This store a substring product code number on the cube

    "Produccion_pan"->"Prod_CC_4"->"Referencia"=@JgetDoubleFromString(@SUBSTRING(@NAME(@CURRMBR("CompCosto")),6));
    

    then I read that number and use it again as a member of another Sun name

    "Produccion_pan"->"USD"="Produccion_pan"->"USD" + "Prod_CC_5"->"M3"*"Disponible"->"Total_Puesto"->@MEMBER(@CONCATENATE("PP_",@JgetStringFromDouble(codigo_p,@_false,@_false)))->"Coeficiente_v";
    

    I hope it helps you. concerning

  • With the help of Data Pump for Migration

    Hi all

    Version of database - 11.2.0.3

    RHEL 6

    Size of the DB - 150 GB

    I have to run a Migration of database from one server to another (AIX for Linux), we will use the data pump Option, we will migrate from Source to the target using schemas expdp option (5 patterns will be exported and imported on the target Machine). But it won't go live for target, after that the development of this migration team will do a job on this machine target which will take 2 days for them to fill in and to cultivate these 2 days, source database will run as production.

    Now, I have obligation which, after the development team, complete their work that I have to the changes of 2 days of source to target after what target will act as production.

    I want to know what options are available in Data Pump can I use to do this.

    Kind regards

    No business will update something that has some data that are no longer representative of live.

    Sounds like a normal upgrade, but you test it just on a copy of the direct - make sure that the process works & then play it comfortable once again, but against your last set of timely production data.

    Deans suggestion is fine, but rather than dropping coins and importation, personally I tend to keep things simple and do it all (datapump full schema if it is possible). Live in this way, you know that you put off, inclusive of all sequences and objects (sequences could be incremented, so you must re-create the fall /). Otherwise you are dividing a upgrade in stages, several measures to trace & more to examine potential conflicts. Even if they are simple, a full datapump would be preferable. Simple is always best with production data

    Also - you do not know the changes that have been made to upgrade the new environment... so you roll this back etc? Useful to look at. Most of the migration would be a db via RMAN copy / transport-endian, as you must also make sure that you inherit all the subsidies system patterns, not only summary level.

  • EXPORT ONLY THE TABLES IN A DIAGRAM WITH THE HELP OF DATA PUMP

    Hi people,
    Nice day. I'd appreciate if I can get a data pump command to export the TABLE object in a specific schematic.
    The server is a node RAC 4 with 16 CPU per node.
    Thanks in advance

    If all you want is table definitions, why can use you something like:

    expdp username/password = mon_repertoire dumfile = my_dump.dmp direcory tables schama1.table1, schema1.table2, happy etc = metadata_only = include = table

    This will only export table definitions. If you want the data, and then delete the content = metadata_only, if you want the dependent objects, such as indexes, table_statistics, etc, then remove the include = table.

    Dean

  • With the help of Data Pump for a copy of all the TABLSPACE DDL CREATE in a database

    I looked through the documentation for a way to export.

    I thought I could get the DDL using the donation below and them an IMPDP SQLFILES = yyy.sql

    Cat expddl.sql

    DIRECTORY = dpdata1
    JOB_NAME = EXP_JOB
    CONTENT = METADATA_ONLY
    FULL = Yes
    DUMPFILE = export_$ {ORACLE_SID} .dmp
    LOGFILE = export_$ {ORACLE_SID} .log


    I would have thought you could just do an INCLUDE on the tablespace but he doesn't like that.


    10.2.0.3

    Hello..

    I have not tried to get the tablespace ddl with expdp craete, but then I use DBMS_METADATA. This is the query.

    set pagesize 0
    set long 90000
    select DBMS_METADATA.GET_DDL ('TABLESPACE',tablespace_name) from dba_tablespaces;
    

    HTH
    Anand

  • ow change titles &amp; dates of lots of pictures (like in iPhoto?) With the help of Mac 'Pages' on, 2008 aluminium MacBook running OSX El Capitan 10.11.4

    How to change titles & dates of lots of pictures (like in iPhoto?) With the help of Mac 'Pages' on, 2008 aluminium MacBook running OSX El Capitan 10.11.4

    With the help of Mac 'Pages '.

    A typing mistake?

    If it is and you mean Photos Date of Mac are modified by selecting the photos using the Image menu == > adjust the time and date of order and changes made to the metadata such as keywords, location, etc. are made by selecting the photos and find the info and registering metadata in the Info window

    These are detailed in the help topics of pictures - a good place to look for help on the Photos

    View and add information about the photos

    You can view and add information about your photos. For example, you can see the date and time a photo was taken, the information about the camera that took the photo and badges that indicate the status of the photo. You can assign titles and captions to photos, add or change the location of the photos and change the date and time for them information. You can select multiple photos in an instant and add or change information about them all at once.

    Open pictures for me

    View and add information about the photos

    To view or change information for the photos, you select one or more photos, and then open the information window.

    • Open the Info window: Double-click a photo to view it, and then click the Info button in the toolbar or press on command I.
    • Add or change information: Change the following.
      • Title: Enter a name in the title field.
      • Description: In the Description field, type a caption.
      • Favorite: Click the Favorites button to mark the photo as a favorite. Click the button again to deselect.
      • Keywords: Enter the keywords in the keywords field. When you type, Photos suggest keywords that you have used before. Press enter when you have finished a keyword. To remove a keyword, select it and press DELETE.
      • Faces: Click on and type a name to identify a face. Click on several times, and then drag the identifier of the face different faces to identify many faces in a photo.
      • Location: Enter a location in the location field. When you type, Photos suggest places you can choose. To change a location, you can search a different location or change the location by dragging a PIN on the map. To remove location information, delete it or choose Image > location, then choose Remove location or back to the original location. You cannot assign a location if your computer is not connected to the Internet.

    Show titles, other metadata and badges

    Change the date and time of photo

    You can change the date and time associated with a picture. You can do this if you are traveling to a location in another time zone, and your camera affect your dates photos and periods that are correct for your House, but not the place you visited.

    1. Select the photos you want to edit.
    2. Choose Image > adjust Date and time.
    3. Enter the date and time you want in the modified field.
    4. Click a time zone on the map, if necessary.
    5. Click on adjust.
  • With the help of AMPA on non - WS Data Controls

    Hello community MAF .

    I'm developing an Application of MAF that consumes the REST API of WebCenter portal (which is based on the model of HATEOAS).

    I want to make powerful from scratch, including the following:

    -Offline mode (using the SQLite).

    -Persistence, of setting cache and synchronization using AMPA.

    Looks like it's not easier to apply directly on the REST API of WCP AMPA.

    The REST API of WCP is the result of a call of two steps:

    1) authenticate using BASIC authentication against http://Host/repos/api/resourceIndex for the utoken

    (2) use utoken as the URL parameter for the next call of REST for the specific service.

    I know that the Bus Service could be a possibility on the creation of a more simple REST on the WCP REST API, but is not an option right now because that is not easy to map.

    My questions are:

    (1) can we use AMPA on data controls in Java that will call internally to (DB in case of offline mode, REST by program in the case of online mode).

    (2) can define us manually in the persistenceMapping.xml?

    (3) is there anything else more easy to use wizards with HATEOAS base based Services?

    Thanks in advance

    Kind regards.

    Daniel,

    Why is it not service bus an option? You say 'not easy to map', but do the mapping in the MAF makes it not easier, it? the REST API of pressurization is not very easy to mobile, so this transformation to a more usable by using bus service API cost as a good idea for me. See also this article from the A-team.

    Answers to your questions:

    (1) Yes, this is the added value of nucleus of AMPA. You get a service generated the DTC Assistant classes, then you turn this class in a bean data control and use this data control bean for the construction of your user interface. The service class will access local DB and the service REMAINS remote. By default, AMPA will directly show the current data of the local DB, and then in the background call the REST service (online) and refresh the UI, once the REST call has been processed. But this behavior is very configurable and can be changed as you wish.

    (2) Yes, of course, you can manually create data objects, classes of service and persistence mappings, but the wizard is generally much faster.

    (3) HATEOAS logical not for the dynamics of UI where the next action is determined by a link returned in the payload. It is a different model from the static of the UI we build in general with MAF. What is your problem with the help of the wizard of the AMPA?

    Steven Davelaar,

    Oracle Mobile & Cloud A-team.

  • With the help of coupon in batches with different expiration dates

    I try to use coupon lot to offer free delivery to users. My requirement is to expire promo, 7 days after it has been generated.

    I am using batch of coupon for this requirement as promo codes will be generated on the fly.

    The challenge with the help of batch coupon is that it has a fixed start and end date so that all the generated code coupons will have the same maturity.

    Is there a way to set the expiration in individual coupons?

    Thanks in advance.

    I expanded ClaimableManager.createBatchPromotionClaimable () method to achieve this.

  • SVN: #155021. You cannot update this file with the help of Dreamweaver Subversion integration because a new Subversion client application on your machine has made updates to the file Subversion meta data. For more information on this problem

    Can Hello anyone help?

    After you configure Subversion in Dreamweaver, I get this error again!

    SVN: 155021 #. You cannot update this file with the help of Dreamweaver Subversion integration because a new Subversion client application on your machine has made updates to the file Subversion meta data. For more information about this issue, see http://www.adobe.com/go/dw_svn_en.

    even after following the instructions http://www.Adobe.com/go/dw_svn_en Download the extension, python change the var in windows to say «;» C:\Python26'

    with & without quotes, with or without; before C

    command > comparability of Subversion to get the following error "the Conversion process has failed. Please make sure you have Python installed and you check Python PATH parameter'

    I managed to get all the files after the installation, I locked, unlocked and commit a file to test fact so that was all works well, the only part I'm not retrieves the latest version, this is because Subversion is 1.6.2 and dreamweaver must revert to the version 1.4.5 on local to work, the compile someone at - it an idea what to try next in order to make it work?

    Just a reminder!

    1. I configure Subversion through guidelines on http://help.Adobe.com/en_US/Dreamweaver/10.0_Using/WS80FE60AC-15F8-45a2-842E-52D29F540FED. html
    2. I managed to get the latest SVN version
    3. Lock, unlock and commit a file
    4. Installed Python in C:\Python26 change the path in windows system properties > advanced > Environment Variables > system variables > New > Python =; C:\Python26 also C:\Python26
    5. I also tried the same thing in the User Variables
    6. Installed the extension DW Subversion compatibility

    7. Tried to run the compatibly with the command > Subversion comparability in DW

    Welcome any suggestion to solve this?

    Hello

    There has been a lot of problems using svn with dw, and I know many people who have stopped trying to operate correctly.

    As much as I know dw will not work with newer versions of svn (over 1.5), and even then, there are a lot of problems, a possible solution is to try subweaver (at- http://code.google.com/p/subweaver/ ), as this has solved some of the problems associated with the use of tsvn dw environment.

    PZ

  • Need help get data with the most recent date of entry into

    Hey guys;

    I need help with fine tuning a query to get the one with the most recent implementation.

    Here's my current query:

    /**********************************************
    Select sge.seal_group_id,
    SGE.equipment_id,
    SGE.effective_date
    of seal_group_equipment EMS.
    seal_group sg
    where equipment_id = 48801
    AND EMS. SEAL_GROUP_ID = SG. SEAL_GROUP_ID
    and sge.end_date is null
    Group of sge.equipment_id, sge.seal_group_id, sge.effective_date
    After having sge.effective_date = max (sge.effective_date)

    ******************************************************/

    Which produces the following results:
    SEAL_GROUP_ID - EQUIPMENT_ID - EFFECTIVE_DATE
    25-48801 - 01/01/1993-00: 00:00
    11730-48801 - 22/08/2003 08:42:11


    What I really need, is to show only the line with the most recent date of entry into
    I hope someone can help
    Thank you

    MAX will not work because the SEAL_GROUP_ID could depart. I would say analytical:

    select seal_group_id,
    equipment_id,
    effective_date
    from (
    select sge.seal_group_id,
    sge.equipment_id,
    sge.effective_date,
    RANK() over (partition by equipment_id order by effective_date desc) r
    from seal_group_equipment sge,
    seal_group sg
    where equipment_id = 48801
    AND SGE.SEAL_GROUP_ID = SG.SEAL_GROUP_ID
    and sge.end_date is null)
    where r = 1;
    

    Keep in mind if two records have the same effective_date, they would both appear.

    Note: query above has not been tested, since there is no script provided.

  • With the help of time interleaved sampling (TIS) to get the highest sampling rate of data acquisition card

    I tried enabling to TIS using nodes of property for the appropriate channel and by disabling the TIS for strings, I don't want to use. When I do that, I get the following error:

    niScope read Cluster.vi:1internal software error has occurred in the extended software. Please contact the support of National Instruments.

    Name of the component: nihsdru
    File name: p:\Measurements\highSpeedDigitizers\hsd\driver\trunk\1.10\source\redirection\tHardware.cpp
    Line number: 1038

    State code:-223425

    Any ideas what to do?

    Thank you, but I managed to fix it with the help of a few colleagues.

  • problem with the type of date dd/mm/yyyy

    Hi all!
    I want to do something simple.
    to get a type of dd/mm/yyyy string and convert it ti date jj/mm/aaaa type.
    I wrote simple code
    String pattern = "dd/MM/yyyy";
    SimpleDateFormat format = new SimpleDateFormat (pattern);
    try {}
    Date = format.parse("12/03/2006");
    System.out.println (date);
    } catch (ParseException exception) e {}
    e.printStackTrace ();
    }

    but the problem that I get Sun Mar 12 00:00:00 GMT + 02:00 2006
    and I want to get this format dd/mm/yyyy.
    because I need to insert it in my db. Thank you all

    First thing: almost always if a SQL statement uses variable data, use a PreparedStatement. With the help of a simple statement can, at first, most obvious glance, but it will cause endless problems.

    The constant strings in SQL are "single quotes" i.e. apostrophes. They must at least cannot escape string constants. One of the reasons for always using class PreparedStatement is that you concatenate in a string value may contain an apostrophe. In this case it will be, at best, give your SQL syntax error. Worse it can make your system vulnerable to hackers.

    Use code publishing code tags. Put the word 'code' braces before and after. This makes your code readable.

    The field attribute by DEFAULT when you create a table must be a real date, not a model. I have never know this is useful for a date, except if it set to pick up the current date.

Maybe you are looking for

  • Bookmark this page disappears replaced by edit bookmarks

    I can use 'bookmark this page' a few times, but cela then disappears and is replaced by "edit this bookmark". However, the only thing available under "edit this bookmark" is "Delete bookmarks". Sometimes it goes back to 'bookmark this page' but it wo

  • privacy.clearOnShutdown.cache; released true disk cache.

    If both "privacy.sanitize.sanitizeOnShutdown" & "privacy.clearOnShutdown.cache" can be found on the disc of the 'true' Firefox 12 cache does not work. " I've recently updated to Firefox 7 on some machines and the characteristic closing from clearing

  • Satellite Pro A30 overheating and decommissioning

    I found some comments dating back to March of people facing the A30 laptop random extinction. I am eperiencing the same thing. Thinking that it might be a virus I downloaded Norton AntiVirus which caused my laptop to blue screen. I had fixed by a pro

  • Satellite L850D - 8 to 8.1 Windows can I does not level

    I have a Toshiba Satellite L850D and when I do the update of widows he gets near the end and crashes and returns to the last installation which is Windows 8, I have all the Windows updates lasted and the new drivers on the Toshiba site. Frustrated I

  • Memory locations of T530

    I was wondering if the two slots of memory were easily accessible on the bottom of the unit. I looked at the guide but was a little unsure if it was one or two down there. I remember years they were under the palmrest, if not mistaken. I was hoping s