Shading on a dynamic table (file included)
Hello!
I have a dynamic table with a repeating "section" (which consists of Row1 and Row2). Each "section" needs to alternate a different color. I tried the "alternating shading" checkbox in the object pallette but it is not working the way I need it to so I am looking to see if this can be done in code. Not trying to make the "rows" alternate. I need the "sections" to alternate. I did research and couldn't really find anything to help me with.
My colors:
First: 255, 255, 242
Second: 236,245,255
Here is the File:
https://files.acrobat.com/preview/592e1cb8-a0de-4337-a323-321dd66ba261
Thanks in advance!!
You can try putting this script in the layout:ready event of both of your rows:
if (this.parent.index % 2 == 0)
this.fillColor = "255, 255, 242";
else
this.fillColor = "236,245,255";
Kyle
Similar Messages
-
How to Create file link from dynamic table.
Howdy -
I have MySQL database over PHP containing a simple table that lists a group of documents, including their file system address (contained within the site).
I've successfully created a recordset showing this table, and attached that to a dynamic table on a .php page. The display is correct, except I can't get the column contents to link to the document. The column just shows the text (title) of the document.
I've consulted article tn_15364 (http://kb2.adobe.com/cps/153/tn_15364.html), but that doesn't seem to work...
Any thoughts would be appreciated. I'm sure this is pretty simple, but I'm coming up snake eyes.
Charles AndrewsTo clarify:
My site has a folder where uploaded files (.doc, .xls, .pdf, etc.) are stored after having been uploaded by a user. During this upload process, the location of these files is stored, along with other identifying data, in a simple database table.
I have a dynamic table created in Dreamweaver that pulls from this database, listing the document name, etc. I would like the document name shown in a column to automatically link to the actual file so a user could just click on it and open the file.
I hope I'm not making sound more complicated than it is -
Thanks,
CWA -
Read a csv file, fill a dynamic table and insert into a standard table
Hi everybody,
I have a problem here and I need your help:
I have to read a csv file and insert the data of it into a standard table.
1 - On the parameter scrreen I have to indicate the standard table and the csv file.
2 - I need to create a dynamic table. The same type of the one I choose at parameter screen.
3 - Then I need to read the csv and put the data into this dynamic table.
4 - Later I need to insert the data from the dynamic table into the standard table (the one on the parameter screen).
How do I do this job? Do you have an example? Thanks.Here is an example table which shows how to upload a csv file from the frontend to a dynamic internal table. You can of course modify this to update your database table.
report zrich_0002.
type-pools: slis.
field-symbols: <dyn_table> type standard table,
<dyn_wa>,
<dyn_field>.
data: it_fldcat type lvc_t_fcat,
wa_it_fldcat type lvc_s_fcat.
type-pools : abap.
data: new_table type ref to data,
new_line type ref to data.
data: xcel type table of alsmex_tabline with header line.
selection-screen begin of block b1 with frame title text .
parameters: p_file type rlgrap-filename default 'c:Test.csv'.
parameters: p_flds type i.
selection-screen end of block b1.
start-of-selection.
* Add X number of fields to the dynamic itab cataelog
do p_flds times.
clear wa_it_fldcat.
wa_it_fldcat-fieldname = sy-index.
wa_it_fldcat-datatype = 'C'.
wa_it_fldcat-inttype = 'C'.
wa_it_fldcat-intlen = 10.
append wa_it_fldcat to it_fldcat .
enddo.
* Create dynamic internal table and assign to FS
call method cl_alv_table_create=>create_dynamic_table
exporting
it_fieldcatalog = it_fldcat
importing
ep_table = new_table.
assign new_table->* to <dyn_table>.
* Create dynamic work area and assign to FS
create data new_line like line of <dyn_table>.
assign new_line->* to <dyn_wa>.
* Upload the excel
call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
exporting
filename = p_file
i_begin_col = '1'
i_begin_row = '1'
i_end_col = '200'
i_end_row = '5000'
tables
intern = xcel
exceptions
inconsistent_parameters = 1
upload_ole = 2
others = 3.
* Reformt to dynamic internal table
loop at xcel.
assign component xcel-col of structure <dyn_wa> to <dyn_field>.
if sy-subrc = 0.
<dyn_field> = xcel-value.
endif.
at end of row.
append <dyn_wa> to <dyn_table>.
clear <dyn_wa>.
endat.
endloop.
* Write out data from table.
loop at <dyn_table> into <dyn_wa>.
do.
assign component sy-index of structure <dyn_wa> to <dyn_field>.
if sy-subrc <> 0.
exit.
endif.
if sy-index = 1.
write:/ <dyn_field>.
else.
write: <dyn_field>.
endif.
enddo.
endloop.
REgards,
RIch Heilman -
Include the file dynamicly by file name
in my jsp,I want include another jsp dynamicly
<%@ include file="thefile.jsp" %>
thefile.jsp should be dynamic like:
<%=String filename=="thefile.jsp" %>
<%@ include file=filename%>
I know above is not working since file only take static name.
is there any way to include the file dynamicly by file name?String path = "..."; // to the ressource to include
javax.servlet.RequestDispatcher dispatcher
= getServletContext().getRequestDispatcher(path);
dispatcher.include(request,response); -
Linking to file in site folder using recordset in dynamic table
I have a dynamic, repeating table that lists recordsets from a database. I would like to add a column to the table that contains a link to a file in a folder contained on the site. The name of the file used will be the same as one of the recordset value, 'cas_num' (all within the same row of the dynamic table).
My code so far is:
<tr>
<td nowrap="nowrap"><?php echo $row_Recordset1['id']; ?></td>
<td width="160" nowrap="NOWRAP"><?php echo $row_Recordset1['cas_num']; ?></td>
<td nowrap="NOWRAP"><?php echo $row_Recordset1['chem_name']; ?></td>
<td nowrap="nowrap"><?php echo $row_Recordset1['m_formula']; ?></td>
<td nowrap="NOWRAP"><?php echo $row_Recordset1['room']; ?></td>
<td nowrap="NOWRAP"><?php echo $row_Recordset1['location']; ?></td>
<td nowrap="nowrap"><?php echo $row_Recordset1['inst']; ?></td>
<td nowrap="nowrap"><?php echo $row_Recordset1['amount']; ?></td>
<td nowrap="nowrap"><?php echo $row_Recordset1['a_type']; ?></td>
<td nowrap="nowrap"><?php echo $row_Recordset1['supplier']; ?></td>
<td nowrap="nowrap"><?php echo $row_Recordset1['pt_num']; ?></td>
<td nowrap="nowrap"><?php echo '<a href="/docs/MSDS/'$row_Recordset1['cas_num']; ?>'MSDS</a>;</td>
</tr>
Any help with this how to link to the file would greatly be appreciated!
thanks,
chemsafety.If you can mount the server on your desktop and have access via the Finder to the file, then you can select the text you'll use for the link and in the link section of the Inspector window select the option for A file. Then in the navigation window, go to the server on the desktop and from there to the file on the server. That's one way to do it.
The other is to figure out the URL for a file on the server. I know how to do it for the iDisk. It would be something like this for another server:
http://server name/your account's folder/the folder containing the file.
You'll have to determine the path to the file. As I said earlier if you can mount the server on the desktop that would let you determine the path or use the first method.
Do you Twango? -
What does mean You can include static and dynamic tables into a Smart Form?
Hi guys,
If you check the official documentation for Smart forms in the Internet you will read that the initial pharagraphs of the text tell you "Tables - You can include static and dynamic tables into a Smart Form. Dynamic tables enable you to display tables whose size is determined only at the moment of their output by the number of the table items to be displayed". The link is the following: http://help.sap.com/saphelp_nw04/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm
I was wondering if this means that I can use field symbols with dynamical number of columns to print a smart form. Because it would be great since the customer wanted a dynamical report depending on the week day it was (If Monday, there was only 12 columns, but if Friday, it will be 52 columns (1 column more for every day elapsed in the current week)). I had to create 5 different forms, but I think using field symbols I had spent less effort. Do you know if it is really possible? If not, then what does mean "You can include static and dynamic tables into a Smart Form"?
Thank you in advanceHi ,
The concept of static and dynamic tables in smartforms, means you can use template- ( static table as no of rows and columns is fixed). Also you can use table- dynamic as the no of rows will depend on your line items.
Hope this will help you to close this thread.
Also, try to find this answer in posted forums. Creating a new forum everytime just increases the network traffic. So please try to avoid it.
Regards,
Vinit -
Dynamic Select Query including Dynamic Tables with For all Entries
Hello everyone,
I need to create a select query which involves using of Dynamic Tables.
Suppose I have a dynamic table <d1> which consist of let say 10 records.
Now i need to make a select query putting data into another dynamic table <d2>
CONCATENATE keyfield '=' '<d1>' INTO g_condition SEPARATED BY space.
CONCATENATE g_condition '-' keyfield INTO g_condition.
SELECT * FROM (wa_all_tables-name) INTO CORRESPONDING FIELDS OF TABLE <d1>
FOR ALL ENTRIES IN <d1>
WHERE (g_condition).
But it is giving dump.
Please help me on this....Short text
A condition specified at runtime has an unexpected format.
What happened?
Error in the ABAP Application Program
The current ABAP program "ZNG_CUSTOMWRITE" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYNAMIC_OSQL_SEMANTICS', was
not caught in
procedure "WRITE_ARCHIVE_PROD" "(FORM)", nor was it propagated by a RAISING
clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
The current ABAP program has tried to execute an Open SQL statement
which contains a WHERE, ON or HAVING condition with a dynamic part.
The part of the WHERE, ON or HAVING condition specified at runtime in
a field or an internal table, contains the invalid value "ZCOURIER-ZCOURIERID".
CONCATENATE keyfield '=' g_header INTO g_condition SEPARATED BY space.
CONCATENATE g_condition '-' keyfield INTO g_condition.
SELECT * FROM (wa_all_tables-name) INTO CORRESPONDING FIELDS OF TABLE <dyn_table1>
FOR ALL ENTRIES IN <dyn_table>
WHERE (g_condition). -
Dynamic Table in adobe inter-active forms
Hi Gurus,
I have dragged and dropped Dynamic table in body page and Header data placed in Master page. Now my problem is the data is not going to the next pages. Kindly pls tell me the way so that my data will appear in next pages.
Regards,
SriniHi,
What do you mean by Header data in master page...? is it header Row...with labels, why do you need it in master page have it along with your table in body page.
What do you mean my data is not displayed on the body page ...?
What I could understand is as below. you have a dynamic table where the number of rows may be n such that it can spread across multiple pages, if it spreads in multiple pages you need the header row in all the page occurances. is it so ...?
if so just do it as below.
Have the table in your body page with one header row and one body row.
Set table allowed page break with in content
Put this table in a subform and say it flowed top to bottom and set allow page break with in content.
Select header row>object>pagination set include row in initial page and subsequent pages to checked.
Select body row-->object->binding set repeat row for each data item to checked.
This should work, else let me know your requirement more briefly..
if You need a sample file for this send me a test mail to my id from the business card address.
Cheers,
Sai -
Help generate dynamic table in xslt for apache FOP
down vote favorite
For the following xml file, i need to generate an xsl-fo file to be converted into pdf.
I am new to style sheets and struggling to create dynamic table. Please help.
Also, the width for each column varies,based on the column.How would i include this into the code?
The Column Headers and Column Values are dynamically populated in the xml file. Below is a sample.
Can anybody please help in generating xsl-fo or xslt code?
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ReportData>
<ColumnHeaders>
<ColumnHeader>
<Name>Col-Header1</Name>
<Width>5</Length>
</ColumnHeader>
<ColumnHeader>
<Name>Col-Header2</Name>
<Width>10</Length>
</ColumnHeader>
<ColumnHeader>
<Name>Col-Header3</Name>
<Width>8</Length>
</ColumnHeader>
</ColumnHeaders>
<Rows>
<Row>
<Column>Row1-Col1</Column>
<Column>Row1-Col2</Column>
<Column>Row1-Col3</Column>
</Row>
<Row>
<Column>Row2-Col1</Column>
<Column>Row2-Col2</Column>
<Column>Row2-Col3</Column>
</Row>
</Rows>
</ReportData>I did some xsl-fo a few years ago for a project.
It was an invoice generator spawning multiple PDFs out of single XML document generated from the database. Pretty cool stuff but very resource-consuming.
I'm a bit rusty but here's a basic example for a single table, based on your sample data :
XSLT stylesheet :
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output indent="yes"/>
<xsl:template match="/ReportData">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="Main" margin="8mm"
page-width="250mm"
page-height="100mm">
<fo:region-body />
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="Main">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:table table-layout="fixed" border-style="solid">
<xsl:apply-templates select="ColumnHeaders/ColumnHeader" mode="column"/>
<xsl:apply-templates select="ColumnHeaders"/>
<fo:table-body>
<xsl:apply-templates select="Rows/Row"/>
</fo:table-body>
</fo:table>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
<xsl:template match="ColumnHeaders">
<fo:table-header>
<fo:table-row background-color="rgb(200,200,200)">
<xsl:apply-templates select="ColumnHeader" mode="header"/>
</fo:table-row>
</fo:table-header>
</xsl:template>
<xsl:template match="ColumnHeader" mode="column">
<fo:table-column column-width="{concat(Width*10,'mm')}"/>
</xsl:template>
<xsl:template match="ColumnHeader" mode="header">
<fo:table-cell border-style="solid">
<fo:block font-weight="bold"><xsl:value-of select="Name"/></fo:block>
</fo:table-cell>
</xsl:template>
<xsl:template match="Row">
<fo:table-row>
<xsl:apply-templates select="Column"/>
</fo:table-row>
</xsl:template>
<xsl:template match="Column">
<fo:table-cell border-style="solid">
<fo:block><xsl:value-of select="."/></fo:block>
</fo:table-cell>
</xsl:template>
</xsl:stylesheet>
{code}
Calling the XSLT engine and FOP :
{code}
D:\XSLT>gen_pdf_otn.bat
D:\XSLT>java -jar saxon9he.jar -s:in/reportdata.xml -xsl:testfo.xsl -o:out/testfo.xml 2>errors.log
D:\XSLT>java -jar fop.jar org.apache.fop.cli.Main -fo out/testfo.xml -pdf out/testfo.pdf -c morefontsconfig.xml 2>errors.log
D:\XSLT>pause
Appuyez sur une touche pour continuer...
{code}
Ouput :
- The intermediate XSL-FO document :
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="Main" margin="8mm" page-width="250mm" page-height="100mm">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="Main">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:table table-layout="fixed" border-style="solid">
<fo:table-column column-width="50mm"/>
<fo:table-column column-width="100mm"/>
<fo:table-column column-width="80mm"/>
<fo:table-header>
<fo:table-row background-color="rgb(200,200,200)">
<fo:table-cell border-style="solid">
<fo:block font-weight="bold">Col-Header1</fo:block>
</fo:table-cell>
<fo:table-cell border-style="solid">
<fo:block font-weight="bold">Col-Header2</fo:block>
</fo:table-cell>
<fo:table-cell border-style="solid">
<fo:block font-weight="bold">Col-Header3</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<fo:table-row>
<fo:table-cell border-style="solid">
<fo:block>Row1-Col1</fo:block>
</fo:table-cell>
<fo:table-cell border-style="solid">
<fo:block>Row1-Col2</fo:block>
</fo:table-cell>
<fo:table-cell border-style="solid">
<fo:block>Row1-Col3</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell border-style="solid">
<fo:block>Row2-Col1</fo:block>
</fo:table-cell>
<fo:table-cell border-style="solid">
<fo:block>Row2-Col2</fo:block>
</fo:table-cell>
<fo:table-cell border-style="solid">
<fo:block>Row2-Col3</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
{code}
- and the PDF document :
http://mbperso.pagesperso-orange.fr/oracle/testfo.pdf -
Dynamic Table not displaying data
First off, i have searched high and low, and havent been able to find much help.
That said, i have been trying to create a simple search/results page in dream weaver, i am using ASP and sql express. Ive been following the adobe tutorial, and everything works as it says it should, except that when you actually do a search, and hit submit, the results page only shows the dynamic table headings, but no data.
On the results page, when i create the record set, if i test it, the data shows up correctly. However on the page itself, nothing shows up.
Here are some example screen shots:Results page:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="Connections/netdata.asp" -->
<%
Dim rsUserResults__MMColParam
rsUserResults__MMColParam = "1"
If (Request.QueryString("frmUserSearch") <> "") Then
rsUserResults__MMColParam = Request.QueryString("frmUserSearch")
End If
%>
<%
Dim rsUserResults
Dim rsUserResults_cmd
Dim rsUserResults_numRows
Set rsUserResults_cmd = Server.CreateObject ("ADODB.Command")
rsUserResults_cmd.ActiveConnection = MM_netdata_STRING
rsUserResults_cmd.CommandText = "SELECT logonDate FROM dbo.loginInfo WHERE userName = ?"
rsUserResults_cmd.Prepared = true
rsUserResults_cmd.Parameters.Append rsUserResults_cmd.CreateParameter("param1", 200, 1, 50, rsUserResults__MMColParam) ' adVarChar
Set rsUserResults = rsUserResults_cmd.Execute
rsUserResults_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = 10
Repeat1__index = 0
rsUserResults_numRows = rsUserResults_numRows + Repeat1__numRows
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<table border="1">
<tr>
<td>logonDate</td>
<td>loginTime</td>
<td>computerName</td>
<td>userName</td>
</tr>
<% While ((Repeat1__numRows <> 0) AND (NOT rsUserResults.EOF)) %>
<tr>
<td><%=(rsUserResults.Fields.Item("logonDate").Value)%></td>
<td><%=(rsUserResults.Fields.Item("loginTime").Value)%></td>
<td><%=(rsUserResults.Fields.Item("computerName").Value)%></td>
<td><%=(rsUserResults.Fields.Item("userName").Value)%></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rsUserResults.MoveNext()
Wend
%>
</table>
</body>
</html>
<%
rsUserResults.Close()
Set rsUserResults = Nothing
%>
Search page:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form id="frmUserSearch" name="frmUserSearch" method="get" action="userResults.asp">
<p>Enter User Name
<input type="text" name="userName" id="userName" tabindex="1" />
</p>
<p>
<input type="submit" name="userNameSubmit" id="userNameSubmit" value="Submit" />
</p>
</form>
</body>
</html> -
Page breaks with dynamic table
Hi there!
We've built a LiveCycle process in which we get data from an XML file and generate the PDF in LC Output.
However, although the items are being correctly generated in the table, only the first 20 or so records are being included, generatin just one page.
There are around 200 records in the XML - we just can't find how to set up the XDP in LC Designer so that we get a multipages PDF containing all 200 records instead of just 20.
We are using a dynamic table with the following set up:
Pagination: Following Previous
In Binding tab, we checked Repeat Row for Each Data Item
This table was inserted using the Insert Table option in main menu, using the wizard and it's inserted in a subform.
All these setup options were applied to the table row element.
Any ideas?
Thank you!
MarcosHi Niall,
Thank you for the input!
However, there's something else we're missing here.
After I tried your suggestion there were actually page breaks... we got 4 pages. However, only one of them had any content (the dynamic table with 30 records) and the other three were blank. The XML that populates the table includes 200 records.
We're pulling our hair off here, trying to do this for days!...
BR,
Marcos -
Dynamic tables and conditional page break
I have inserted a table in my form and have included an Add New Row button to insert additonal rows. I want a maximum of 16 rows added with a subtotal field. I want the table, then to automatically go to a new page with a subtotal field. At the end of all pages I want to include a total field. The table goes to the next page after a number of rows are entered, but there is not a break; the original form continues. How do conditionally break the page and have a (new) table display in the second page?
Thanks for your help.Hi Paul,
Thanks for working with me on this. I have sent a copy to the gmail.com address. I'm new to LiveCycle, so please forgive me.
Date: Thu, 29 Jul 2010 09:18:53 -0600
From: [email protected]
To: [email protected]
Subject: dynamic tables and conditional page break
You can accomplish that with a single table and some creative script. I suggest that you get the table worked out and working correctly then we can add in the page totals and final total afterwards. Once the table is ready email the form to mailto:[email protected] and I will put together a sample for you that shows what to do. Please include a description of what you want to do with the email as the mail message and this forum are not tied together. Also if you have a data file that fills out the table that would be useful as well.
Paul
> -
Still about field table file.Peter and Scott please..
hi,Peter and Scott:
i still don't so clear about it. if i use field_name in my services not
field_id,then,shall i copy all these field table files into one,and then use
mkfldhdr32 to build the field table file? from Peter's words,seems i don't
need copy them to one file,just point them to my FLDTBL* environment is
ok,but as my sample:
Fget32((FBFR32 *)recvbuf,SERVICE_ID, i,(char*)vServId, 0)
if there two field table files, A file and B file,does my application know
which file my SERVICE_ID is in? and if here both A file and B file has
SERVICE_ID,which numeric the value will be pointed?
as Scott said:"Your application will run much more efficiently if you
compile in the
field ids from the field header.",do you mean that if i use field ids in my
application,it's better?
and another question: if i use mkfldhdr32 many times,will the numeric be the
same? such as
once i built, "ROWCOUNT" are 12345678,then second time i build this,will
"ROWCOUNT" still be 12345678?
and i think it's not easy to use numeric in my application,cause field names
is easy to remember than field ids.
thanks
fishfish,
The mapping of field names to field ids is held in the field table file. The
mapping of name to id for any field is a binary combination of the field number
and type, thus it's a constant.
The mkfldhdr program takes the field table and converts it into a C header file
by generating #define for all the fields, so a line
STATLIN 5 string - message to go on status line
in the field table file becomes
#define STATLIN ((FLDID)40965) /* number: 5 type: string */
in the C header file generated by mkfldhdr.
Now, if you have #include's the generated header file, wherever your C code
references STATLIN (for this example) the C preprocessor inserts ((FLDID)40965)
- a numeric constant.
If all your references to individual fields are made in this way, then you do
not need the field table file at run time - all the information in it was
extracted by mkfldhdr at build time, and compiled in to your code.
In fact, this is precisely the purpose of mkfldhdr - you get the performance of
using constants rather than dynamic lookups, with the code readability of using
the field names rather than numeric ids.
I hope that clears up your understanding. The documentation discusses this
subject too, here: http://edocs.bea.com/tuxedo/tux80/atmi/fml048.htm
Regards,
Peter.
fish wrote:
hi,Peter and Scott:
i still don't so clear about it. if i use field_name in my services not
field_id,then,shall i copy all these field table files into one,and then use
mkfldhdr32 to build the field table file? from Peter's words,seems i don't
need copy them to one file,just point them to my FLDTBL* environment is
ok,but as my sample:
Fget32((FBFR32 *)recvbuf,SERVICE_ID, i,(char*)vServId, 0)
if there two field table files, A file and B file,does my application know
which file my SERVICE_ID is in? and if here both A file and B file has
SERVICE_ID,which numeric the value will be pointed?
as Scott said:"Your application will run much more efficiently if you
compile in the
field ids from the field header.",do you mean that if i use field ids in my
application,it's better?
and another question: if i use mkfldhdr32 many times,will the numeric be the
same? such as
once i built, "ROWCOUNT" are 12345678,then second time i build this,will
"ROWCOUNT" still be 12345678?
and i think it's not easy to use numeric in my application,cause field names
is easy to remember than field ids.
thanks
fish -
HR Logical database PNP. OO to fill table dynamic table from PNP ?
Hi all
I want to get some stuff from the HR logical database into a dynamic table
Here's a real simple example that writes info out to a normal list.
(report is based on using Logical DB PNP)
tables: pernr.
INFOTYPES: 0001, "Organizational Assignment
0002. "Personal Data
SELECT-OPTIONS: language FOR p0002-sprsl.
INITIALIZATION.
pnptimed = 'D'.
GET pernr.
PROVIDE * FROM p0002 BETWEEN pn-begda AND pn-endda.
CHECK language.
WRITE: / p0002-pernr,
sy-vline,
p0001-ename,
sy-vline,
p0002-sprsl,
sy-vline,
p0002-gbdat.
ENDPROVIDE.
endform.
Now what I want to do is replace the write stuff by appending the entries into a dynamic table which I will display as an ALV Grid.
so I add my structure in the data declarations
types: begin of s_elements,
pernr type p0002-pernr,
ename type p0001-ename,
sprsl type p0002-sprsl,
gbdat type p0002-gbdat.
drop_down_handle type int4.
types: end of s_elements.
include zz_jimbo_incl.
build the dynamic table
create data dref type s_elements.
assign dref->* to <fs>.
i_routine = 'POPULATE_DYNAMIC_ITAB'.*
i_names = 'NAME_COLUMNS'.
i_gridtitle = 'HR TEST'.
invoker = sy-repid.
i_zebra = 'X '.
i_edit = ' '.
call function 'ZZ_CALL_SCREEN'
exporting
invoker = invoker
my_line = <fs>
i_gridtitle = i_gridtitle
i_edit = i_edit
i_zebra = i_zebra
i_names = i_names
i_routine = i_routine
importing
z_object = z_object
dy_table = dy_table.
Now to populate the dynamic Itab the routine below is entered.
form populate_dynamic_itab changing dy_table.
assign dy_table->* to <dyn_table>.
create data dy_line like line of <dyn_table>.
assign dy_line->* to <dyn_wa>.
However I can't use GET / PROVIDE / ENDPROVIDE in a Form.
Anyway round this ---seems HR has an aversion to OO.
Cheers
jimboHi,
well, GET_PERNR is a so called event_statement. It has nothing to do with ABAP 00.
Normally it will be like this:
START-OF-SELECTION.
GET_PERNR.
PROVIDE ....
END-OF-SELECTION.
-> and here the CALL SCREEN NNNN for ALV-Display.
Provide-statements you can use in forms of course, and as many times you want during GET and END-OF-SELECTION.
But as I understood : you just want to save the write-statements?
I always develop a DDIC-Structure, declarate the data objects in the programm, read the data via Provide into the infotypes, and then make a move-corresponding to my structure. and display it.
Normally no problem.
kind regards
maik -
Regarding dynamic tables in interactive forms
Hi All,
I have designed a webdynpro view which contains a table,i have to generate a pdf format file which also contains
a table as there in the webdynpro view.
I have designed a dynamic table in interactive form and binded the interactive form ui element with the datasource and pdfSource.
In the interactive form i am getting only one row data of webdynpro view table.In the Object palette, I selected Repeat Row For Each Data Item.
share with me if u have any idea or send any document regarding table binding(dynamic) in interactive form.
Thanks & Regards,
saleemHi saleem..
Check this link..
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0401535-f81c-2a10-0192-ffd41e8e8d59">Dynamic interactive forms an example</a>
https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#47
Urs Gs
Maybe you are looking for
-
I am a fairly new apple user, just got the new ipad, as part of an evaluation program. I recently did an iOS update and now keep getting the error message:cannot connect to iTunes Store... I tried date changing - no good ... The only thing that worke
-
Help needed with Wireless ADSL2+Modem Router setup
I have a iMac 1GHz PowerPC G4 running 10.3.9 with all of the latest software updates and have just purchased a Netgear DG834G. I am currently using an USB modem and now need wireless internet access for remote working via an IBM Thinkpad. I have trie
-
Hi, Could you please provide me Siemens meterial for SAP-XI Thanks, RamuV
-
Can Jdeveloper 10.1.3 deploy web service on OC4J 10.1.2?
Hi all, Can I use jdeveloper 10.1.3 develop, and deploy web service on OC4J 10.1.2? My jdk version is 1.4.2. Thanks in advance.
-
Greetings everyone, I have recently noticed that my HD format is Mac OS Extended (Case-Sensitive, Journaled), but in order for me to use Autodesk's AutoCAD I need a Mac OS Extended (Journaled) HD format. How can I change the format? I do have a Time-