The combination of two fields of object a
Hello
I have an array of objects related to my DataGrid.
How can I have a column shows the two LastName + initial of the first name.
Name and first initial are individual values in the object.
< mx:AdvancedDataGridColumn
ID ="Full name " headerText =" name " dataField =" (lastName) + (firstInitial) " "visible =" true " " / > ""
I tried this and a few other variations, none doesn't seem to work.
TIA.
Use labelFunction
Tags: Flex
Similar Questions
-
get the value of two fields in a field
Hellou,
I need some new help with javascript
Currently I use the below code to get the value of one field to another:
getField("Text35").value = getField("Text1").valueAsString;
Now, I wonder how to change this code, so I could get the values of two fields in one. I for example field 'Name' and 'name' field, now I want to show in the field 'name '.
Example, if the firstname field have John value and the value of the lastname field is Doe, I want to show in the field name as "John Doe".
I hope that u understand what I want
Thank you for helping me!
getField("Text35").value = getField("Text1").valueAsString + "" +.
getField("Text2").valueAsString;
-
The addition of two fields of digital type in livecycle es2
Hi I created a form in the es2.
I have t2 and t1 numberic two fields for both. I want to add the total of the t1 and t2 and total to appear in the 3rd field tot.
so now calculate it using javascript I tried this
topmostSubform.Page1.tot::calculate - (JavaScript, client)
var
AD1 = this.getField("t1").rawValue;
var
AD2 = this.getField("t2").rawValue;
var
total = AD1 + ad2;
tot
= total;
where tot is the name of the 3rd digital field
but it does not work. I really appreciate if someone can tell me what would be the correct code to do this.
Hello
this.getField () is the core/AcroForm javascript. LC Designer javascript syntax is different.
Try this javascript in the calculate of tot event:
tot.rawValue = ad1.rawValue + ad2.rawValue;
.rawValue access (and games) the value of an object.
Good luck
Niall
-
The combination of two projects
I have a need to import a single .cp file to .cp file. Merger mainly to projects in one. Is this possible in a way that will allow me to have a single consolidated project that I'll be able to change end-to-end?
Thank you
JayWelcome to our community, Jay
Yes, it is possible to combine projects. Remember that projects have some importance from the perspective of 'number of total slides' which is considered to be best practice. Number of magick is usually between 50-65 (give or take and subjected to all kinds of interpretation). If your new handset project will be way beyond that, you might want to reconsider the approach.
To combine, click file > import > slides/objects and refer her to the other project.
Also, it will keep things more simple if you have the two projects of the same size.
-
Need help to split the string into two fields
Can someone share your thoughts by dividing the prod_info string below into two fields
For example:-TABLE of PROD
SOURCE TABLE
SNO PROD_INFO 1 20 OZ SIMILAC 2 HW PRO 10 3 REX 10 OZ 4 AAA 10 5 BBB 2000 6 CCC 10 LB 7 DDD 2021 8 EE 12 KG 9 KK 11111 10 ZZ ABC FAC 11 11 RKW DD CC 12 OZ 12 12KJ 12 LBS. EXPECTED RESULTS
SNO PROD_INFO PROD_VAL 1 SIMILAC 20 OZ 2 HW PDR 10 3 REX 10 OZ 4 AAA 10 5 BBB 2000 6 CCC 10 LB 7 DDD 2021 8 EA 12 KG 9 KK 11111 10 AEC ABC ZZ 11 11 RKW DD CC 12 OZ 12 12KJ 12 LBS. with
as Prod
(select 1 sno, "SIMILAC 20 OZ" prod_info of all the double union)
Select 2, 'HW PDR 10' from dual union all
Select 3, 'REX 10 OZ' from dual union all
Select option 4, "AAA 10' from dual union all
Select 5, "BBB 2000"of the dual union all
Select 6, 'CCC 10 LBS' double union all
Select 7, 'DDD 2021' from dual union all
Select 8, 'EE 12 KG' from dual union all
Select 9, 'KK 11111' Union double all the
choose 10, "ZZ ABC FAC 11' from dual union all
Select 11, 'CC DD RKW 12 OZ' from dual union all
Order 12, '12KJ LB 12' double
)
Select sno,
(prod_info regexp_substr(prod_info,'^((\d*|\w*)[^[:digit:]].*) \d',1,1,null,1).
regexp_substr (prod_info,' prod_value (\d+.*)$',1,1,null,1))
Prod
SNO PROD_INFO PROD_VALUE 1 SIMILAC 20 OZ 2 HW PDR 10 3 REX 10 OZ 4 AAA 10 5 BBB 2000 6 CCC 10 LB 7 DDD 2021 8 EA 12 KG 9 KK 11111 10 AEC ABC ZZ 11 11 RKW DD CC 12 OZ 12 12KJ 12 LBS. Concerning
Etbin
-
Combination of two fields in form of the same document, in a form?
I have a field called "name" and called the 'name '. How can I create a third field called "name". I want that he combine the first two. Any ideas?
In the tab of the field (under the custom calculation) calculation, enter:
This.getField("first_name").value = Event.Value + "" + this.getField("last_name").value
Post edited by: try67
I forgot to paste in the code... -
Is there an easy way to filter a 2D table based on the values in two fields?
Y at - it an easy way to filter a 2D table based on the values of one of the fields. In my attached VI the output array has the following format:
Ident Frame Type bytes TimeStamp data
10:57:07.621 3AD00016 POUVEZ 8 0000000000000000 data frame
10:57:07.622 3AD00017 CAN data frame 8 000005E000000000
10:57:07.624 3AD00018 POUVEZ 8 0000000003300000 data frame
10:57:07.625 2DC00000 POUVEZ 8 0000000000000000 data frame
10:57:07.626 3AD00019 POUVEZ 4 0000030000000000 data frame
I would like to delete all lines that do not have an "Ident" between the values of 3AD00000 and 3AD0001E. So for the data above the fourth row would be removed. The only way I can see to do this is to form a 1 d table. Is there a better approach?
Thank you.
Hi chuck72352,
After you've sorted your data, you can use the function InRange. Combined with a "search in 1 table D", you get the range you really want.
Mike
-
the combination of two select statements to increase the maintainability and performance
Hi SQL Experts,
I use the Version of Oracle 11g DB and got both of the statements below.
My mind can´t get his head around it how and if these two can be combined.
They look like they could, but I can't figure out how... and I don't mean with a UNION ALL operation
My main goal is a gain in performance and maintainability.
SELECT *.
OF T_TEMP_42 T1 WHERE T1. MATRIX_2 IS NULL AND
(T1. BL_CODE | T1. YASSINE | T1. MATRIX_1 | T1. FIRMTYPE)
PO NO
(
SELECT BL_CODE. YASSINE | MATRIX_1 | FIRMTYPE
OF T_TEMP_41, WHERE MATRIX_2 IS NULL).
------------------------------------------------------------------------------------
SELECT *.
OF T_TEMP_42 T1 WHERE T1. MATRIX_2 IS NOT NULL AND
(T1. BL_CODE | T1. YASSINE | T1. MATRIX_1 | T1. MATRIX_2 | T1. FIRMTYPE)
PO NO
(
SELECT BL_CODE. YASSINE | MATRIX_1 | MATRIX_2 | FIRMTYPE
OF T_TEMP_41, WHERE MATRIX_2 IS NOT NULL
);
Thanks for your suggestions.
Try this
SELECT *.
OF T_TEMP_42 T1
WHERE (BL_CODE, YASSINE, MATRIX_1, FIRMTYPE, MATRIX_2) NOT IN (SELECT BL_CODE, YASSINE, MATRIX_1, FIRMTYPE, T_TEMP_41 MATRIX_2)
It came off really simple... maybe too simple
-
SELECT with the combination of two columns query
I need the research to write a nested select statement that would achieve the following.
Support I have a table as follows
TestTable
Name: Age: country
Test1: 10: USA
Test2: 11: us.
Test3: 12: us.
Test4: 11: Canada
Test5: 12: Canada
Now, I want to select in the table above gives the following information.
Get all the names of people who do not belong to this combination (10:USA, 11:Canada, 12:Canada). The list can be huge.
The result should be
Test1:10:USA
Test1:12:USA
If it was a combination, I can write
Select * from TestTable
the age where <>10 and <>country Canada
Also, I can also do
Select * from TestTable
the age where NOT IN (10,11) and country NOT IN (USA, COUNTRY)
But I do have that he would give me a correct result.sush_msn wrote:
Is there a way I can move the age and the country as a list on the query?You asked the right question.
Three things you need to know:
(1) your test data cover all combinations. This is the most comprehensive test data:
create table test_table1 as WITH AGES AS ( SELECT LEVEL+10 AGE FROM DUAL CONNECT BY LEVEL <= 3 ), COUNTRIES AS ( SELECT 'USA' COUNTRY FROM DUAL UNION ALL SELECT 'CANADA' COUNTRY FROM DUAL ) SELECT 'Test' || ROWNUM NAME, AGE, COUNTRY FROM AGES, COUNTRIES; NAME AGE COUNTRY -------------------------------------------- ---------- ------- Test1 11 USA Test2 11 CANADA Test3 12 USA Test4 12 CANADA Test5 13 USA Test6 13 CANADA
(2) now, here's the answer to your question. You can go back two or more values in an expression by putting parentheses around them.
SELECT * FROM TEST_TABLE1 WHERE (AGE, COUNTRY) NOT IN ( (11, 'USA'), (12, 'CANADA') ); NAME AGE COUNTRY -------------------------------------------- ---------- ------- Test2 11 CANADA Test3 12 USA Test5 13 USA Test6 13 CANADA
That's what made the Etbin above, but he used a select instead of a list of values.
(3) can AGE or COUNTRY ever be NULL? You want to return the records that have NULL values in them? If so, you must use NOT EXISTS instead of NO po WARNING: Etbin code needs a bit of change: "where (age, country) = (t.age, t.country)" should be "where (age, country) = ((t.age, t.country)) '. You must always additional brackets on the right side.
-
The combination of two columns in a single
Hi guys,.
Is it possible for a query to combine two columns into one? For example, lets say I have the following query:
SELECT ID, FIRST_NAME, LAST_NAME
EMPLOYEES
I want the output to have two columns: one that contains the ID and the other containing name followed by a space followed by LAST_NAME. I know how to do this outside the query using coldfusion, but it save me a lot of work if there is some way that the query could do for me.Yes but the operand of concatenation varies somewhat from a database
management system to the other.In Oracle, it would look this IIRC.
SELECT ID, FIRST_NAME. ' ' || LAST_NAME AS FULL_NAME
EMPLOYEES -
Hi, I managed through imaging Lingo to create an alpha channel and place it in/on a bitmap. What I want to do now is to combine two Alpha of two different images and place it in a thrid bitmap.
Is this possible? Thanks in advance for any help.
Bravo, Simon.Let's say you now alphaImg1 and alphaImg2... try copyImages with the parameter #ink... the values corresponding to the different inks available in the help... in my example below I'll try using 39 - darker ink.
alphaImg1.copyPixels (alphaImg2, alphaImg1.rect, alphaImg2.rect, [#ink: 39])
-
Results the combination of two different "reports."
Not sure if what I have to do is possible in the analytical framework, but maybe the experts can guide me.
Here's the situation:
In the box account, there is a field that "connects" account. What I need to do, is to show all accounts and the number of those who bind together. Here is a Visual... (with a few columns)
Data
Column1 Column2 Column3 column4 column 5... etc.
Yes {color: #0000ff} 12345 {color}
AccountB {color: #0000ff} 12345 {color} B
AccountC {color: #0000ff} 12345 {color} C
AccountD {color: #339966} 99999 {color} D
AccountE {color: #339966} 99999 {color} E
AccountF {color: #339966} 99999 {color} F
AccountG {color: #339966} 99999 {color} G
I need to show
Column1 Column2 Column3 column 4 (which is a count of all those who have the same column 2)
Yes 12345 3
AccountB 12345 3
AccountC 12345 3
AccountD 4 99999
AccountE 99999 4
AccountF 4 99999
AccountG 4 99999
I can make a PivotTable and get
3 12345
4 99999
But don't know if I can take this value in a single report.
Certainly can dump the data to excel and 'join' the two, I wanted to see if this could be done within OnDemand.
Any suggestions?
I think your missing what how you count Column2. It takes (column2 by column2).
He works at the table and pivot views.
See you soon
-
The combination of two BONES with their equipment.
Hello
We would like to use Vmware in the following way: the primary operating system is Linux and a CCD camera will work under this operating system via a PCI sound card. The other operating system is Windows XP, and 3 external devices will be controlled with 3 PCI cards of e/s under windows XP.
These devices work properly in separate 2 PC (linux and Windows XP) currently.
Is it possible to run all these facilities in a machine with the HELP of VMware?
What are the potential problems we might encounter?
What version of Vmware is suited for this purpose?
Kind regards.
Murat KOCAK
In general, virtual machines cannot directly access all PCI cards. External devices must be attached to a parallel, serial, SCSI or USB port. So if your PCI cards appears to the operating system as one of these types, then maybe your devices may work. VMWare Server, Workstation and the player can work with all types of ports. ESX does not work with USB. (If you use a Mac, then Fusion works with USB and parallel SCSI, and limited to support the series.) My guess is that you will not be able to use a PCI card with a virtual machine, but without knowing more about the specific PCI cards, I couldn't say with certainty.
-
Combination of two fields to make a third then insert into DB
I have this script:
If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == 'form')) {}
$insertSQL = sprintf ("INSERT INTO members (first name, family name, 'Section', Login, password, DefaultPassword, Email) VALUES (%s %s %s, %s, %s, %s, %s)',
GetSQLValueString ($_POST ["Firstname"], "text").
GetSQLValueString ($_POST ['name'], "text").
GetSQLValueString ($_POST ['Section'], "text").
GetSQLValueString ($_POST ['Login'], "text").
GetSQLValueString ($_POST ['Password'], "text").
GetSQLValueString ($_POST ["DefaultPassword"], "text").
GetSQLValueString ($_POST ['Email'], "text"));
But I want the value of the connection to be the first name + last name all in lower case.
I tried this, but it does not work...
$Login = strtolower ($_POST ["Firstname"]. $_POST ['Surname']);
If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == 'form')) {}
$insertSQL = sprintf ("INSERT INTO members (first name, family name, 'Section', Login, password, DefaultPassword, Email) VALUES (%s %s %s, %s, %s, %s, %s)',
GetSQLValueString ($_POST ["Firstname"], "text").
GetSQLValueString ($_POST ['name'], "text").
GetSQLValueString ($_POST ['Section'], "text").
$Login, "text",
GetSQLValueString ($_POST ['Password'], "text").
GetSQLValueString ($_POST ["DefaultPassword"], "text").
GetSQLValueString ($_POST ['Email'], "text"));
Any ideas what I am doing wrong?
Your connection line must be:
GetSQLValueString ($Login, "text"),
There isn't that one statement here and you have written "$Login,"text") which is actually 2 statements." (A) the text of $Login all about him running as an instruction as the DW code is looking for.
Apart from that, it should work.
-
Hello
I would use the combination of two triggers to fire an event in labview (in my case to start the data acquisition), I have two signals to trigger from 2 sources, as shown in the search. Attached, I want to trigger the acquisition of data to start as show in blue digging 1.
Please show how I can achieve this by implementing changes in my vi included.
Thanks in advance
Avinash
Hello
A simple way to do this is to use the model of the trigger input terminal. For example, you can select line0:1 for the source of command and enter a reason for "11" as a string constant and relaxation will be produced when the two lines are 1. If you go into a detailed help, you can find more options like rising edge, falling on board etc.
Kind regards
Toader Mihai
Maybe you are looking for
-
Why change the headers that we love so much?
I just uninstalled Firefox 9.0.1 because I simply can't the way you have rearranged the headings, and I reinstalled Firefox 3.6 which I love so much but you say that you will not long support. Why did you find if necessary to remove the file, Edit, V
-
Portege Z30 - B - Toshiba picture after change for Linux installation
Hello. I just bought Portege Z30 - b. I want to replace windows with linux (fedora I think), I did the windows image by using Recovery Media creator on USB. So if now I will install linux I delete all the files on the SSD.Maybe futture I want to reus
-
WIFI with Satellite Pro L300 problem - always offline / online
* Sorry for us English *, we come from Germany. Hello We have a problem with our old ' mobile unit Satellite l300-pslb1e-165system 02200hru»After a while, we had to reinstall Windows XP. The software of the laptop, we lost. We took all the drivers on
-
Z500 touchpad work not when you use the keyboard. Please help me please!
Hello I recently bought a lenovo z500 and it's great, but I have a little problem. When I use the keyboard to play games (I use the WASD keys) the touchpad does not, which means I can't play. Help, please!
-
I found that my laptop was only on xp pro service Pack1, so I made a few updates now, ive got running on service pack 3 but it keeps flashing up I have a non-genuine version of windows, windows is activated and I have a real sticker on the bottom of