Dynamically want to display a row of a table in BI Publisher
Hi Gurus,
Could any body help me regarding the following thing .
I want to display a complete row of a table as a first record(on thenext page) if the particular Group having some data goes to next page .
This Grouph is the inner group. I have tried in using following way but it didnot help me .
I declare 2 variable as "present" and "prevoius and used <?xdoxslt:set_variable($_XDOCTX, 'count', <fo:page-number/>)?> to assigned value for both the variable . After that i have used <?:if $present != $rprevous?> Print the row else donot print.
Please i need a urgent help for this and will appriciate to you guys.
try BI publisher forum.
--Prasanna
Similar Messages
-
Want to display multiple rows of internal table on sap script
hi friends,
i have created element in window.and in report i have called all functions as open_form,start_form,write_form,end_form,close_form.
enclosing write_form function in 'loop at itab' and 'endloop',,,,gives error start_form missing even it is written before loop at sattement...
and if start_form is also included in loop at and endloop statement then it shows per record per page......
please suggest .....how to make all records on same page 1 after another rather than of different pagesHi
See the sample script program and code accordingly
*& Report ZTEST12121
*& SAPScripts Example 1
REPORT ztest12121.
*DATABASE TABLES
TABLES: ekko,ekpo,lfa1.
*INTERNAL TABLES AND STRUCTURES
DATA i_ekko LIKE ekko.
DATA i_ekpo LIKE ekpo OCCURS 0 WITH HEADER LINE.
DATA i_lfa1 LIKE lfa1.
*PARAMETERS
PARAMETERS: p_ebeln LIKE ekko-ebeln.
*VARIABLES
DATA MAT TYPE STRING VALUE 'MAT NO'.
DATA iTe TYPE STRING VALUE 'ITEM NO'.
DATA QTY TYPE STRING VALUE 'QTY'.
DATA UOM TYPE STRING VALUE 'UOM'.
DATA NET TYPE STRING VALUE 'NET PRICE'.
Data var type integer value 0.
*DATABASE SELECTS
*Header data
SELECT SINGLE * FROM ekko INTO i_ekko WHERE ekko~ebeln = p_ebeln.
IF sy-subrc = 0.
*Item Data
SELECT * FROM ekpo INTO TABLE i_ekpo WHERE ekpo~ebeln = p_ebeln.
IF sy-subrc NE 0.
WRITE 'PURCHASE DOCUMENT ITEM DATA ERROR'.
ELSE.
*Vendor Details
SELECT SINGLE * FROM lfa1 INTO i_lfa1 WHERE lfa1~lifnr = i_ekko-lifnr.
IF sy-subrc NE 0.
WRITE 'VENDOR DOCUMENT ITEM DATA ERROR'.
ENDIF.
ENDIF.
ELSE.
WRITE 'THIS PURCHASE DOCUMENT NUMBER DOESNOT EXISTS'.
ENDIF.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
APPLICATION = 'TX'
ARCHIVE_INDEX =
ARCHIVE_PARAMS =
DEVICE = 'PRINTER'
DIALOG = 'X'
form = 'ZSCRIPT_1'
language = sy-langu
OPTIONS =
MAIL_SENDER =
MAIL_RECIPIENT =
MAIL_APPL_OBJECT =
RAW_DATA_INTERFACE = '*'
SPONUMIV =
IMPORTING
LANGUAGE =
NEW_ARCHIVE_PARAMS =
RESULT =
EXCEPTIONS
CANCELED = 1
DEVICE = 2
FORM = 3
OPTIONS = 4
UNCLOSED = 5
MAIL_OPTIONS = 6
ARCHIVE_ERROR = 7
INVALID_FAX_NUMBER = 8
MORE_PARAMS_NEEDED_IN_BATCH = 9
SPOOL_ERROR = 10
CODEPAGE = 11
OTHERS = 12
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'OFFICEAD'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'OFFICEAD'
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'PODET'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'PODET'
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'TOP'
FUNCTION = 'SET'
TYPE = 'TOP'
WINDOW = 'MAIN'
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT I_EKPO.
var = i_ekpo-netpr * i_ekpo-menge.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'BODY'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDLOOP.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT =
RDI_RESULT =
TABLES
OTFDATA =
EXCEPTIONS
UNOPENED = 1
BAD_PAGEFORMAT_FOR_PRINT = 2
SEND_ERROR = 3
SPOOL_ERROR = 4
CODEPAGE = 5
OTHERS = 6
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
<b>Reward points for useful Answers</b>
Regards
Anji -
Want to display selected rows of table in another table
Hello all,
On jspx page their is quick query search component clcking on it popup gives result in table format
user can select multiple rows for this I have provided checkbox column which transit variable in my view..
now I want to display selected rows into another table
how I can achieve this functionality...Hi,
You can add the method in the AM, expose them as client interface. In the action listener of the button (of the popup where you are selecting the rows and clicking to continue), execute the method from AM.
Sample,
AM method
public void filterMyTableRows(){
this.getMyViewObject().setWhereClause("transient_attribute='Y'"); // Change according to your view object name and transient attribute name
this.getMyViewObject().executeQuery();
}In your actionListener, add something like
public String commandButtonActionListener() {
BindingContainer bindings = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("filterMyTableRows");
Object result = operationBinding.execute();
if (!operationBinding.getErrors().isEmpty()) {
return null;
/* your rest of the code goes here..
return null;
}-Arun -
I'm using qurey panel with table.i want to display the rows as default
Hi
I'm using jdeveloper 11.1.1.2.0 with ADF 11g.
I'm using qurey panel with table , for first time when i run ,rows are not displayed as default .After i fire search button records / rows are displaying.Now i want to display the rows in table when i run for first time , mean i want to display rows by default.
thanks in advance.Hi,
if the queryPanel is based on a ViewCriteria in ADF BC then this autoExecute can be defined on the VC definition
Frank -
When executing query...in the result i want to display each row values
Hi All,
When executing query...in the result area i want to display each row values.
Example: query result is like this
Business Area Sales Material
kh02 1000 2000
2000 300
5000 400
6990 1000
Kh03 1400 700
200 500
50 60
but i need like this
kh02 1000 2000
kh02 500 600
kh02 400 300
kh03 1400 700
kh03 200 500
Why i need like this because am exporting to Excel spread sheet and i have to send as i show above ....i am doing manual but the file is very big like 95, 969 records i have to change manual...like this i have to change 8 files.
please advice me easy way
i willl be very gr8ful
Thanks
sidharthaHi,
that'S exactly what hide repeated key values does. If this option is on your result is:
Kh02 1000 1500
blank 500 456
blank 600 700
kh03 400 500
balnk 500 600
If you turn it off, the result will be:
Kh02 1000 1500
Kh02 500 456
kh02 600 700
kh03 400 500
kh03 500 600
Exaclty what you want. Try it, it should work
Regards,
Juergen -
Query for how to display unique rows in a table
Can i have a query for displaying unique rows in a table.
use d query
select distinct col1,col2... from table ; -
How to display particular ROW of a table control in display/change mode
Hi,
Can we make particular ROW in a table control display mode or editable mode depending upon the conditions?.
Any inputs..
Rgds,
LakshmirajHi,
Yes it is possible. check the follwoing code for help.
*& Include Z101954_ASSIGNMENT1I01
*& Module VALIDATE_SALES_ORG INPUT
text
MODULE validate_sales_org INPUT.
SELECT SINGLE zvkorg FROM vbak INTO zvbak-zvkorg
*WHERE zvbeln = zbookhdr-zvbeln.
IF sy-subrc <> 0.
MESSAGE 'INVALID AIRLINE ID INPUT' TYPE 'I'.
CALL SCREEN 1000.
ENDIF.
ENDMODULE. " VALIDATE_SALES_ORG INPUT
*& Module USER_COMMAND_1001 INPUT
text
MODULE user_command_1001 INPUT.
var3 = 1.
IF sy-ucomm <> 'SAVE'.
PERFORM material_check.
IF sy-subrc <> 0.
MESSAGE 'ENTER THE CORRECT MATERIAL NUMBER' TYPE 'I'.
ELSE.
SELECT SINGLE zmaktx zmeins zwaerk zstprs FROM zmara
INTO CORRESPONDING FIELDS OF it_salesitems
WHERE zmatnr = it_salesitems-zmatnr.
SELECT SINGLE zwerks zlgort FROM zorg
INTO CORRESPONDING FIELDS OF it_salesitems
WHERE zvkorg = wa_salesorder-zvkorg
AND zvtweg = wa_salesorder-zvtweg
AND zspart = wa_salesorder-zspart.
it_salesitems-znetwr = it_salesitems-zstprs * it_salesitems-zbrgew.
MODIFY it_salesitems FROM it_salesitems INDEX sy-tabix.
MOVE-CORRESPONDING it_salesitems TO temp_salesitems.
APPEND temp_salesitems.
REFRESH it_salesitems.
ENDIF.
ENDIF.
LOOP AT temp_salesitems.
if it_salesitems-pick = 'X'.
LOOP AT SCREEN.
IF screen-name EQ 'DETAIL'.
screen-input = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
endif.
endloop.
CASE sy-ucomm.
WHEN 'SAVE'.
PERFORM check_ship_to_party.
IF sy-subrc <> 0.
MESSAGE 'ENTER THE CORRECT SHIP TO PARTY ' TYPE 'I'.
ELSE.
PERFORM check_payer.
IF sy-subrc <> 0.
MESSAGE 'ENTER THE CORRECT PAYER' TYPE 'I'.
ELSE.
PERFORM check_bill_to_party.
IF sy-subrc <> 0.
MESSAGE 'ENTER THE CORRECT BILL TO PARTY' TYPE 'I'.
ELSE.
wa_salesorder-zernam = sy-uname.
MOVE-CORRESPONDING wa_salesorder TO zvbak.
MODIFY zvbak.
LOOP AT it_salesitems.
it_salesitems-zvbeln = wa_salesorder-zvbeln.
MOVE-CORRESPONDING it_salesitems TO zvbap.
MODIFY zvbap.
ENDLOOP.
IF sy-subrc = 0.
MESSAGE 'THE DATA IS SAVED SUCCESSFULLY' TYPE 'I'.
CLEAR wa_salesorder.
REFRESH it_salesitems.
REFRESH temp_salesitems.
IF sy-tcode = 'ZVA01'.
CALL SCREEN '1000'.
ELSE.
CALL SCREEN '1003'.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
WHEN 'DETAIL'.
CALL SCREEN '1002'.
WHEN 'BACK'.
IF sy-tcode = 'ZVA03'.
CLEAR wa_salesorder.
CALL SCREEN '1003'.
ELSE.
PERFORM pop_up.
ENDIF.
WHEN 'EXIT'.
IF sy-tcode = 'ZVA03'.
LEAVE PROGRAM.
ELSE.
PERFORM pop_up.
ENDIF.
WHEN 'CANCEL'.
IF sy-tcode = 'ZVA03'.
CLEAR wa_salesorder.
CALL SCREEN '1003'.
ELSE.
PERFORM pop_up.
ENDIF.
ENDCASE.
ENDMODULE. " USER_COMMAND_1001 INPUT
*& Module input_help_sold_to_party INPUT
text
MODULE input_help_sold_to_party INPUT.
SELECT zkunag FROM zvbak INTO CORRESPONDING FIELDS OF TABLE
itab.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = 'ZKUNAG'
PVALKEY = ' '
dynpprog = sy-cprog
dynpnr = '1000'
dynprofield = 'ZKUNAG'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
value_org = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
value_tab = itab
FIELD_TAB =
RETURN_TAB =
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE. " input_help_sold_to_party INPUT
*& Form pop_up
text
--> p1 text
<-- p2 text
FORM pop_up .
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = ' '
DIAGNOSE_OBJECT = ' '
text_question = 'DO YOU WANT TO SAVE THE ORDER?'
text_button_1 = 'YES'(001)
icon_button_1 = ' '
text_button_2 = 'No'(002)
icon_button_2 = ' '
default_button = '1'
display_cancel_button = 'X'
userdefined_f1_help = ' '
START_COLUMN = 25
START_ROW = 6
POPUP_TYPE =
IV_QUICKINFO_BUTTON_1 = ' '
IV_QUICKINFO_BUTTON_2 = ' '
IMPORTING
answer = ans
TABLES
PARAMETER =
EXCEPTIONS
TEXT_NOT_FOUND = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CASE ans.
WHEN '001'.
PERFORM check_ship_to_party.
IF sy-subrc <> 0.
MESSAGE 'ENTER THE CORRECT SHIP TO PARTY ' TYPE 'I'.
ELSE.
PERFORM check_payer.
IF sy-subrc <> 0.
MESSAGE 'ENTER THE CORRECT PAYER' TYPE 'I'.
ELSE.
PERFORM check_bill_to_party.
IF sy-subrc <> 0.
MESSAGE 'ENTER THE CORRECT BILL TO PARTY' TYPE 'I'.
ELSE.
wa_salesorder-zernam = sy-uname.
MOVE-CORRESPONDING wa_salesorder TO zvbak.
MODIFY zvbak_101954.
temp_salesitems-zvbeln = wa_salesorder-zvbeln.
MOVE-CORRESPONDING temp_salesitems TO zvbap.
MODIFY zvbap.
IF sy-subrc = 0.
MESSAGE 'THE DATA IS SAVED SUCCESSFULLY' TYPE 'I'.
CLEAR wa_salesorder.
REFRESH it_salesitems.
REFRESH temp_salesitems.
IF sy-ucomm = 'EXIT'.
LEAVE PROGRAM.
ENDIF.
IF sy-tcode = 'ZVA01'.
CALL SCREEN '1000'.
ELSE.
CALL SCREEN '1003'.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
WHEN '002'.
IF sy-tcode = 'ZVA01'.
CLEAR wa_salesorder.
REFRESH it_salesitems.
REFRESH temp_salesitems.
CALL SCREEN '1000'.
ELSE.
CLEAR wa_salesorder.
REFRESH it_salesitems.
REFRESH temp_salesitems.
CALL SCREEN '1003'.
CLEAR ans.
ENDIF.
ENDCASE.
ENDFORM. " pop_up
*& Module USER_COMMAND_1002 INPUT
text
MODULE user_command_1002 INPUT.
IF sy-datar = 'X'.
PERFORM material_check.
IF sy-subrc <> 0.
MESSAGE 'ENTER THE CORRECT MATERIAL' TYPE 'I'.
ELSE.
SELECT SINGLE zmaktx zmeins zwaerk zstprs FROM zmara_101954
INTO CORRESPONDING FIELDS OF wa_salesitems
WHERE zmatnr = wa_salesitems-zmatnr.
wa_salesitems-znetwr = wa_salesitems-zstprs * wa_salesitems-zbrgew.
ENDIF.
var = 1.
ENDIF.
IF sy-ucomm = 'BACK'.
LOOP AT temp_salesitems.
MODIFY temp_salesitems FROM wa_salesitems .
ENDLOOP.
it_salesitems-pick = ' '.
CALL SCREEN '1001'.
ENDIF.
ENDMODULE. " USER_COMMAND_1002 INPUT
*& Module USER_COMMAND_1000 INPUT
text
MODULE user_command_1000 INPUT.
CASE sy-ucomm.
WHEN 'NEXT'.
SELECT * FROM zt001k_101954 INTO CORRESPONDING FIELDS OF
temp_salesorder WHERE
zvkorg = wa_salesorder-zvkorg AND
zvtweg = wa_salesorder-zvtweg AND
zspart = wa_salesorder-zspart.
ENDSELECT.
IF sy-subrc = 0.
CALL SCREEN '1001'.
ELSE.
MESSAGE 'Invalid Data Entered' TYPE 'I'.
CALL SCREEN '1000'.
ENDIF.
ENDCASE.
ENDMODULE. " USER_COMMAND_1000 INPUT
*& Module USER_COMMAND_1003 INPUT
text
MODULE user_command_1003 INPUT.
IF sy-ucomm = 'NEXT'.
IF sy-datar = ' '.
MESSAGE 'ENTER PURCHASE ORDER NUMBER' TYPE 'I'.
CALL SCREEN 1000.
IF NOT wa_salesorder-zvbeln CO '0123456789'.
MESSAGE 'PURCHASE ORDER NUMBER IS NOT IN THE EXPECTED FORMAT' TYPE 'I'.
CALL SCREEN '1003'.
ENDIF.
var3 = 0.
CALL SCREEN '1001'.
ENDIF.
ENDMODULE. " USER_COMMAND_1003 INPUT
*& Module input_help_sales_order INPUT
text
MODULE input_help_sales_order INPUT.
SELECT zvbeln FROM zvbak_101954 INTO CORRESPONDING FIELDS OF TABLE
itab1.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = 'ZVBELN'
PVALKEY = ' '
dynpprog = sy-cprog
dynpnr = '1003'
dynprofield = 'ZVBELN'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
value_org = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
value_tab = itab1
FIELD_TAB =
RETURN_TAB =
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE. " input_help_sales_order INPUT
*& Module back_command INPUT
text
module back_command input.
*if sy-ucomm = 'SAVE' OR 'BACK' OR 'DETAIL' OR 'EXIT' OR 'CANCEL'.
*endif.
endmodule. " back_command INPUT
Regards
Rajesh Kumar -
I want to display the Employee details in table format without using iGrid
Hi all,
Can anybody help me that I want to display the Employee details return by transaction in table format without using iGrid.Hi, view the link below.
http://help.sap.com/saphelp_xmii115/helpdata/en/Advanced_Topics/Customizing_Output/Customizing_Output.htm
Hope this help.
Danilo Santos -
Displaying multiple rows of a table using smartforms
hi,
how to get multiple rows on a form from a table using smartforms.I succeded in getting only the first row of the table on the main window of the page .In order to display more than one record on the page what i have to do.You have to use LOOPS / TEMPLATES to achieve this
Here is a very good code sample for using Template,Table,Loop in smartforms with screen shot
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985
Please do not post multiple threads. Kindly close them rewarding point for helpful answers,
extracting multiple records
to display multiple records in smart form
Re: extracting multiple records
Kindly reward point and close the duplicates.
Regards
Kathirvel -
Display distinct rows from Oracle table without using "DISTINCT" keyword.
How to retrieve distinct rows from oracle table without using 'DISTINCT' keyword in SQL?
Thanks in advance.
MihirWelcome to the forum.
Besides GROUP BY you can use UNIQUE instead of DISTINCT as well, but that's probably not wanted here ;) , and the ROW_NUMBER() analytic:
SQL> create table t as
2 select 1 col1 from dual union all
3 select 1 from dual union all
4 select 2 from dual union all
5 select 3 from dual union all
6 select 4 from dual union all
7 select 4 from dual;
Table created
SQL> select col1 from t;
COL1
1
1
2
3
4
4
6 rows selected
SQL> select distinct col1 from t;
COL1
1
2
3
4
SQL> select unique col1 from t;
COL1
1
2
3
4
SQL> select col1 from t group by col1;
COL1
1
2
3
4
SQL> select col1
2 from ( select col1
3 , row_number() over (partition by col1 order by col1) rn
4 from t
5 )
6 where rn=1;
COL1
1
2
3
4 -
Not displaying first row in the table
Hi
I created web dynpro application. In that table,,
Cardinality -
0 to n
Selection -
0 to n
public void wdDoInit()
//@@begin wdDoInit()
wdContext.currentLeaveElement().setLocation("1");
for (int i = 0; i < EMP.length; i++)
IPrivateEtrecLeaveEligView.ILeaveElement element = wdContext. createLeaveElement();
element.setDepartment(EMP<i>[0]);
element.setLeaveType(EMP<i>[1]);
element.setYear(EMP<i>[2]);
element.setTimeSpan(EMP<i>[3]);
element.setNumofdays(EMP<i>[4]);
element.setLevel(EMP<i>[5]);
wdContext.nodeLeave().addElement(element);
//@@end
In tha last declaration,,,,,,
private static final String EMP[][] =
{ "Supply Chain", "Annual Leave", "2008", "Yearly", "20", "JC-16 Manager grade"},
{ "Finance", "Sick Leave", "2008", "Yearly", "23", "WL-2A"},
{ "Brands & Development", "Monthly Leave", "2008", "Monthly", "23", "WL-4A"},
{ "Supply Chain", "Annual Leave", "2008", "Yearly", "23", "WL-5A"},
{ "Finance", "Sick Leave", "2008", "Yearly", "23", "WL-6A"}
But its not taking first row data in the table....
will any one please help me where i did mistake.
Regards
SushmaHi Sushma,
there is no problem in the below code :
for (int i = 0; i < EMP.length; i++)
IPrivateEtrecLeaveEligView.ILeaveElement element = wdContext. createLeaveElement();
element.setDepartment(EMP[0]);
element.setLeaveType(EMP[1]);
element.setYear(EMP[2]);
element.setTimeSpan(EMP[3]);
element.setNumofdays(EMP[4]);
element.setLevel(EMP[5]);
wdContext.nodeLeave().addElement(element);
//@@end
but in the doinit method u have written this line :
wdContext.currentLeaveElement().setLocation("1");
which means that , u have create a LeaveElement some where before this line and thats the reason the first row of ur table is empty.
if the location value is same for all rows(for all leave element) then in the for loop set the value of the location as shown below:
element.setLocation("1");
Hope it helps
Thanks and Regards -
Want to disable one row in a table
Hi,
I have a requirement where I have to disable only one row of a table.
Also, I am not using any checkboxes/radiobuttons in the table.
Please help me in resolving this.
Thanking You.
Regards.
Reinuka.Hi,
Create a Value Node in the below mentioed structure
TableNode
---value1
---value2
---value3
---TableRowReadOnly(boolean)
Note: - make sure that the attribute TableRowReadOnly is in the same level as the other attributes in the node
Create an Action for the onLeadSelect event for the table and in that action, write the following code:
int leadSelection = wdContext().node<nodename>().getLeadSelection();
if(leadSelection != -1)
for(int i = 0; i < wdContext.nodeTableNode().size(); i++)
if(condition)
wdContext().nodeTableNode().getTableNodeElementAt(i).setTableReadOnly(true);
else
wdContext().nodeTableNode().getTableNodeElementAt(i).setTableReadOnly(false);
Hope this helps u
Regards,
Poojith MV -
Disabling auto sort of rows for Pivot Tables in BI Publisher
is there a way to avoid the Pivot table in BI Publisher from sorting your data and just display the rows in the order retured from the data model ? By default it is sorting the data in asc order. Thanks !
hi jim
if you carefully look inside the form field's you will find the logic of sort . if you remove that you will get the data without any sorting order.
else send me your template and xml to my email id i can look into that .
email : [email protected] -
How to display four rows in one table and the rest in another table?
Hello everybody,
I am trying to solve a problem that I cannot find any direct answers to. In essence the problem goes like this:
1) I want to populate two tables from xml data.
2) The first table should only diplay the first four rows of data.
3) The second table should display the rest of the rows (starting from row 5).
I can create the first table so that it only shows up to the first four rows.
I cannot find a way to set up the second table so that it shows the rest of the rows starting at row 5.
To illustrate the problem I have attached my livecycle template file with the two table definitions and the corresponding xml data. If you put these two files in the same directory and open the pdf file using LiveCycle designer you should see what I mean. (The table with column heading 'Item List 2' shows all of the records in the xml file when I only want it to show records 5 and 6)
Some other niggling issue I have come up against is the data displays differently when I open the pdf file with Adobe Acrobat pro and then use the Forms/manage form data/import data menu to bind that xml file. ( For some the 'Item List 2' table does not display any data) Does anybody know why that is occurring?
Any help on this would be very much appreciated because it will help me get past a significant issue I am running into with a complex form I am trying to build for a client of mine.
Note: I am using Adobe Acrobat Pro version 9 and the Adobe Livecycle is version 8.2.1
Thanks in advance.
Geoff.Hi,
First solution is you can play with predicates:
val value = 4
var items= Ref(xfa.resolveNodes(concat("$record.itemsCollection.item.[itemNumber>""",value,"""]")))
after that you will have to use addInstance and assign all fields by scripting. It is hard way.
Second solution you can simply hide unneccessary rows by putting initialise script on item row:
if (this.index <4){this.presence = "hidden" }
Hope this helps.
Paul Butenko -
Display of row index in table footer
Hi,
Row no of first row is generally displayed in the footer of the table as
Row <first row rowno> of <total no of rows>.Eg Row 1 of 10.
Can this be changed to display row no of currently selected row insted of first row?
Thanks in advance,
Apurva.Hi ,
You would not be able to extend the UI per se..
Instead you can make use of the property "firstVisibleRow" and "visiblerows" .
When a user clicks a button to bring down the entries by one
- increase the firstvisiblerow property by 1
when he wants to move to next page ,
- increase the firstvisiblerow property to firstvisiblerow+visiblerows
Use the table toolbar for scrolling..and placing your elements as it would always be properly aligned to your table..
Regards
Bharathwaj..
Maybe you are looking for
-
Thanks for such a great update!!!
-
Hi SAP Expert, Does SAP Free Goods functionality supports allocated quantity? We are using SAP ECC 6.0 EHP 3.0 Let me take an example. We are running a promotion of Buy 1+ Get 1. We have a budget of 100 Free Quantities. It should work on First come f
-
We are having problems with hyperlinks in PDF files. When clicking on a link in a PDF file the following message appears: "The file and its viewer application are set to be launched by this PDF file. The file may contain programs, macros, or viruses
-
Timeline/Clip Browser/Playback all grey in Adobe Premiere CC 2014
I have a project I've been working on for weeks without issue, and then randomly my timeline froze and I have been unable to play any of the clips or timelines that I've created. The playhead will still scrub, so the application is not frozen, but al
-
How to contact mac air to iPad
I bought an Ipad yesterday, does someoneknow how to connect ipad the mac air