How to manually add rows to DataSet ?
Hi,
Apologies if I have missed something obvious - but how should
I manually add rows to an empty dataset ?
I've seen the setDataFromArray example in the
samples
- but I just want to take a value from a form field and add it to
the dataset.
Thanks,
Richard
I've just answered it myself...
use this in the head :
var ds1 = new Spry.Data.DataSet();
ds1.data=[];
function addToDS(newItem){
// Create row id
var recordID = "ROWID-" + ds1.data.length;
// Add new record to the dataset
ds1.data.push({ myItem: newItem, ds_RowID: recordID });
ds1.loadData();
Just call addToDS(value of an input field) using an onclick
event.
Similar Messages
-
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 to manually add second detail on master detail page
Hi,
Apex 4.1
can anyone tell me which steps to take excactly to manually create a second detail region on a master-detail form ?
So far I've copied the first detail region and customized it to the second detail table. Copied the processes and adjusted them.
What happends now is whenever I push one of the 2 "add row" buttons the rows are always added to the last region shown on the page. (also if I try to change anything on the data on the form and submit it all kind of errors show up )
It seems like the javascript:addrows() does not work for the region it's defined in, but how to adjust this ??
If I'm forgetting any other steps please also let me know.
Found multiple threads on this but so far no explanation on how to manually do this.
Cheers
BasBas,
Multiple tabular forms or detail regions on a master-detail form are not yet supported. So you best option would be to make one or both of the detail regions read-only report regions with edit links on each row, which would take you to a detail edit page. Alternatively you could try to manually build two tabular form regions on your page, however you will not be able to use any of the built-in tabular form features then, incl the add-row functionality, the multi-row update processes and declarative validations. So all of this would need to be hand-coded in PL/SQL and JavaScript. We have plans to support multiple tabular form regions out of the box, but we don't yet when this might make it into APEX.
Regards,
Marc -
How can i add rows to a JTable at run time ??????
hi there
how can i add a row to a JTable at run time? and display the table after the change? thank you.For adding or removing the rows from the JTable, you have to use the methods on the table model. I would show you a simple implementation of table model.
public class MyTableModel extends AbstractTableModel {
private ArrayList rowsList = null;
private String [] columns = { "Column 1" , "Column 2", "Column 3"};
public MyTableModel() {
rowsList = new ArrayList();
public int getRowCount() {
return rowsList.size();
public int getColumnCount() {
return columns.length;
public void addRow(MyRow myRow) {
//MyRow is any of your object.
rowsList.add(myRow);
fireTableDataChanged();
public void removeRow(int rowIndex) {
rowsList.remove(rowIndex);
fireTableRowsDeleted(rowIndex, rowIndex);
public Object getValueAt(int row, in col) {
MyRow currentRow = (MyRow)rowsList.get(row);
switch (col) {
case 0:
//return the value of first cell
break;
case 1 :
//return the value of second cell
break;
case 2 :
//return the value of third cell
break;
}Then create the table using the TableModel using the constructor new JTable(TableModel) and then when you want to add/remove a row from the table, call myTableModel.addRow(MyRow) or myTableModel.removeRow(rowIndex)....I hope that this solves your problem. -
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 manually add library to my WL domain using admin console?
Hello All,
In need to manually add the JSF2:0 shared library into my
domain using the admin console. How can I do that?
Should I go to Admin Console -> Deployments -> Install -> Upload (from my desktop) -> now how do I tell where this should be installed in weblogic?
Thanks,this link http://download.oracle.com/docs/cd/E21764_01/apirefs.1111/e13952/taskhelp/library/DeployLibrary.html shows the steps involved
-
Hi,
i want to add row selector in my reports. as we do in sql command promt.
i want to create select list with values like 500,1000,2000,6000 and so on. if i choose 500 in select list it show 500 records in report,if i choose 1000 then show 1000 rows in report.how can i do this.
is it possible? if it is then how can i do this.
Thanks & Regards
nishaIn the Report pagination Settings( report Attributes ->pagination" ) , there is a field by the name "*Number of Rows (Item)*" , Choose your item there.
-
I want to add music manually from my mac. however when i try to set it up to do that, it wipes my itouch music out completely and have to do a complete re-sync for music from the Library. Isn't there some way to sync it and only add new music that i have added?
Also, how do only add certain tracks on the albums that I have added to library. thanks in advance to help!I just use the manually manage music selection. I don't ever sync music because my music library would be huge and I constantly add and delete music.
-
How to manually add audio book to the ipod
How do I manually add an audiobook to my ipod?
First make sure your iPod is set to manually manage by enabling the Manually manage music and videos option from under the iPod's Summary tab. Once you have done this, you can manually click and drag the audiobook and its tracks over to your iPod from under the Devices section in the lefthand pane of iTunes.
B-rock -
How to manually add RAC Resources
I have been experimenting with RAC on 10gr2 database running on Oracle Enterprise Linux 4.
I lost the disk that contains the OCR, which was not mirrored. :(
I reinstalled Clusterware successfully, but when I ran crs_stat -t I see gsd,ons and vip but not the database resources for the two nodes (instances,listener,database service).
These resources were registered automatically when the DB was created using OUI and selecting cluster installation
How can I use crs_profile and crs_register to manually add/register these resources?user616051 wrote:
I have been experimenting with RAC on 10gr2 database running on Oracle Enterprise Linux 4.
I lost the disk that contains the OCR, which was not mirrored. :(
I reinstalled Clusterware successfully, but when I ran crs_stat -t I see gsd,ons and vip but not the database resources for the two nodes (instances,listener,database service).
These resources were registered automatically when the DB was created using OUI and selecting cluster installation
How can I use crs_profile and crs_register to manually add/register these resources?ah ... a promising candidate for a RAC certified expert Certification ;-)
There is a RAC forum that should help with RAC/clusterware installations : RAC, ASM & Clusterware Installation
Best to mark question answered here and post in that forum ... rgds - bigdelboy. -
How to stop "Add Row" and "Delete" from committing.
Hello, I am new to Application Express, and maybe someone can help me make this save like an Oracle Form.
If you hit the "Add Row" button, enter data, then hit the "Add Row" button again, it commits the first row. If you check a value and hit the "Delete" button, it commits the delete. I would like the insertions and deletes to be handled like an update, that is with an explicit commit by hitting the "Apply Changes" button.
Can I control this in Application Express, and how?
Thank you,Kevin,
1. instead of having a form on a table, you would create a form on a collection,
2. collection is also a table but it is only of a temporary nature - it is valid with the corresponding session. Once the session is closed, you can't access the collection.
3. to see how to create a collection and a tabular form use this example:
http://htmldb.oracle.com/pls/otn/f?p=31517:176
4. add row and delete will add / delete a copy of your table data. You can then create a process to save the data in your target table only if the button apply changes is clicked.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
How to "manually add songs" only
A few simple steps to manually manage your music in your iTunes so that your manually add songs to your iPod (provided the song amount, i.e. the Gb used, is less than the storage capacity of the touch device used).
Step 1.
Create a playlist and drag every song into the playlist you wish to be on your iPod/iTouch/iPhone.
Step 2.
Return to the music section in iTunes and press "cmd" and "select" at the same time on one of the 'ticks' to unselect all songs.
Step 3.
Return to the playlist and press "cmd" and "select" at the same time on one of the 'ticks' to select all songs in the playlist.
[Note in doing step 2 followed by step 3, only the songs in the playlist are checked in the music section]
Step 4.
Return to the music section and sort by checked songs
Step 5.
Select all the checked songs and drag them onto the iPod/iTouch/iPhone.
Step 6.
Return to the music section in iTunes and press "cmd" and "select" at the same time on one of the 'ticks' to select all songs.
[Now what you have is only the songs you want on your device and all the songs will show up in the manually added songs section on your device. Also by reclicking all the music in your iTunes library you avoid the unnecessary complications of songs not playing/transferring while listening to music on your computer]
A bit time consuming but it works well who like to carefully manage their library.Hi Chris,
I will delete this thread and repost with correct terminology to avoid confusion. Also I will include the rationale behind why you would take this approach so that people can choose to see whether they will benefit from it. I'd have liked this to exist prior so I can manage my music statistics.
Your way is right also, but is not the only way to do it and is certainly not the correct way for me. You don't "manage" your music your way.
A few simple steps to manually manage your music in your iTunes so that your manually add songs to your iPod (provided the song amount, i.e. the Gb used, is less than the storage capacity of the touch device used).
Reason: This is a good approach (not the only approach might I add) if you wish for your playcount to be tracked and a failsafe way of managing your songs individually so you do not need to rely on playlists.
Step 1.
Create a playlist and drag every song into the playlist you wish to be on your iPod/iTouch/iPhone.
Step 2.
Return to the music section in iTunes and press "cmd" and click on the "touchpad" at the same time on one of the 'ticks' to unselect all songs.
Step 3.
Return to the playlist and press press "cmd" and click on the "touchpad" at the same time on one of the 'ticks' to select all songs in the playlist.
[Note in doing step 2 followed by step 3, only the songs in the playlist are checked in the music section]
Step 4.
Return to the music section and sort by checked songs
Step 5.
Select all the checked songs and drag them onto the iPod/iTouch/iPhone.
Step 6.
Return to the music section in iTunes and press "cmd" and click on the "touchpad" at the same time on one of the 'ticks' to select all songs.
[Now what you have is only the songs you want on your device and all the songs will show up in the manually added songs section on your device. Also by reclicking all the music in your iTunes library you avoid the unnecessary complications of songs not playing/transferring while listening to music on your computer]
A bit time consuming but it works well who like to carefully manage their library. -
How to manually add music from your library
I'm attempting to manually add an album in my library onto my iphone library, but it won't let me.
On the phone summary it only has "Manually manage videos" and not music, and on the Music tab it only allows me to add voice memos.
Can anyone suggest what I'm doing wrong?Did you follow the steps in this article?
Managing content manually on iPhone, iPad, and iPod
Also make sure that no restrictions are set in Settings/General/Restrictions. -
How to manually add HP C410a Scanner in Mountain Lion?
I just got a new MBA running Mounta Lion. I'm 100% up to date on Software Update. I've also downloaded and installed the "full featured" HP software for my C410a specifically for Mountain Lion from http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en &cc=us&prodTypeId=0&prodSeriesId=4059515&prodNameId=4059651&swEnvOID=4142&swLang =8&mode=2&taskId=135&swItem=mp-111985-1
My C410a is happily connected to my network with an Ethernet wire. I have other computers, both Windows 7 and OSX 10.7 that can print and scan no problem. My new computer, however, can't seem to find the scanner. It had a hard time finding the device as printer too, but when I was in Print & Scan and I clicked on the plus-symbol, I was able to choose "IP" and enter my devices IPv4 and then OSX finally detected what was going on and gave me the proper options to add my C410a. I did a test page and everything - it all works. I can't seem to find how to add this as a scanner, however. ***?
Halp me, please! How do I add this network enabled scanner?!?!
http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&dlc=en&docname=c03378792 #N541Here's a screenshot that may be relevant:
-
I need to add a row of data to an existing dataset from an
XML file. The row must part of the dataset so that master detail
relationships will can use the extra data. Modifying the XML is not
an option (too much work- many different XML files all updated
frequently).
Is there a function available to add some rows to a
dataset?V1- yes that is what I am looking for but my programming
skills are not up to par yet.
I have added this code to my page:
var dsColors = new
Spry.Data.XMLDataSet("../feeds/tshirt.xml",
"CATEGORY/SIZE/COLORS");
function addToDS(newItem){
// Create row id
var recordID = "ROWID-" + ds1.data.length;
// Add new record to the dataset
ds1.data.push({ myItem: newItem, ds_RowID: recordID });
ds1.loadData();
Here is my XML:
<COLORS color="WHITE" key="@c_white@">
<BRAND code="BUN">B-Unique</BRAND>
<BRAND code="DUB">Dub Ceasar</BRAND>
</COLORS>
So to add an additional row, I *think* i need something like
this:
var newRow = { BRAND = "XXX-WWW", @BRAND/code = "XWX", COLOR =
"SHOW ALL COLORS", @key = "ZZZ" };
Where I am lost is how to put it together with a command to
execute the function. What I want is for the new row(s) to be added
to the dataset as the page is loading.
Maybe you are looking for
-
How can I prevent NULLs from appearing in my HyperTrend graph when restarting DSC engine?
I am continuously logging data to a citadel database using DSC 7.0. Occasionally I need to restart the DSC engine because of a computer reboot, changes to SCF file, etc. Whenever I do this, and then review the data in HDV or with a HyperTrend graph i
-
Can't shuffle mp4 music videos
I ripped a video dvd of mine into 20 seperate mp4 files with Handbrake. I then added them to iTunes. Each plays fine but they stop at the end of the song. I'd like to get them to shuffle to the next song. Any hints?
-
Query on inserting Address in SMARTFORMS.
Hi All, In my Smartform there is an Address Node of type( Organization Address ) which fetches the Address of Sold-to or Ship-to party based on Country.. Now we want that the Address which is fetched should all be converted to upper-case irrespective
-
When I type information on an invoice on Pages, it is too light. How do I make it darker?
-
IWeb / Non .mac website?
I have the older version of iLife that didn't come with iWeb. I already have two websites with another hosting company. I wanted to know if I could use iWeb to create sites to put on my own existing (and already paid for) sites, or can you only uploa