Add row in block
can i add row in block at runtime?
i m using oracle forms 10g
database oracle 10g
regards
Rupal
hi
I understand the above answer.
But can you please explain me at what kind of situations , you need this options
Thanks
Similar Messages
-
hi guys,
I created one form in screen painter and used this form in VB.net. In this form one grid is available.
In the menuevent of this form I write the code for open the form when user click on menu. I also write the code for add row in the matrix.
When I open the form first time both opening the form as well as adding row into the matrix works fine.
After closing the form and open the form second time menuevent occur more than 2 times.
Due to this many rows are added in the matrix only one click of add row.
What would be reason for occuring menuevents more than 2 times?
Can anyone help me?
thanks in advance.hi kamil,
this function is called when click on Menu event.
when form is loaded.
// code when form is loaded from XML File.
Public Sub LoadForm1()
Dim oXmlDoc As Xml.XmlDocument
oXmlDoc = New Xml.XmlDocument
Dim sPath As String
Try
sPath = IO.Directory.GetParent(Application.StartupPath).ToString & "\"
oXmlDoc.Load(sPath & "NewInvoicePO.srf")
Dim cp As SAPbouiCOM.FormCreationParams
cp = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
cp.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Fixed
cp.FormType = "Invoice"
cp.XmlData = oXmlDoc.InnerXml
cp.UniqueID = "IndentPO"
cp.ObjectType = "POHeader"
oForm1 = SBO_Application.Forms.AddEx(cp)
oForm1.Title = "Indent PO"
oForm1.AutoManaged = True
oForm1.SupportedModes = -1
'oForm1.DataBrowser.BrowseBy = oForm1.Items.Item("33").Specific().value
oForm1.Freeze(True)
oForm1.EnableMenu("1281", True) '// Add Find Mode
'oForm1.EnableMenu("1282", True) '// Add New Record
oForm1.EnableMenu("1288", True) '// Next Record
oForm1.EnableMenu("1289", True) '// Pevious Record
oForm1.EnableMenu("1290", True) '// First Record
oForm1.EnableMenu("1291", True) '// Last record
oForm1.EnableMenu("1292", True) '// Add Row
oForm1.EnableMenu("1293", True) '// Delete Row
oForm1.EnableMenu("1294", True) '// Duplicate Row
AddDataBindToMainForm()
CreateMatrixForForm1()
oDBDataSource4 = oForm1.DataSources.DBDataSources.Add("@INDENTPOMASTER")
oDBDataSource5 = oForm1.DataSources.DBDataSources.Add("@INDENTPOCHILD")
oForm1.DataBrowser.BrowseBy = "31"
GetMaxPONo()
oForm1.Freeze(False)
oForm1.Visible = True
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
I write the following code in the item event when click on close button.
// code when click on close button
If pVal.FormUID = "IndentPO" And pVal.ItemUID = "2" And pVal.BeforeAction = True Then
Try
oForm1.EnableMenu("1288", False) '// Next Record
oForm1.EnableMenu("1289", False) '// Pevious Record
oForm1.EnableMenu("1290", False) '// First Record
oForm1.EnableMenu("1291", False) '// Last record
oForm1.EnableMenu("1292", False) '// Add Row
oForm1.EnableMenu("1293", False) '// Delete Row
oForm1.EnableMenu("1294", False) '// Duplicate Row
Exit Sub
Catch ex As Exception
'MsgBox(ex.Message)
End Try
End If
In the first line of the try block I got the error.
Error : object reference not set to an instance of an object. -
Dynamically creating XML using Sap-xMII Colum and Row Action Block
Hi,
I am trying to create a xMII-format XML using IlluminatorDocument Action Block.
My problem statement is during run time I am required to create columns on the fly.which I have done using xMII Colum Action block.but now I am required to assing values to these dynamically created columns.I have tried using Data Item and Row action block but am not sucessful in doing so.Can anyone help in creating this xml Dynamically.
The steps that I have followed is
defined
tagquery action block and defined tagquery
blank Illuminator Document Action block
put a repeater on result of tag query
set a counter
updated the counter
used column action block and mapped the column name i.e IlluminatorColumn_0.Name------"test"&Local.count
my column output looks like
Rowsets DateCreated="2007-03-27T12:59:39" EndDate="2007-03-27T11:42:40" StartDate="2007-03-27T11:42:40" Version="11.5.0">
<Rowset>
<Columns>
<Column Description="" MaxRange="100" MinRange="0" Name="test1" SQLDataType="1" SourceColumn="test1"/>
<Column Description="" MaxRange="100" MinRange="0" Name="test2" SQLDataType="1" SourceColumn="test2"/>
<Column Description="" MaxRange="100" MinRange="0" Name="test3" SQLDataType="1" SourceColumn="test3"/>
<Column Description="" MaxRange="100" MinRange="0" Name="test4" SQLDataType="1" SourceColumn="test4"/>
<Column Description="" MaxRange="100" MinRange="0" Name="test5" SQLDataType="1" SourceColumn="test5"/>
</Columns>
</Rowset>
</Rowsets>
after this action block i want to assign values to each column i.e
<Row/>
<Row/>
<Row/>
<Row/>
<Row/>
i.e erach row tags should be filled with columntag and value
but i am not able to achieve the same
Can anyone help me doing thisAfter adding IllumColum Action block I have created 5 columns dynamically
but now I am unable to add row.
currently for everycolumn created it is giving one row without any column node
the configurations that I have done in Data Item Action Block is
In My Link Editor
IlluminatorColumn_0.Name----
>IlluminatorDataItem_0.Name
hardcoded the value i.e 20----
>IlluminatorDataItem_0.Value
IlluminatorDocument_0.Output----
>IlluminatorDataItem_0.IlluminatorDocument
current resultset I am getting is
<?xml version="1.0" encoding="UTF-8"?>
<Rowsets DateCreated="2007-03-27T12:59:39" EndDate="2007-03-27T11:42:40" StartDate="2007-03-27T11:42:40" Version="11.5.0">
<Rowset>
<Columns>
<Column Description="" MaxRange="100" MinRange="0" Name="test1" SQLDataType="1" SourceColumn="test1"/>
<Column Description="" MaxRange="100" MinRange="0" Name="test2" SQLDataType="1" SourceColumn="test2"/>
<Column Description="" MaxRange="100" MinRange="0" Name="test3" SQLDataType="1" SourceColumn="test3"/>
<Column Description="" MaxRange="100" MinRange="0" Name="test4" SQLDataType="1" SourceColumn="test4"/>
<Column Description="" MaxRange="100" MinRange="0" Name="test5" SQLDataType="1" SourceColumn="test5"/>
</Columns>
<Row/>
<Row/>
<Row/>
<Row/>
<Row/>
</Rowset>
</Rowsets> -
Flex Table Add Row Issue with Dynamic Entry Lists in Visual Composer
All,
Your help would be kindly appreciated in resolving an 'Add Row'-issue within a Flex Table that uses Dynamic Entry Lists in Visual Composer. The issue here is as follows :
When I use a [Local Dynamic Entry List |http://www.postyourimage.com/view_image.php?img_id=O5hrG2aMxWZ84Mu1211193041]to populate a row field, the initial row and all next rows are emptied upon 'insert row', they loose their selected values and also the entry list values ('pull-down menus') are lost. Please also see [screenshot|http://www.postyourimage.com/view_image.php?img_id=FPLr2cABcgiHRou1211192889].
The initial row does [show the entry list values |http://www.postyourimage.com/view_image.php?img_id=2HybmEHAuQYs9cg1211192766]from the Local Dynamic Entry List based on the dynamically assigned input value; upon 'insert row' the entry lists are lost. Please also see [screenshot|http://www.postyourimage.com/view_image.php?img_id=FPLr2cABcgiHRou1211192889].
When using a [Global Dynamic Entry List |http://www.postyourimage.com/view_image.php?img_id=m5p2KYuBb442dTq1211193501]to populate the row fields the Flex-table behaves normally as expected. Unfortunately with a Global Entry List it is not possible to dynamically assign a input value. Please also see [screenshot|http://www.postyourimage.com/view_image.php?img_id=U96V0zENCCyO3gA1211193157].
Please also see the [issue summary image|http://www.postyourimage.com/view_image.php?img_id=06xti08tIEfely1211195178] I made to visualize the issue. What I basically would like to know is whether this is a 'known issue' or not, or that it is an issue that can be fixed or whether there is an alternative workaround available ... I'm using Visual Composer 7.0 and the Portal is at SP 13.
Many thanks,
FreekHi,
you should be able to assign a dynamic value with global entry lists as well. If you say @myParam as dynamic value. VC will indicate in red letters, that the field @myParam is unknown. However, it will work, as long as @myParam is known in the form or table where you use the entry list.
I have never heard of the problem that entry lists are emptied after "insert"-event.
Kindes Regards,
Benni -
How can i add rows in a tabular form
Hi,
How can i add rows in a tabular form with out updating in database and after adding the rows one by one and after filling the data then iwant to submit them all at once.Please help me on this.
ThanksHello Leandro,
In the Add_Rows page process, there is a box for "Number Of Rows". Change that value and you change the number of rows that get added. The default is 1.
Don.
You can reward this reply by marking it as either Helpful or Correct :) -
How do I add multiple text block records from text file?
The data manager documentation (page 151) for MDM 5.5 SP3 indicates that one or more new text blocks can be added to the Text Blocks object table from files. It is noted that the files must be plain text files.
I use notepad and create a text file with two lines as follows:
Test 1
Test 2
When I try to add the text blocks following documentation mentioned above, it only adds one record for the Data Group I have chosen and the record contains the entry "Test 1" from the first line in the text file.
How can I add multiple records to the data group from a file?From my testing it appears that you need to have one text file per text block record in Data Manager.
I wrote VBA macro to so that I could input my text blocks into an Excel spreadsheet and then the macro will take the contents of each cell in a highlighted column and create one text file per cell.
Then using Data manager, I can select all of the text files at once and it will import them, creating one record per text file. -
Missing functionality.Draw document wizard - delete/add rows and copy/paste
Scenario:
My customer is using 2007 SP0 PL47 and would like the ability to change the sequence of the rows of the draw document wizard and delete/add multiple rows (i.e. when you create an AR Invoice copied from several deliveries).
This customer requires the sequence of items on the AR invoice to be consistent with the sequence on the original sales order including text lines and subtotals. Currently we cannot achieve this when there are multiple deliveries.
Steps to reproduce scenario:
1.Create a Sales order with several items and use text lines, regular and subtotals.
2.Create more than one delivery based on the sales order and deliver in a different sequence than appears on the sales order.
3.Open an AR Invoice and u2018Copy fromu2019 > Deliveries. Choose multiple deliveries. Choose u2018Customizeu2019.
4.Look at the sequence of items on the Invoice. How can the items and subtotals and headings be moved around so they appear in the same sequence as on the sales order?
Current Behaviour:
In SAP B1 itu2019s not possible to delete or add more than one row at a time on the AR Invoice or Draw Document Wizard.
Itu2019s not possible to copy/paste a row on the AR Invoice or Draw Document Wizard.
Itu2019s not possible to change the sequence of the rows using the Draw Document Wizard.
Business Impact: This customer is currently spending a lot of time trying to organize the AR invoice into a presentable format. They have to go through the invoice and delete the inapplicable rows one by one (because SAP B1 does not have the ability to delete multiple lines at a time) and also has to manually delete re-add rows to make it follow the same sequence as the sales order.
Proposals:
Enable users to delete or add more than one row at a time on the AR Invoice or Draw Document Wizard.
Enable users to copy/paste rows on the AR Invoice or Draw Document Wizard.Hi Rahul,
You said 'It is not at all concerned with Exchange rate during GRPO...' If that is the case how does the Use Row Exchange Rate from Base Document in the draw document wizard work? Does this mean 1 GRPO : 1 AP Invoice so I can use the base document rate?
How should I go about with transactions like these? That is adding an AP Invoice from multiple GRPO's having different exchange rates. What I am trying to capture here is that in the AP Invoice, base document rates should be used in the row item level and not the current rate when adding the invoice.
Thanks,
Michelle -
How do I create an "Add Row" button (add instance with click activity)
I've been looking through a couple of examples, but the xml is lost on me. I need to learn how to do this for myself because it'd help me out on so many forms. There're forms I just simply cannot do without this function.
Where I get lost is the javascript linking the button to the specific table. I've been trying to use this I found in an example:
<event activity="click"><
script contentType="application/x-javascript">SAPS350a.Page1.TableData1.Table1.Row2.instanceManager.addInstance(1);</script></
event>
Now, I'm a complete newbie, so I'm sure someone can point out to me exactly what's wrong, but I dont know what "SAPS350a" means nor can I figure out where the label "TableData1" connects to.
If anyone can explain this in a "add rows for dummies" fashion, I'd be greatly appreciative.
See attached an example of one of the fields I need to repeat.Hi Liz. You shouldn't really be playing in the xml. Especially if you are a newbie . You could corrupt the whole form if you do something wrong and you probably wont be able to rectify it. Scripts must be added in the script window. In your post, the 'SAPS350a.Page1...' is the path to the row of the particular form that you copied that code from. I have added a button to your form. have a look at the script to see what i have done.
-
Error:Cannot add row without complete selection of batch/serial numbers
Dim oPDN As SAPbobsCOM.Documents
oPDN = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes)
Dim serno As String = "SH-A1,SH-A2"
Dim sernoval As String() = serno.Split(",")
Dim mnfser As String = "SH-B1,SH-B2"
Dim mnfserval As String() = mnfser.Split(",")
For k = 0 To sernoval.Length - 1
oPDN.Lines.SerialNumbers.InternalSerialNumber = sernoval(k).Trim
oPDN.Lines.SerialNumbers.ManufacturerSerialNumber = mnfserval(k).Trim
oPDN.Lines.SerialNumbers.Quantity = linedetails(iRowNo).Quantity
oPDN.Lines.SerialNumbers.SetCurrentLine(k)
oPDN.Lines.SerialNumbers.Add()
Next
oPDN.CardCode = "C232323"
oPDN.Lines.ItemCode = "A00004"
'oGR.Lines.LineNum = 0
oPDN.Lines.BaseLine = 1
oPDN.Lines.BaseEntry = 202
'oGR.Lines.BaseRef = 203
oPDN.Lines.BaseType = 20
oPDN.Lines.Quantity = 1
oPDN.Lines.UnitPrice = 2
oPDN.Lines.WarehouseCode = '01'
oPDN.Lines.Add()
lRetCode = oPDN.AddHi Vasanth,
Invert the SetCurrentLine () and Add() at the end of the SSSerialNUmbers loop.
Regards,
Eric -
How to use add row button of a tabuler form.
Hi all,
I have created a Tabuler form in my application.Could you please tell me 'How can i use the add row button of this form' as When i click the button "NOTHING HAPPENS".
Thanks
Regards,
NehaHi,
If you edit the button, the button name has to be 'ADD'. You can make the text / label whatever you like. On the form edit page, the button should appear with this text next to it: submit as "ADD".
HTH -
How to add an Assignment Block to Activity
Hi Gurus,
How to add an Assignment Block to Activity?
Thanks & Regards
RohanHi Kkp
Goto the component/view: BT126H_APPT/ApptOVViewset to place the attachment assignment block on the screen.
Click on the Configuration tab.
Click on change.
Add them from Available Assignment Blocks to Displayed Assignment Blocks.
Best Regards,
Shiven -
Weird Problem with Add Row Button in Master Detail Page
I have a page that was created with a Master Detail Wizard. When I click the Add Row button on our Production Environment, the row counter increments BUT no blank row shows on the screen.
In our Development Environment, when I click the Add Row button, a blank row appears as expected. Thinking there was some problem with the production app, I exported the Dev version and imported into Production. Still no blank row.
Thinking perhaps it had something to do with the data, I copied our production application data back into the development application tables. Still, the development app creates the blank row where the production version does not.
I even used the same browser window for both environments and still get the same results. This was working fine in production then just stopped one day.
The only clue I have is that the Add Row WILL work if the Master Record has no details or less than a page worth. It seems to happen when the detail records are more than one page worth. Also, when I click the Add Row button, it goes to the last page of the list (say three pages of 10, 10, 6) but no blank row shows up. Again, works fine in the development environment no matter how many pages.
Any ideas or suggestions why this is happening? Could there be some environment setting that is causing this to happen?I have a page that was created with a Master Detail Wizard. When I click the Add Row button on our Production Environment, the row counter increments BUT no blank row shows on the screen.
In our Development Environment, when I click the Add Row button, a blank row appears as expected. Thinking there was some problem with the production app, I exported the Dev version and imported into Production. Still no blank row.
Thinking perhaps it had something to do with the data, I copied our production application data back into the development application tables. Still, the development app creates the blank row where the production version does not.
I even used the same browser window for both environments and still get the same results. This was working fine in production then just stopped one day.
The only clue I have is that the Add Row WILL work if the Master Record has no details or less than a page worth. It seems to happen when the detail records are more than one page worth. Also, when I click the Add Row button, it goes to the last page of the list (say three pages of 10, 10, 6) but no blank row shows up. Again, works fine in the development environment no matter how many pages.
Any ideas or suggestions why this is happening? Could there be some environment setting that is causing this to happen? -
Hi Gurus,
I have requirement to add rows in report FBL1N in order to display all item per document ( like in document overview ) in the same screen.
I applied note 112312 to display offset a/c (BTE with FM LINE_ITEMS_GET_GKONT) but partialy resolve my pb that is one item is displayed.
I would like to know how to do this, if i have to use BADIs (such BADI FI_ITEMS_MENUE01 ) and witch one or clone de STD or customazing.
Thanks in advance.Ok,
trx FB1N, after selection give me :
DocumentNo Type Doc..Date Offst.acct
5300029134 TL 22.05.2007 600819 => one account per document
5300034345 TL 07.06.2007 600819
5300038636 TL 21.06.2007 600819
5300038637 TL 21.06.2007 600819
4200014129 FA 28.02.2007 40811030
4200012196 FA 31.03.2007 40811030
4200013351 FA 31.03.2007 60640000
details of fisrt document (n° 5300029134) give 4 line items :
Itm PK Account Account short text Amount
1 25 600819 LYRECO 20,524.36
2 39 600819 LYRECO 20,524.36-
3 50 51110040 BN att FGX LCR n.D. 20,524.36-
4 40 51119800 En cours E à P 20,524.36
my requirement is to display 3 account ( 600819, 51110040 and 51119800) given in details of document in column Offst.acct when excute FBL1N in stead of one. like this :
DocumentNo Type Doc..Date Offst.acct
5300029134 TL 22.05.2007 600819
5300029134 TL 22.05.2007 51110040
5300029134 TL 22.05.2007 51119800
5300034345 TL 07.06.2007 600819
5300038636 TL 21.06.2007 600819
5300038637 TL 21.06.2007 600819
4200014129 FA 28.02.2007 40811030
4200012196 FA 31.03.2007 40811030
4200013351 FA 31.03.2007 60640000
I hope that is more clear,thanks fo your patience. -
'Another user or another operation modified data, to continue open the window again ' Inventory Transaction Log' (OITL)(ODBC-2039) (Message 131-183). If I click again on add I get the following message : 'Cannot add row without complete selection of Batch / Serial Nos. [Message-29-77]
Path:
Inventory -> Item Management -> Batches -> Batch Management - Complete form.
Before this I use Return Components on Receipts from Production as I am mistakenly issued it more than what was needed.
Were anyone be able to explain why it worked for certain items and not for others? I have successfully done “return components with some batches"Hi Nagarajan,
I'm one of colleague of caterine, we only accessing the batch management-complete window, no other window is open, still the error occurs; see image below
Before that error occurs(in image); first error we encounter was batch number is already exist, then upon click add another person modified the window; but we tried to restore the db then try to add the batch number in different transaction like SI 1658(Goods Issue), and it is okay.. but on the SI 50003 which is Receipt from production we can't add it.
Hope you can help us.
Regards,
Lean -
Add row / delete row in PDF Form
Alright so I am really struggling here and no one has been able to provide me a solid answer to date.
1. I am creating a PDF form I want users to be able to fill and remit via email
2. I have created the form in Acrobat 9 Pro via the form Wizard and in some combination with MS Word 2007 for text and table fields to get the forms wizard to auto-populate Adobe form fields.
3. Some of the tables, i.e. In the first table for "Full Time" and "Part Time" should have check boxes - works fine to date. While others should have drop downs, i.e. platform build, etc - works fine to date.
4. This is the pressing issue. As they exist today there is a large table as you can clearly see. I want users to be able to simply click an "Add Row" or "Delete Row" button to add another row to the table (or delete) without having to have a massive table.
I've watched demos on Lynda.com (all of which are irrelevant and provided 0 value), tried to work with what people have responded with previously but all are mainly sample documents and I don't know where to start. In short, I open my form and other forms in LifeCycle Designer ES, take a look at the buttons people have created, the scripts, the XML source, etc. but no idea where to go. If the button needs to be in the table. How it should be scripted. etc. I cannot find a video tutorial anywhere on the web and all the responses simply provide a sample but no idea how to make it a reality in terms of translating their sample into a working dynamic form in PDF. Any help is greatly appreciated. Thanks.For a dynamic table you have to design a new XFA-form in Designer.
Here's a little tutorial how to create dynamic tables.
http://forms.stefcameron.com/2009/02/25/expandable-table-with-totals/
Just a little correction.
You can inport Docx-Files with tables and add / remove rows in a dynamic PDF.
But, this is not handy, if the table contains more than one row when it is imported because Designer gives every detected row the same name (Row).
Delete all row excepting the first one and set it to repeatable in the binding tab.
Then you can use the addInstance() and removeInstance() methods to add/remove row to the table.
Here an example file I made from a docx file.
https://acrobat.com/#d=k8XbQWmqu6bhfrrwui93pw
Maybe you are looking for
-
Duplex printing problem with Reader Upgrade
I upgraded Acrobat Reader 10.1.8 to 11.0.4 and can no longer access fast or duplex printing for PDF's. I have a Canon MP970 printer for 3 years and have always been able to do both fast printing and duplex printing of PDF's. How do I resolve?
-
Power mac G4 hangs at startup with gray screen
Hello all, I have a Power mac G4 - mirrored drive door model. 512mb of RAM; 833mghz - about 50+ gigabytes of storage remaining. I recently starting using this mac again, here is what happened: Power mac G4 was running 10.2.1 - had never been updated
-
Setting up RAID 0 and scratch disk from blank drives?
Folks, Howdy again from NC. I've been setting up an AMD Phenom II 955 to handle PPro CS5 as well as possible, within limits. I built four of these machines for my math class, and am going to give CS5 a go on one of them before caving in and migrating
-
Certificates for Office 365 Hybrid Exchange 2010 Exchange Online v15
Certificates for Office 365 Hybrid Exchange 2010 Exchange Online v15 We need to set up a hybrid server to allow us to begin moving mailboxes to Exchange Online. We created a new Server 2012 R2 server with Exchange 2013 SP1 to act as our Hybrid server
-
Is there any way to sync Facebook bdays/events to the calendar on my iPhone?
I'd really appreciate it if someone could help me on this? Thanks