Combining two Object fields to one
Hi,
I have an Array of objects bound to my data grid.
how can I have one column display both LastName + First Initial.
Last Name and First Initial are individual values in the object.
<mx:AdvancedDataGridColumn
id="FullName" headerText="Name" dataField="(lastName)+(firstInitial)" visible="true"/>
I've tried this and some other variations none seem to work.
TIA.
Hi,
That´s a example for labelFunction for your problem.
<mx:Script>
<![CDATA[
public function concatData(item:Object, column:DataGridColumn):String {
return item.lastName + " " + item.firstInitial;
]]>
</mx:Script>
<mx:DataGrid id="datagrid" dataProvider="{array}" width="100%">
<mx:columns>
<mx:DataGridColumn headerText="ID" dataField="id" />
<mx:DataGridColumn headerText="Name" labelFunction="concatData" />
</mx:columns>
</mx:DataGrid>
Please, if this resolve your problem, mark the answer helpful.
Att,
Emerson_RM
Similar Messages
-
Combine two date field into one timestamp field
Hello all,
I need help combining two date fields into one timestamp field.
I have separate Date and Milliseconds fields and want to
combine to one Timestamp field can some suggest sql???This is my data
01 JAN 1989 12:01:00.001 AM
this is my insert drag_time is a timestamp field in another schema
INSERT
INTO DRAG (drag_time)
SELECT to_char(drag_time, 'DD MON YYYY HH12:MI:SS')||(drag_second)||to_char(drag_time, ' AM')
FROM sa.drag;
This is the error
ERROR at line 3:
ORA-01855: AM/A.M. or PM/P.M. required -
Can I combine two objects into one?
Hi all:
I got a problem here: I just wonder if anyone knows how to combine the informations which I grabed from a SQL database to an object I obtained from an OO database at runtime.
I look forward to your reply and appreciate your concern!
regards
David
at [email protected]Thanks for you reply, but the combined two objects can not be pre-defined because it is defined at runtime, say, there are a number of objects in database, only when you select the one for combining, you know what it is!
Cheers
David -
Combining two source fields in Import Manager
Hi,
I am trying to combine two source fields say fld1 with 5 digit and Fld2 with 3 digit so that combined fld3 of 8 digit can be mapped to a 8 digit field in destination MDM side.
Any suggestion how to do this is highly appreciated
Thanks,
-reoHi Reo,
I am just adding details to how to combine fields in the import manager.
To combine two or more existing partitions for a destination node steps are as follows:
<b>1. </b>In the appropriate source hierarchy tree, select the node whose partitions you want to combine.
<b>2.</b> click on the Partition Field/Value tab to make it the active tab.
<b>3.</b> In the appropriate Partition list, select the two or more partition items you want to combine into a single partition.
<b>4.</b> Click on the Combine button, or right-click on one of the items and choose Combine Partitions from the context menu.
<b>5.</b> MDM combines the selected partition items.
<b>6.</b> Now you can map this partition directly to the destination field.
But as ur requirement seems ,u do not need to set delimiter.
Hope it will help you and let me know the results. please remark .
Thanks,
<b>Shiv Prashant Dixit</b> -
Search view : Combine two search views into one serch view
Hi ,
We have a requirement for combining two search views into one and display single result view consisting of some fields from One search and few fields from other search.
Ex. There are two seperate search views for Oppotunity and Quotation. Now we want to combine search views of both into one search view with selected fields and then display a single result view with combined fields from both result views .
Kindly suggest me the steps I can follow to achieve the same.
Thanks,
MadhuraHi,
This is possible by creating dynamic views in a window.
1)create views you required.
2)create a tray in the view 1 and a link and set the properties.
3)create an outbound plug for the view1 and save the application.
4)create one more link in the tray for view1 and set the properties and create one more outbound plug.
5)go the main view view and create 2nd tray and create a UI container element in it.
6) now embed view1 and view2 in the container .........................
<removed_by_moderator>
regards,
Muralidhar .C
Edited by: Stephen Johannes on Jan 26, 2010 7:53 AM -
How can I combine two itunes accounts into one?
How can I combine two itunes accounts into one?
Items purchased from the iTunes Store are permanently associated with the account from which they were originally purchased. Apple provides no way to change this.
However, if you wish to put content from two accounts into a single iTunes library, you can easily do so. Use the command File > Add File (or Folder) to Library. -
Reg: Combining two display lists into one list
Dear All,
i want to combine two display lists into one display list. Please give the idea for this one issue.
*****************dispaly list 1 starting here*********************
*& Form F_006_DISPLAY_LIST
* text
* --> p1 text
* <-- p2 text
FORM F_006_DISPLAY_LIST.
* TABLES : LFA1 .
DATA : V_DEBIT_TOTAL TYPE P DECIMALS 2 ,
V_CREDIT_TOTAL TYPE P DECIMALS 2 ,
V_CLOSE_BAL TYPE P DECIMALS 2 .
DATA : V_CNT TYPE I .
SORT ITAB_OPG BY LIFNR.
LOOP AT ITAB_OPG.
NEW-PAGE.
* Displaying Vendor Name
SELECT SINGLE NAME1 FROM LFA1 INTO LFA1-NAME1 WHERE
LIFNR EQ ITAB_OPG-LIFNR .
FORMAT COLOR COL_POSITIVE INTENSIFIED ON.
WRITE:/2 'Vendor Code:' ,
ITAB_OPG-LIFNR ,
40 LFA1-NAME1 .
CLEAR : LFA1 .
WRITE :/(190) SY-ULINE .
* Displaying Opening Balance
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON .
READ TABLE ITAB_OPG WITH KEY LIFNR = ITAB_OPG-LIFNR .
IF ITAB_OPG-BAL LE 0 .
WRITE :/2 'Opening Balance for Period' , (4) S_MONAT-LOW , ':' ,
171(18) ITAB_OPG-BAL .
ELSE.
WRITE :/2 'Opening Balance for Period' , (4) S_MONAT-LOW , ':' ,
151(18) ITAB_OPG-BAL .
ENDIF.
WRITE :/(190) SY-ULINE .
* Displaying Line Items
LOOP AT ITAB_DISPLAY WHERE LIFNR EQ ITAB_OPG-LIFNR.
V_CNT = SY-TABIX MOD 2.
IF V_CNT EQ 0.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
ELSE.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
ENDIF.
* Selecting Bank Name and Cheque Number
SELECT SINGLE CHECT HBKID INTO (PAYR-CHECT , PAYR-HBKID)
FROM PAYR WHERE
ZBUKR EQ P_BUKRS AND
VBLNR EQ ITAB_DISPLAY-BELNR AND
LIFNR EQ ITAB_DISPLAY-LIFNR .
SELECT SINGLE BANKS BANKL INTO (T012-BANKS , T012-BANKL) FROM
T012 WHERE BUKRS EQ P_BUKRS AND
HBKID EQ PAYR-HBKID.
SELECT SINGLE BANKA INTO BNKA-BANKA FROM BNKA WHERE
BANKS EQ T012-BANKS AND
BANKL EQ T012-BANKL .
WRITE :/2 ITAB_DISPLAY-BUDAT ,
14 ITAB_DISPLAY-BELNR ,
26 ITAB_DISPLAY-BLDAT ,
40 ITAB_DISPLAY-XBLNR ,
58(16) PAYR-CHECT ,
75 BNKA-BANKA ,
105(40) ITAB_DISPLAY-SGTXT ,
146(4) ITAB_DISPLAY-BLART .
* Determinig Debit or Credit
IF ITAB_DISPLAY-SHKZG EQ 'S'.
V_DEBIT_TOTAL = V_DEBIT_TOTAL + ITAB_DISPLAY-DMBTR.
WRITE:151(18) ITAB_DISPLAY-DMBTR ,
171(18) SPACE .
ELSEIF ITAB_DISPLAY-SHKZG EQ 'H'.
V_CREDIT_TOTAL = V_CREDIT_TOTAL + ITAB_DISPLAY-DMBTR.
WRITE:151(18) SPACE ,
171(18) ITAB_DISPLAY-DMBTR .
ENDIF.
CLEAR : T012 , BNKA , PAYR .
ENDLOOP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/(190) SY-ULINE.
* Displaying Debit and Credit Totals
WRITE:/125 TEXT-001 ,
151(18) V_DEBIT_TOTAL ,
171(18) V_CREDIT_TOTAL .
WRITE:/(190) SY-ULINE.
* Displaying the Closing Balance
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
V_CLOSE_BAL = ITAB_OPG-BAL + V_DEBIT_TOTAL - V_CREDIT_TOTAL .
IF V_CLOSE_BAL GT 0.
WRITE:/122 TEXT-002 ,
151(18) V_CLOSE_BAL NO-SIGN. " D00K909674
ELSEIF V_CLOSE_BAL LE 0.
WRITE:/122 TEXT-002 ,
171(18) V_CLOSE_BAL NO-SIGN. " D00K909674
ENDIF.
CLEAR : V_CLOSE_BAL.
ENDLOOP.
ENDFORM. " F_006_DISPLAY_LIST
*****************dispaly list 1 ending here*********************
*****************dispaly list 2 starting here*********************
*& Form F_006_DISPLAY_LIST1
* text
* --> p1 text
* <-- p2 text
FORM F_006_DISPLAY_LIST1 .
TABLES : KNA1 .
DATA : V_DEBIT_TOTAL1 TYPE P DECIMALS 2 ,
V_CREDIT_TOTAL1 TYPE P DECIMALS 2 ,
V_CLOSE_BAL1 TYPE P DECIMALS 2 .
DATA : V_CNT1 TYPE I .
SORT ITAB_OPG1 BY KUNNR.
LOOP AT ITAB_OPG1.
NEW-PAGE.
* Displaying Vendor Name
SELECT SINGLE NAME1 FROM KNA1 INTO KNA1-NAME1 WHERE
KUNNR EQ ITAB_OPG1-KUNNR .
FORMAT COLOR COL_POSITIVE INTENSIFIED ON.
WRITE:/2 'Customer Code:' ,
ITAB_OPG1-KUNNR ,
40 KNA1-NAME1 .
CLEAR : KNA1 .
WRITE :/(190) SY-ULINE .
* Displaying Opening Balance
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON .
READ TABLE ITAB_OPG1 WITH KEY KUNNR = ITAB_OPG1-KUNNR .
IF ITAB_OPG1-BAL1 LE 0 .
WRITE :/2 'Opening Balance for Period' , (4) S_MONAT-LOW , ':' ,
171(18) ITAB_OPG1-BAL1 .
ELSE.
WRITE :/2 'Opening Balance for Period' , (4) S_MONAT-LOW , ':' ,
151(18) ITAB_OPG1-BAL1 .
ENDIF.
WRITE :/(190) SY-ULINE .
* Displaying Line Items
LOOP AT ITAB_DISPLAY1 WHERE KUNNR EQ ITAB_OPG1-KUNNR.
V_CNT1 = SY-TABIX MOD 2.
IF V_CNT1 EQ 0.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
ELSE.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
ENDIF.
* Selecting Bank Name and Cheque Number
SELECT SINGLE CHECT HBKID INTO (PAYR-CHECT , PAYR-HBKID)
FROM PAYR WHERE
ZBUKR EQ P_BUKRS AND
VBLNR EQ ITAB_DISPLAY1-BELNR AND
KUNNR EQ ITAB_DISPLAY1-KUNNR .
SELECT SINGLE BANKS BANKL INTO (T012-BANKS , T012-BANKL) FROM
T012 WHERE BUKRS EQ P_BUKRS AND
HBKID EQ PAYR-HBKID.
SELECT SINGLE BANKA INTO BNKA-BANKA FROM BNKA WHERE
BANKS EQ T012-BANKS AND
BANKL EQ T012-BANKL .
WRITE :/2 ITAB_DISPLAY1-BUDAT ,
14 ITAB_DISPLAY1-BELNR ,
26 ITAB_DISPLAY1-BLDAT ,
40 ITAB_DISPLAY1-XBLNR ,
58(16) PAYR-CHECT ,
75 BNKA-BANKA ,
105(40) ITAB_DISPLAY1-SGTXT ,
146(4) ITAB_DISPLAY1-BLART .
* Determinig Debit or Credit
IF ITAB_DISPLAY1-SHKZG EQ 'S'.
V_DEBIT_TOTAL1 = V_DEBIT_TOTAL1 + ITAB_DISPLAY1-DMBTR.
WRITE:151(18) ITAB_DISPLAY1-DMBTR ,
171(18) SPACE .
ELSEIF ITAB_DISPLAY1-SHKZG EQ 'H'.
V_CREDIT_TOTAL1 = V_CREDIT_TOTAL1 + ITAB_DISPLAY1-DMBTR.
WRITE:151(18) SPACE ,
171(18) ITAB_DISPLAY1-DMBTR .
ENDIF.
CLEAR : T012 , BNKA , PAYR .
ENDLOOP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/(190) SY-ULINE.
* Displaying Debit and Credit Totals
WRITE:/125 TEXT-001 ,
151(18) V_DEBIT_TOTAL1,
171(18) V_CREDIT_TOTAL1 .
WRITE:/(190) SY-ULINE.
* Displaying the Closing Balance
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
V_CLOSE_BAL1 = ITAB_OPG1-BAL1 + V_DEBIT_TOTAL1 - V_CREDIT_TOTAL1 .
IF V_CLOSE_BAL1 GT 0.
WRITE:/122 TEXT-002 ,
151(18) V_CLOSE_BAL1 NO-SIGN. " D00K909674
ELSEIF V_CLOSE_BAL1 LE 0.
WRITE:/122 TEXT-002 ,
171(18) V_CLOSE_BAL1 NO-SIGN. " D00K909674
ENDIF.
CLEAR : V_CLOSE_BAL1.
ENDLOOP.
ENDFORM. " F_006_DISPLAY_LIST1
*****************dispaly list 2 ending here*********************
Thanks,
Sankar MHi,
Can you post it as two halves ?
Regards,
Swarna Munukoti -
How do I combine two iTunes accounts to one.?
How do I combine two iTunes accounts into one?
iTunes Account = Apple ID...
From Here http://support.apple.com/kb/HE37
I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs. -
How do I combine two slide shows into one?
I need to combine two slide shows into one and put the whole thing into a loop for a Kiosque. Can someone help?
Drag and drop the slides from the Thumbnail viewer (left side of the window) from one Keynote to the other. They should copy with all the Actions and Transitions still in place. Then go to Inspector>Document Tab and check the box that says to Loop slideshow.
-
Combining two sales documents into one billing document
Hi Friends,
I need to combine two sales document into one billing document. Header data is same in both sales document.
I have set factory calendar in the payer master.
Tried for data transfer rotine at copy control of item level. But was not sure which routine to be set.
Please let me know, what all settings are required to create one combine billing document.
Regards
SumanHi,
Is it delivery based billing or order based billing?
2 orders / 2 deliveries and 1 invoice.
For the above situation you need to write a routine which eliminates document number difference for Reference and Allocation.
If you do not have different customer purchase orders for these two sales orders and in your copy control from delivery to billing your assignment and reference numbers are blank then system will club these deliveries and create one sales order.
Else you need to eliminate these by writing a copy control routine and assign it at the header level.
Hope this helps. Pl. revert in case of further clarifications.
Thanks
Krishna. -
Is it possible to combine two pivot report into one ?..
Is it possible to combine two pivot report into one ?..
Then trying to display a chart or table result.Thanks for the reply.
Let me explain it briefly. I am creating a Report 1 based on one fitler condition and second report is created based on second filter condition.
I have similar column (time periods) in the both report. Then measure column has to combine and show as single report.
This is my requirement. -
To Join two SAP fields into one info object
Hi All,
Can you please suggest the best method to concatenate values from two R/3 fields into one info object master data table?
The requirement is to create a Sales report where I need to report on sales against sales type.
Sales type is a list of joint values of item category ( 0ITEM_CATEG) and bill type (0BILL_TYPE).
So, I need a list of all item categories and billing types in a single object and report sales value against it.
Please suggest.
Thanks,
SharmishthaHi Venkat,
In DSO any case you will not be having more than 16 Keys. I am surprised seeing requirement of more than 16 keys, but anyways you need to go with some workaround.
You can concatenate multiple Fields and map to one Dummy InfoObject which will be Key in DSO so in actual you have more than 16 Keys but have 16 Keys in system.
But analyze requirement in detail because this will increase data redundancy and time for load will get increased.
Also for new issues start new discussion otherwise people will not able to help you in this forum.
Regards,
Ganesh -
Combining two single recordset into one two column recordset
Hi Forum
Assume we have three types , each 'table of'
CREATE OR REPLACE type type1 as table of number ;
CREATE OR REPLACE type type2 as table of varchar2 (255);
CREATE OR REPLACE TYPE TYPEVALUE AS OBJECT
(object_type number ,
object_value varchar2(255)
resultset1 type1 := type1() ;
resultset2 type2 := type2() ;
resultset3 typevalue := typeValue3() ;
I want to populate records of resultset3 from resultset1 and resultset2 , using resultset1 for first column of record and resultset2 for second column.
One way is to do for loop but I don't want to use this.
I need something similar to resultset3 to use it dynamically in select statement to do MINUS operation with another resultset . I think things like MULTISET, COLLECT, CAST can achieve what I want to do.
Can you please help me to have a select statement that combines two single column rowset and put into a two column recordset.
ThanksHi,
You can do something like this:
SQL> create or replace type type1 as table of number;
2 /
Type created.
SQL> create or replace type type2 as table of varchar2(255);
2 /
Type created.
SQL> create or replace type typevalue as object(object_type number, object_value varchar2(255));
2 /
Type created.
SQL> create type typevalue_tab as table of typevalue;
2 /
Type created.
SQL> ed
1 declare
2 resultset1 type1 := type1(1, 2, 3, 4, 5);
3 resultset2 type2 := type2('one', 'two', 'three', 'four', 'five');
4 resultset3 typevalue_tab;
5 begin
6 for l_res in (
7 select typevalue(t1.col1, t2.col2) as col
8 from (
9 select column_value col1
10 , rownum rn
11 from table(cast(resultset1 as type1))
12 ) t1
13 , (
14 select column_value col2
15 , rownum rn
16 from table(cast(resultset2 as type2))
17 ) t2
18 where t1.rn = t2.rn
19 )
20 loop
21 dbms_output.put_line(
22 'Object Type: '||l_res.col.object_type||' '||
23 'Object Value: '||l_res.col.object_value
24 );
25 end loop;
26* end;
SQL> /
Object Type: 1 Object Value: one
Object Type: 2 Object Value: two
Object Type: 3 Object Value: three
Object Type: 4 Object Value: four
Object Type: 5 Object Value: five
PL/SQL procedure successfully completed.All the work here is done in SQL so it should work similarly if you have these things defined as nested table columns in the database.
However, there is a caveat here: the lines highlighted in bold above are defining an arbitrary ordering for the nested table elements using rownum, as there is no concept of ordering within a nested table. You should change this part of the query to whatever makes sense in your environment, otherwise this solution cannot be guaranteed to be correct. Another option would be to use VARRAYs, as they will retain the order of elements.
cheers,
Anthony -
How do I combine two user accounts into one account?
When we originally set-up our iMac, I set-up two accounts for my wife and I. Since then it has been a royal pain with music and applications sharing. How do I merge the two accounts into one?
I found an answer to this by searching on "merging two accounts" rather than "combining two accounts." BTW, it's a little mini-nightmare if you only use "combine" on both Google and Apple support. At least this post might help others avoid the same fate.
Here's where to go to find the answer: http://discussions.apple.com/message.jspa?messageID=5629676#5629676 -
How do I combine two PDF files into one?
I want to merge two PDF files into one to make things easier when I take the file(s) to a professional printer.
Can I do this in Preview?
Thanks.You can't do in Preview.
You can combine individual PDFs into one PDF using one of these freeware utilities.
PDFMergeX @ http://www.malcom-mac.com/blog/pdfmergex/
joinPDF @ http://www.macupdate.com/info.php/id/16604
Combine PDFs @ http://www.monkeybreadsoftware.de/Freeware/CombinePDFs.shtml>
PDFLab (join & split) @ http://pdflab.en.softonic.com/mac
Cheers, Tom
Maybe you are looking for
-
Sales Orders Change Log question
Hi All, I am currently working on a project that involves querying SAP Database to get custom reports via web browser, I've made a lot of advances and most of the site is ready but I'm missing just one item that I hope you could help me. Thing is I a
-
details
-
Hello, I have noticed that my Firefox has been crashing quite often over the last 2 weeks. Now as of this morning my several Book Marks that I use daily have disappeared ... Please help me to restore this . Awaiting a response Thank you
-
Downloaded messages will not show in inbox.
I'm using a BlackBerry 8900, though that's obvious I suppose, on a BES server at a University. We recently shifted everyone at the U to a new server and now although I have notifications that there are 32000+ messages in my inbox, I can't see any of
-
How to get Iview Quick link displayed in a headless window
Hi I set the quick link for a iview, the iview has the Launch in new windows property set to 'Launch in a separated headless portal window', However when I run this iview's quick link URL, it always open in a portal content area with all the header