3 Rows per list item in table
Hi all.
In most the screens I have, each value object in my list creates one row in my table which is fine I have no problems with that.
However I have the need to display a table where each value object in the list has 3 rows of data so I need one row to create HTML like this...
<TR>
<TD rowspan='3'> An ID </TD>
<TD> data </TD>
<TD> data </TD>
<TD> data </TD>
</TR>
<TR>
<TD> data </TD>
<TD> data </TD>
<TD> data </TD>
</TR>
<TR>
<TD> data </TD>
<TD> data </TD>
<TD> data </TD>
</TR>How do I do this in JSF?, I have had to do this as a plain JSP page for now but I hope there is a way to do this. Any help greatly appriacated
TIA
Dale
Sorry, no rowspan/colspan like attributes in JSF. Sometimes you can get away with using a f:facet for headers and footers... But not likely in the case you exampled.
I really think JSF needs something to facilitate better table formatting. Unless I'm missing something huge (possible). I don't think you can do this with CSS either (at least, on the h:panelGrid tag).
CowKing
Similar Messages
-
Dear All,
I have a table with 2 rows and one has varchar type data and the other is the time stamp (04/02/2013 19:44:40).
Now I want to write a query to count number of rows per hour in the table with date ...strcutre is as follows :
ddata varchar2(20)
ddate date with timestamp ;
Require the output as follows :
March 28th 12 AM - 20
March 28th 1 AM - 40
March 28th 2 AM - 40
where March 28th 12 AM is the date with time
and 20 - number of rows in that date and in that hour..
Please advise..Hi,
936074 wrote:
Dear All,
I have a table with 2 rows and one has varchar type data and the other is the time stamp (04/02/2013 19:44:40).
Now I want to write a query to count number of rows per hour in the table with date ...strcutre is as follows :
Whenever you have a problem, post CREATE TABLE and INSERT statements for a little sample data, and the results you want from that data.
>
ddata varchar2(20)
ddate date with timestamp ;What is this? DATE and TIMESTAMP are 2 different datatypes.
If ddate is a DATE, then it is not a TIMESTAMP.
If ddate is a TIMESTAMP, then it is not a DATE.
Require the output as follows :
March 28th 12 AM - 20
March 28th 1 AM - 40
March 28th 2 AM - 40
where March 28th 12 AM is the date with time
and 20 - number of rows in that date and in that hour..
Please advise..Here's one way:
SELECT TRUNC (ddate, 'HH') AS hour
, COUNT (*) AS cnt
FROM table_x
GROUP BY TRUNC (ddate, 'HH')
ORDER BY TRUNC (ddate, 'HH') -- Or hour
;TRUNC (ddate) will return a DATE, regardless of whether ddate is a DATE or a TIMESTAMP. -
Send one mail for multiple list item update
i have 3 lists storing customer details which are displayed in a page. i need to send mail whenever there is customer details update(any or all 3 lists). should send only one mail per customer details update(not per list item update).Please advise how to
achieve this using SharePoint workflow.Hi,
According to your post, my understanding is that you want to send an email when this are list items update.
A workaround is that we can use one big list to store the customer details from these three lists, then let users update their information in the big list and send email.
Or we can create a form to update these 3 lists, then send a mail when the form saved.
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/39f2d0bf-6cfd-4b61-b0b7-ff89113406d5/update-multiple-list-from-a-single-form-using-infopath-in-sharepoint-2010?forum=sharepointcustomizationprevious
Best Regards
Dennis Guo
TechNet Community Support -
How to Populate a List item with LOV'S
How to Populate a list of items with Lov's
and then how to dynamically change the Values of one LIST Item
Based on the Value of anothe List item976798 wrote:
--Hello..I want to ask that How to bind a list item with table values? this below code does not populate items from database to list item.Pls any body give me solution.
declare
group_id RecordGroup;
list_id Item:=Find_Item('LST_CLASS');
status number;
begin
group_id:=Create_Group_From_Query('Answer_List','select CLASS_ID,CLASS_NM from CLASS_MSTR');
status:=Populate_Group('Answer_List');
message(to_char(status));
Populate_List(list_id,group_id);
end;Welcome to the Oracle Forums. Please take a few minutes to review the following:
<ul>
<li>Oracle Forums FAQ
<li>Before posting on this forum please read
<li>10 Commandments for the OTN Forums Member
<li>How to ask questions the smart way
</ul>
Following these simple guidelines will ensure you have a positive experience in any forum; not just this one!
Check this link: How to Dynamically Populate a Pop List ?
Hope this helps
Hamid
If someone's response is helpful or correct, please mark it accordingly. -
HI !
I want to populate List item , from table using SQL query,
e.g. select * from dept_name,dept_no from dept; and want to save deptid. i.e list item disply only dept_name and store/save dept_id as it is foreign key.
Thanks & Regards !Hi !
I have adopted this technique.
I have made function combo_population :
PROCEDURE COMBO_POPULATION(COMBO_NAME VARCHAR2, COMBO_LIST VARCHAR2)
IS
rg_num number;
BEGIN
rg_num := populate_group(combo_name);
populate_list(combo_list, combo_name);
END;
I create record group dept_rg (select deptname,to_char(deptid) from dept)
And i called function at when-new-form-instance
combo_population('dept_rg','emp.empdepart');
It works very well only it shows list of department Name, and save department id only.(noted that, on form the list item is deptid and only change its type to varchar2 then above function works well).
Regards! -
I have tabular block (4 items) in this block and created a list item on top of this tabular.
I insert first record and select an item from list item
but when I go to 2nd record then list item value go back on this default item.
there is possibility that when I enter 1st record and select item from item list
this item (from list) is my default item in each row.No.
Sr# Item1 Item2 item3 list ( all database items)
1 abc abc abc xyz
2 abc bbc ccd
now see list item this is a item list and having 3 list in item
1. abc
2. xyz
3. bbc
in first row I post record and select xyz from list item
in 2nd row i want that xyz will be the default value of all rows in list item.
null -
Hi,
i have share point list like below
ID name AdminEmail Useremail URl DueDate UploadSatus
1 ppp [email protected] [email protected] url some date uploaded
2 yyy [email protected] [email protected] url somedate empty
3 xxx [email protected] [email protected] url somedate empty
4 jjj [email protected] [email protected] url somedate emp
AdminEmail and UserEmail are lookup column
i using query the list using caml query
inside of foreach i am checking two condition like below
one is upload status in not empty
i need to send to mail to admin user this part i have done my adding all list items which have datatable apply group by working fine
in send condition i am checking difference between DueDate And current date value
if the value is =1 or -1
if the value is i
thank
i am getting the
table like below
ID name AdminEmail Useremail URl DueDate Upload
2 yyy [email protected] [email protected] url somedate empty
3 xxx [email protected] [email protected] url somedate empty
4 jjj [email protected] [email protected] url somedate empty
my issue is here how can i get the dynamic table rows which are same values of AdminEmail and user email one set and distintict rows are another set
sets which are same emails are same
3 xxx [email protected] [email protected] url somedate empty
4 jjj [email protected] [email protected] url somedate empty
set 2
2 yyy [email protected] [email protected] url somedate empty
how can i get this separate this can any one tell i need to send mail only one time to user [adim and user] .planing to aviod duplicate mail
Srinivasyour case better to use the two data tables to store the data
DataTable dt = list.Items.GetDataTable();
foreach (DataRow row in dt.Rows) -
Parse column with csv string into table with one row per item
I have a table (which has less than 100 rows) - ifs_tables that has two columns: localtable and Fields. Localtable is a table name and Fields contains a subset of columns from that table. Fields is a comma delimited list: 'Fname,Lname'. It looks like
this:
localtable fields
========= =============
customertable fname,lname
accounttable type,accountnumber
Want to end up with a new table that has one row per column. It should look like this:
TableName ColumnName
============ ==========
CustomerTable Fname
CustomerTable Lname
AccountTable Type
AccountTable AccountNumber
Tried this code but have two issues (1) My query using the Splitfields functions gets "Subquery returned more than 1 value" (2) some of my Fields has hundreds of collumns in the commas delimited list. It will returns "Msg 530, Level 16, State
1, Line 8. The statement terminated. The maximum recursion 100 has been exhausted before statement completion.maxrecursion greater than 100." Tried adding OPTION (maxrecursion 0) in the Split function on the SELECT statment that calls the CTE, but
the syntax is not correct.
Can someone help me to get this sorted out? Thanks
DROP FUNCTION [dbo].[SplitFields]
go
CREATE FUNCTION [dbo].[SplitFields]
@String NVARCHAR(4000),
@Delimiter NCHAR(1)
RETURNS TABLE
AS
RETURN
WITH Split(stpos,endpos)
AS(
SELECT 0 AS stpos, CHARINDEX(@Delimiter,@String) AS endpos
UNION ALL
SELECT endpos+1, CHARINDEX(@Delimiter,@String,endpos+1)
FROM Split
WHERE endpos > 0
SELECT 'Id' = ROW_NUMBER() OVER (ORDER BY (SELECT 1)),
'Data' = SUBSTRING(@String,stpos,COALESCE(NULLIF(endpos,0),LEN(@String)+1)-stpos)
FROM Split --OPTION ( maxrecursion 0);
GO
IF OBJECT_ID('tempdb..#ifs_tables') IS NOT NULL DROP TABLE #ifs_tables
SELECT *
INTO #ifs_tables
FROM (
SELECT 'CustomerTable' , 'Lname,Fname' UNION ALL
SELECT 'AccountTable' , 'Type,AccountNumber'
) d (dLocalTable,dFields)
IF OBJECT_ID('tempdb..#tempFieldsCheck') IS NOT NULL DROP TABLE #tempFieldsCheck
SELECT * INTO #tempFieldsCheck
FROM
( --SELECT dLocaltable, dFields from #ifs_tables
SELECT dLocaltable, (SELECT [Data] FROM dbo.SplitFields(dFields, ',') ) from #ifs_tables
) t (tLocalTable, tfields) -- as Data FROM #ifs_tables
SELECT * FROM #tempFieldsCheckTry this
DECLARE @DemoTable table
localtable char(100),
fields varchar(200)
INSERT INTO @DemoTable values('customertable','fname,lname')
INSERT INTO @DemoTable values('accounttable','type,accountnumber')
select * from @DemoTable
SELECT A.localtable ,
Split.a.value('.', 'VARCHAR(100)') AS Dept
FROM (SELECT localtable,
CAST ('<M>' + REPLACE(fields, ',', '</M><M>') + '</M>' AS XML) AS String
FROM @DemoTable) AS A CROSS APPLY String.nodes ('/M') AS Split(a);
Refer:-https://sqlpowershell.wordpress.com/2015/01/09/sql-split-delimited-columns-using-xml-or-udf-function/
CREATE FUNCTION ParseValues
(@String varchar(8000), @Delimiter varchar(10) )
RETURNS @RESULTS TABLE (ID int identity(1,1), Val varchar(8000))
AS
BEGIN
DECLARE @Value varchar(100)
WHILE @String is not null
BEGIN
SELECT @Value=CASE WHEN PATINDEX('%'+@Delimiter+'%',@String) >0 THEN LEFT(@String,PATINDEX('%'+@Delimiter+'%',@String)-1) ELSE @String END, @String=CASE WHEN PATINDEX('%'+@Delimiter+'%',@String) >0 THEN SUBSTRING(@String,PATINDEX('%'+@Delimiter+'%',@String)+LEN(@Delimiter),LEN(@String)) ELSE NULL END
INSERT INTO @RESULTS (Val)
SELECT @Value
END
RETURN
END
SELECT localtable ,f.Val
FROM @DemoTable t
CROSS APPLY dbo.ParseValues(t.fields,',')f
--Prashanth -
Hi Everyone,
A Very Very Happy, Fun-filled, Awesome New Year to You All.
Now coming to the discussion of my problem in Oracle Forms 6i:
I have created a form in which the data is entered & saved in the database.
CREATE TABLE MATURED_FD_DTL
ACCT_FD_NO VARCHAR2(17 BYTE) NOT NULL,
CUST_CODE NUMBER(9),
FD_AMT NUMBER(15),
FD_INT_BAL NUMBER(15),
TDS NUMBER(15),
CHQ_NO NUMBER(10),
CREATED_DATE DATE,
CREATED_BY VARCHAR2(15 BYTE),
PREV_YR_TDS NUMBER(15),
ADD_FD_AMT NUMBER(15),
DESCRIPTION VARCHAR2(100 BYTE),
P_SAP_CODE NUMBER(10),
P_TYPE VARCHAR2(1 BYTE)
The form looks like below:
ENTER_QUERY EXECUTE_QUERY SAVE CLEAR EXIT
ACCT_FD_NO
CUST_CODE
FD_AMT
FD_INT_BAL
PREV_YR_TDS
TDS
ADD_FD_AMT
P_SAP_CODE
P_TYPE
CHQ_NO
DESCRIPTION
R
W
P
List Item
There are 5 push buttons namely ENTER_QUERY, EXECUTE_QUERY, SAVE, CLEAR, EXIT.
The table above is same as in the form. All the fields are text_item, except the P_TYPE which is a List_Item ( Elements in List Item are R, W & P).
The user will enter the data & save it.
So all this will get updated in the table MATURED_FD_DTL .
I am updating one column in another table named as KEC_FDACCT_MSTR.
and
I want this details to get updated in another table named as KEC_FDACCT_DTL only if the P_TYPE='P'
CREATE TABLE KEC_FDACCT_DTL
FD_SR_NO NUMBER(8) NOT NULL,
FD_DTL_SL_NO NUMBER(5),
ACCT_FD_NO VARCHAR2(17 BYTE) NOT NULL,
FD_AMT NUMBER(15,2),
INT_RATE NUMBER(15,2),
SAP_GLCODE NUMBER(10),
CATOGY_NAME VARCHAR2(30 BYTE),
PROCESS_YR_MON NUMBER(6),
INT_AMT NUMBER(16,2),
QUTERLY_FD_AMT NUMBER(16,2),
ITAX NUMBER(9,2),
MATURITY_DT DATE,
FDR_STAUS VARCHAR2(2 BYTE),
PAY_ACC_CODE VARCHAR2(85 BYTE),
BANK_CODE VARCHAR2(150 BYTE),
NET_AMOUNT_PAYABLE NUMBER,
QUATERLY_PAY_DT DATE,
CHEQUE_ON VARCHAR2(150 BYTE),
CHEQUE_NUMBER VARCHAR2(10 BYTE),
CHEQUE_DATE DATE,
MICR_NUMBER VARCHAR2(10 BYTE),
PAY_TYPE VARCHAR2(3 BYTE),
ADD_INT_AMT NUMBER(16,2),
ADD_QUTERLY_FD_AMT NUMBER(16,2),
ADD_ITAX NUMBER(16,2),
ECS_ADD_INT_AMT NUMBER(16),
ECS_ADD_QUTERLY_FD_AMT NUMBER(16),
ECS_ADD_ITAX NUMBER(16)
So for the push button 'Save' , i have put in the following code in the Trigger : WHEN BUTTON PRESSED,
BEGIN
Commit_form;
UPDATE KEC_FDACCT_MSTR SET PAY_STATUS='P' WHERE ACCT_FD_NO IN (SELECT ACCT_FD_NO FROM MATURED_FD_DTL);
UPDATE MATURED_FD_DTL SET CREATED_DATE=sysdate, CREATED_BY = :GLOBAL.USER_ID WHERE ACCT_FD_NO = :acct_fd_NO;
IF :P_TYPE='P' THEN
INSERT INTO KEC_FDACCT_DTL
SELECT FD_SR_NO, NULL, MATURED_FD_DTL.ACCT_FD_NO, FD_AMT, INT_RATE, P_SAP_CODE,
GROUP_TYPE, (TO_CHAR(SYSDATE, 'YYYYMM'))PROCESS_YR_MON,
FD_INT_BAL, (FD_INT_BAL-MATURED_FD_DTL.TDS)QUTERLY_FD_AMT , MATURED_FD_DTL.TDS,
MATURITY_DATE, P_TYPE, NULL, NULL, (FD_INT_BAL-MATURED_FD_DTL.TDS)NET_AMOUNT_PAYABLE,
NULL, NULL, CHQ_NO, SYSDATE, NULL, 'CHQ', NULL, NULL, NULL, NULL, NULL, NULL
FROM MATURED_FD_DTL, KEC_FDACCT_MSTR
WHERE KEC_FDACCT_MSTR.ACCT_FD_NO=MATURED_FD_DTL.ACCT_FD_NO;
END IF;
COMMIT;
MESSAGE('RECORD HAS BEEN UPDATED AS PAID');
MESSAGE(' ',no_acknowledge);
END;
If P_TYPE='P' , then the data must get saved in KEC_FDACCT_DTL table.
The problem what is happening is,
If i enter the details with all the records as 'P' , the record gets inserted into the table KEC_FDACCT_DTL
If i enter the details with records of 'P' and 'R' , then nothing gets inserted into the table KEC_FDACCT_DTL.
Even the records with 'P' is not getting updated.
I want the records of 'P' , to be inserted into table KEC_FDACCT_DTL, even when multiple records of all types of 'P_Type' (R, w & P) are entered.
So, can you please help me with this.
Thank You.
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
Oracle Forms Builder 6i.Its not working properly.
At Form_level_Trigger: POST_INSERT, I have put in the following code.
IF :P_TYPE='P'THEN
INSERT INTO KEC_FDACCT_DTL
SELECT FD_SR_NO, NULL, MATURED_FD_DTL.ACCT_FD_NO, FD_AMT, INT_RATE, P_SAP_CODE,
GROUP_TYPE, (TO_CHAR(SYSDATE, 'YYYYMM'))PROCESS_YR_MON,
FD_INT_BAL, (FD_INT_BAL-MATURED_FD_DTL.TDS)QUTERLY_FD_AMT , MATURED_FD_DTL.TDS,
MATURITY_DATE, P_TYPE, NULL, NULL, (FD_INT_BAL-MATURED_FD_DTL.TDS)NET_AMOUNT_PAYABLE,
NULL, NULL, CHQ_NO, SYSDATE, NULL, 'CHQ', NULL, NULL, NULL, NULL, NULL, NULL
FROM MATURED_FD_DTL, KEC_FDACCT_MSTR
WHERE KEC_FDACCT_MSTR.ACCT_FD_NO=MATURED_FD_DTL.ACCT_FD_NO;
END IF;
MESSAGE('RECORD HAS BEEN UPDATED AS PAID');
MESSAGE(' ',no_acknowledge);
It worked properly when i executed first time, but second time , in database duplicate values were stored.
Example: First I entered the following in the form & saved it.
ACCT_FD_NO
CUST_CODE
FD_AMT
FD_INT_BAL
PREV_YR_TDS
TDS
ADD_FD_AMT
P_SAP_CODE
P_TYPE
CHQ_NO
DESCRIPTION
250398
52
50000
6000
0
600
0
45415
P
5678
int1
320107
56
100000
22478
3456
2247
0
45215
R
456
320108
87
50000
6500
0
650
0
21545
W
0
In the database, in table KEC_FDACCT_DTL, the ACCT_FD_NO:250398 with P_TYPE='P' record was inserted.
ACCT_FD_NO
P_TYPE
250398
P
But second time, when i entered the following in the form & saved.
ACCT_FD_NO
CUST_CODE
FD_AMT
FD_INT_BAL
PREV_YR_TDS
TDS
ADD_FD_AMT
P_SAP_CODE
P_TYPE
CHQ_NO
DESCRIPTION
260189
82
50000
6000
0
600
0
45415
P
5678
interest567
120011
46
200000
44478
0
4447
0
45215
R
456
30191
86
50000
6500
0
650
0
21545
W
56
In the database, in the table KEC_FDACCT_DTL, the following rows were inserted.
ACCT_FD_NO
P_TYPE
250398
P
250398
P
260189
P
320107
R
320108
W
There was duplicate of 250398 which i dint enter in the form second time,
All the other P_TYPE was also inserted , but i want only the P_TYPE='P' to be inserted into the database.
I want only those records to be inserted into the form where P_TYPE='P' and duplicate rows must not be entered.
How do i do this??? -
How to update the table when change list item in classic report
hi ,
i worked with apex 4.2 and i create normal classic report with one select list(named loved)Column ,now i want to update table when user change the list with new value ,i can't create dynamic action to do this,i create check box with primary key and loop for check item to update the table but i can't get the value of list item. and for more speed the user want to do this when change the list value.
my question
1- how to do this by javascript and get the value from list item and update the table with new value
2- is i must use API to create list item so i can get the value of item in report or what.
Thanks
AhmedI coded the following to give you direction:
1. In the "Element Attributes" section of the DEPTNO column, I call a javascript function as:
onchange = "javascript:updateTable(this);"2. I wrote a simple javascript function that shows an alert when the user changes the select list as:
<script language="JavaScript" type="text/javascript">
function updateTable(pThis)
var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
alert('Row# - '+ vRow + ' has the value - ' + pThis.value);
</script>Now, you can call a AJAX on-demand process inside the javascript function to update the database value. -
How to move rows up and down on a SharePoint List Item
Hello,
I have created a simple Project Plan Template for my team using a SharePoint list.
I have listed a sample below:
Date
Tasks
Owner
03/09/14 Gather requirement
X
05/09/14 Develop
Y
07/09/14 Deploy
Y
Currently there is no functionality in the template to add another task to update the Plan. eg: I want to add another task with a due date 04/09/14 to confirm requirements.
So basically I want to be able to add an item (task) towards the end and then move it to desired position depending on the due date.
Please suggest how this can be implemented without complex code changes as I am new to working with SharePoint.
Many Thanks in advance,
BHHi ,
Thanks for the response.
But I am looking to move the rows in a particular list A and not between 2 separate list items A and B according to the date.
List Project A has separate tasks defined which needs to accomplished in a timely manner for the project to complete on schedule.
I want to be able to move these tasks which are in a table on the SharePoint List.
Hope this is clear.
Please let me know if you have suggestions for this.
-BH -
Can an Excel Report with Multivalue Custom field list report on one row per task
I have a ECF Multi Value field (MVF) at the Task Level and have created a report. In Excel it wants to add it as a Pivotable, which makes sense and I end up with a row for each MVF. If a Task has 3 MV selected there are 3 rows returned.
I want to see if it will return only one row (row per task).
Example of Result Required
PTask name , MVf Value1, MVF Value2, MVF Value 3.
Build Car X
X
Build Bike X X
Is it possible? is there something in my SQL Query I can do or is there something in Excel I can configure?
Result being Returned
PTask name , MVf Value1, MVF Value2, MVF Value 3.
Build Car X
Build Car X
Build Bike X
Build Bike X
SQL Query
SELECT
MSP_EpmProject_UserView.ProjectOwnerName,
MSP_EpmProject_UserView.ProjectName,
MSP_EpmTask_UserView.TaskName,
MSP_EpmLookupTable.MemberFullValue AS [Item],
Iif(MSP_EpmLookupTable.MemberFullValue LIKE
'%' + 'CPT' + '%','X','') AS [CPT],
Iif(MSP_EpmLookupTable.MemberFullValue LIKE
'%' + 'TS' + '%','X','') AS [TS],
Iif(MSP_EpmLookupTable.MemberFullValue LIKE
'%' + 'CSAs' + '%','X','') AS [CSAs],
Iif(MSP_EpmLookupTable.MemberFullValue LIKE
'%' + 'EM' + '%','X','') AS [EM],
Iif(MSP_EpmLookupTable.MemberFullValue LIKE
'%' + 'RS' + '%','X','') AS [RS],
Iif(MSP_EpmLookupTable.MemberFullValue LIKE
'%' + 'IS' + '%','X','') AS [IS]
FROM
MSP_EpmProject_UserView INNER JOIN
MSP_EpmTask_UserView ON
MSP_EpmProject_UserView.ProjectUID = MSP_EpmTask_UserView.ProjectUID
LEFT OUTER JOIN
[MSPCFTASK_Service Areas_AssociationView] ON
MSP_EpmTask_UserView.TaskUID = [MSPCFTASK_Service Areas_AssociationView].EntityUID
LEFT OUTER JOIN
MSP_EpmLookupTable ON
[MSPCFTASK_Service Areas_AssociationView].LookupMemberUID = MSP_EpmLookupTable.MemberUID
WHERE datalength(MSP_EpmLookupTable.MemberFullValue) > 0
Andrew PayzeHi Andrew,
I'm not a developer, but I found something in my documentation that could help you. This is a SQL store procedure that returns in an Excel pivot table something like below (GR_test6 being a project and values in the next column being multivalue project ECF
values).
SELECT proj.ProjectName,
lt.MemberFullValue AS 'VLookupField'
FROM dbo.MSP_EpmProject_UserView AS proj
LEFT OUTER JOIN [dbo].[MSPCFPRJ_ProjectECF_AssociationView] AS MVassoc -- view for multi value field
ON proj.ProjectUID = MVassoc.EntityUID
LEFT OUTER JOIN dbo.MSP_EpmLookupTable AS lt
ON MVassoc.LookupMemberUID = lt.MemberUID
order by ProjectName asc
Hope this helps.
Guillaume Rouyre - MBA, MCP, MCTS -
Dynamic Table Two lines per data item
Hi experts!!
In my form i have a table with two lines per data item for example the table i want the table to be:
boldheader rowbold
bold1,1 1,2bold
bold1,3 1,4bold
I have also wrapped the table in a subform, and marked the checkbox "Repeat Row for each data item".
Instead i get :
1,1 1,2
2,1 2,2
1,3 1,4
2,3 2,4
How can i display two rows per item ???
Thank you in advance!!!If there are two lines in a single row for a table (I.e if there are 14 columns, How to be adjusted).
There are two possible ways of doing.
1) a) Create a SubForm
b) Create a Table (If you create a table there will be Header Row and Body Row)
c) Delete the Body Row and instead of it create a SubForm with name Body Row
d) Now you have one Header Row and SubForm as BodyRow.
e) SubForm BodyRow again create two SubForms with names Row1, Row2.
f) Now make the SubFormBodyRow as Flow layout and repeat the SubForm(Since if you make this then the child nodes (Row1 & Row2) will inherit the properties of the parent node (SubForm-BodyRow).
g) Now you can have two rows in one lineitem.
2) The second possible way is showing it in a Dynamic ToolTip.
Lets say you have a table inside a table then you can show it in a Dynamic ToolTip when you place the cursor in a Student Id you will get Student Data.
Hope it solves. -
Deleting a row from the item table
Hi All,
I have a requirement where I need to put a button to delete the selected row from the item table and for this I have written the following code:
DATA lo_nd_t_bseg TYPE REF TO if_wd_context_node.
DATA lo_el_t_bseg TYPE REF TO if_wd_context_element.
DATA ls_t_bseg TYPE wd_this->element_t_bseg.
data: it_tab type table of wd_this->element_t_bseg.
lo_nd_t_bseg = wd_context->path_get_node( path = `Z.T_BSEG` ).
lo_el_t_bseg = lo_nd_t_bseg->get_element( ).
lo_el_t_bseg->get_static_attributes(
IMPORTING
static_attributes = ls_t_bseg ).
lo_nd_t_bseg = wd_context->path_get_node( path = `Z.T_BSEG` ).
lo_el_t_bseg = lo_nd_t_bseg->get_element( ).
IF lo_el_t_bseg IS not INITIAL.
lo_nd_t_bseg->remove_element( lo_el_t_bseg ).
ENDIF.
Now the problem is although it's deleteing the selected line correctly but because of this I am losing one line on the screen for the user to enter... my form has a fixed number of lines and in my case it's 10... so everytime I am using deleting a line item I am losing one line to enter..... can you please tell me how can I avoid this?
Edited by: rajatg on Aug 4, 2011 3:12 PMlets say...
i have 1,2,3 documents
i have cleared , document 2....
1. when the user selects this record.... you can read the context_element....using the context element you can get the values and clear those values and set the blank values...
when the user click on save ...you can have only those two records in the table.
2. conitnue with your logic .... remove_element. once it is done ,,, create_element at the deleted index...
3. when clicked on delete ...remove_element ( current code).... bind the table to the node... and you will have ur values -
How to populate List Item from the table in a form builder
I want to know how to populate the List Item (pop up menu and combo box) from a table.
Supposing I have a table Customer(cust_id,cust_name)
and now I want to populate it in such a manner that I can update the data back to the database and also access the list on the form.This is the method i am using to populate a list.
1- First of all you need to create a non-database list item for customer_name.
2-create this procedure
PROCEDURE populate_list_with_query
--Populates the given list item with the specified query.
(p_list_item in VARCHAR2
,p_query in VARCHAR2)
IS
/* Name the record group after the list item (no
block prefix). */
cst_rg_name constant VARCHAR2(30) :=
GET_ITEM_PROPERTY(p_list_item,item_name);
v_rg_id RECORDGROUP;
BEGIN
v_rg_id := FIND_GROUP(cst_rg_name);
IF ID_NULL(v_rg_id) THEN
v_rg_id := CREATE_GROUP_FROM_QUERY(cst_rg_name,p_query);
END IF;
IF POPULATE_GROUP(v_rg_id) = 0 THEN
POPULATE_LIST(p_list_item,v_rg_id);
/* Force display of first list element label
in the list item. */
COPY(GET_LIST_ELEMENT_VALUE(p_list_item,1),p_list_item);
END IF;
END populate_list_with_query;
3- Create When-Create-Record on the block level and write this code
BEGIN
POPULATE_LIST_WITH_QUERY('bk1.customer_name',
'SELECT customer_name, to_char(customer_id) FROM customer');
END;
In this example, the customer name is the (visible) list label and the customer ID is the (actual) list value
i hope this will solve your problem ...
Maybe you are looking for
-
How to update Records of SAP table from .CSV file
Hi, I have written a code which takes a data from (,) delimited CSV file and adds it into the Internal table. Now I want to update the all fields in SAP table with the Internal table. I want to use Update statement. Update <table Name> SET <field nee
-
Error in executing ODCIIndexStart()
I a Search Application,I need to find the documents, where a StringAttribute (Author) contains any of the values in a specified array. For this purpose, I use an AnyOf-query (combined with some other queries). Alas I keep getting the following error-
-
Can't Export to tape with CS4 and Canon XL2
I can capture just fine from my XL2 but I can't export out to tape. It doesn't set the camera up as a playback monitor. How can I remedy this situation? Is there a setting I am missing?
-
I recently upgraded to Firefox 4 from version 3 and have experienced a problem when trying to purchase online using my Visa debit card. UK stores and services are using the "Verified By Visa" system to double-check the validity of credit and debit ca
-
In java String is treated as object but when we pass the String value as a parameter to a method and reassigned the value of the object inside the method Still the initial object is not getting changed why ? public class A public void m(String a