Matrix Values Dissappearing after I add them
I am loading a user defined matrix with data from a query which (thanks to the info in this forum, works...!) But after the matrix has been populated and control returned back to SAP the data dissappears (interestingly the links still work)
Also the bubble event is set to false.(I dont want the real system form to appear)
Anyone have a pointer of what I am doing wrong? or not doing
Hello George,
the column has to be bound to either a UserDataSource or DBDatasource.
There are issues on numeric User datasource, You can't clear it for example (Set cell value in matrix)
Sebastien
Similar Messages
-
HT204022 how do i delete photos from camera roll after i add them to specific folders ?
how do i delete photos from camera roll after i add them to specific folders ?
Camera roll is the master list of all photos in the app. When you place a photo in an album, it's still in the camera roll.
-
Hello,
I am very new to JavaScript. I would like to create a checkbox with a numerical value variable activated if the box is checked. Unfortunately, I cannot use the 'Export Value' because I already need to use it for something else.
Any help is really appreciated.
Thanks,
RobynBrace yourself, here's your solution.
First of all, the export value of you checkboxes should definitly be the number of hours for the class since you will just add them up further.
Second, we will use the userName property for our second export value (its the field right under Name and its labeled "tooltip"). You will name the class there.
Finally, you need to name each checkbox with a number at the end starting with 1 all the way to 190. This will be used in loops. ("whatever.1", "whatever.2,....."whatever.190")
In the calculate event of "total hours":
var sum = 0; //declaring a variable that will be used in the loop
for (var i = 1; i <= 190; i++){ //this loop will scan through all your checkboxes
if (this.getField("whatever."+i).isBoxChecked(0) == true){ //if box is checked....
sum += Number(this.getField("whatever."+i).value); //.....add its value to the sum
event.value = sum; //display the total
Now for the course name field, we will use the same pattern in the calculate event
var courseList = new Array(); //declaring an empty array that will contain the courses
for (var i = 1; i <= 190; i++){ //this loop will scan through all your checkboxes
if (this.getField("whatever."+i).isBoxChecked(0) == true){ //if box is checked....
courseList.push(this.getField("whatever."+i).userName); //.....add its userName (tooltip) to the array
event.value = "You are attending these courses: "+courseList.join(", ")+"."; //display the array by turning it into a string and joining its items with ", "
You can try it out with just a few checkboxes at first. Don't forget that the loop mustn't go further than the existing field or you will get an error and the script will stop. Make sure no error show in the console (ctrl+J). -
When adding a yahoo email account I keep getting "Server Unavailable" notification. This started after I updated my software. I deleted my accounts and tried to re-add them but continue to get this notification??
hello, this is a scam tactic that is trying to trick you into installing malware, so don't download or execute this kind of stuff! as you've rightly mentioned, you're already using the latest version of firefox installed and you can always initiate a check for ''updates in firefox > help > about firefox''.
you might also want to run a full scan of your system with the security software already in place and different tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes], [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner] & [http://www.kaspersky.com/security-scan kaspersky security scan] in order to make sure that there isn't already some sort of malware active on your system that triggers these false alerts.
[[Troubleshoot Firefox issues caused by malware]] -
How to get a function to return a value occuring after a character
I need to write a function to return the next value occurring after the ":" character in a column. If multiple values of ":" occurs then the function should return the sum of the next value occurring after each ":" in the column.
For example a rating value of 4:1 would return the value of 1. However, the rating of "5:1:1" should return a value of 1+1 = 2, and 6:2:1 will return of 2+1 = 3.
I have the below function skeletion and trying to figure out how the select statement will compute based on the position of : in the column and add the values and return the value back to function.
Function fn_check_internalrating(p_internalrating IN VARCHAR2)
RETURN number
IS
cnumber number;
cursor c1 is
select ................................
BEGIN
open c1;
fetch c1 into cnumber;
close c1;
RETURN cnumber;
EXCEPTION
WHEN OTHERS
THEN RETURN NULL;
END;Hi,
You don't need a cursor: there's no table involved in this function, and no point in using any table.
Here's one way:
CREATE OR REPLACE FUNCTION fn_check_internalrating
( p_internalrating IN VARCHAR2
, p_delimiter IN VARCHAR2 DEFAULT ':'
RETURN NUMBER
DETERMINISTIC -- Same input always produces same output
IS
cnumber NUMBER := 0; -- value to be returned
pos PLS_INTEGER := INSTR ( p_internalrating
, p_delimiter
); -- position where delimiter was found
BEGIN
WHILE pos != 0
LOOP
cnumber := cnumber + TO_NUMBER ( SUBSTR ( p_internalrating
, pos + 1
, 1
pos := INSTR ( p_internalrating
, p_delimiter
, pos + 1
END LOOP;
RETURN cnumber;
END fn_check_internalrating;
SHOW ERRORSThis assumes the function is a stand-alone function. If it's part of a package, you don't say CREATE OR REPLACE at the beginning.
Try to make functions generic, so that if a similar (but not identical) situation comes up in 6 months from now, you can use the same function. I'm guessing that somethimes you may want to do the same thing with some character other than ':' before each number, so I added the 2nd (optional) argument p_delimiter. You can call the fucntion with either 1 or 2 arguments.
If an error occurs in a PL/SQL fucntion, an error message (showing the exact location of the error) is displayed, and execution halts. If you use an EXCEPTION sectinn, you lose all that functionality, or have to code it yourself. Only use an EXCEPTION handler when you really have to.
For this function, you may or may not want to. For example, if the character right after a delimiter is not a digit, the call to TO_NUMBER in function will raise "ORA-01722: invalid number". You may want to catch that error in an exception handler, and return 0 or NULL. On the other hand, you may want to test that the character after the delimiter is a digit before calling TO_NUMBER, and not have an EXCEPTION section.
What else could go wrong? Try to think of potential problems and fix them when you first write the function. If you discover an error next year, you'll have to spend a fair amount of time finding the function, and getting acquainted with it again.
What should the function return if p_internalrating is NULL, or doesn't contain any delimiters?
What if there's a number longer than 1 digit after a delimiter, e.g. '6:78:9'? -
Error when i remove a row after i add three rows
i have a table component to some person
if i add 2 new rows to the table without commit changes,
after i remove them is works fine!
the problem is when i add more than 3 o more rows to the table and i want to remove some row it return error.
this is my code
add feature..
public String insertar_action() {
CachedRowSetDataProvider crs = getEncuestadoresDataProvider();
RowKey fila = null;
try{
if(crs.canAppendRow()){
fila = crs.appendRow();
crs.setCursorRow(fila);
}else{
info("No se puede insertar una fila");
}catch(Exception e){
error("error : "+e);
return null;
}remove feature
public String borrar_action() {
form1.discardSubmittedValues("guardar");
CachedRowSetDataProvider crs1 = getEncuestadoresDataProvider();
try {
RowKey rk = tableRowGroup1.getRowKey();
info("row key "+rk);
if(rk!=null){
crs1.removeRow(rk);
crs1.commitChanges();
crs1.refresh();
} catch (Exception e) {
info("No se pudo eliminar el registro!");
info("error "+e);
return null;
}i hope somebody can help me
p.d. sorry my bad english
nullif i do a refresh after append a row, the row disappear immediately
the actions works fine with the new two rows added and deleted without information. and the actions works fine with others tables.
the problem begins when i add three or more new empty rows..
it's trying to execute a insert when i removeRow()
* RowKey ;CachedRowSetRowKey[3]
* error : java.lang.RuntimeException: Number of conflicts while synchronizing: 1 SyncResolver.INSERT_ROW_CONFLICT row 2 GDS Exception. 335544665. violation of PRIMARY or UNIQUE KEY constraint "INTEG_16242" on table "ENCUESTADORES"error when i remove the third.. fourth.. etc.. row (empty rows);
the print statement when i remove
INSERT INTO ENCUESTADORES (RUT, NOMBRE, APELLIDO, PASS, RUT_JEF) VALUES (?, ?, ?, ?, ?)
Writer: executing insert , params: Col[1]=(java.lang.String,) Col[2]=(null:12) Col[3]=(null:12) Col[4]=(null:12) Col[5]=(java.lang.String,33333333-3)
Writer: executing insert , params: Col[1]=(java.lang.String,) Col[2]=(null:12) Col[3]=(null:12) Col[4]=(null:12) Col[5]=(java.lang.String,33333333-3) -
I Unable to add contacts. I add one and then press done. It shows up but after I add another one the first one is gone. How do I save them?
Hi,
Troubleshooting a start up script can be difficult. There are some third party programs that also keep logs of start up programs, however for Firefox this may be different.
Is Firefox a startup program? [http://www.winxptutor.com/msinfo32.htm]
Its also possible to check the Web developer tools for any scripts in a page: [https://developer.mozilla.org/en-US/docs/Tools/Debugger]
In the control panel there is also Administrative tools to view event logs, but this may be something a local technician can walk you through. -
Updating '08 file adds theme images
I noticed after saving a minor text change in an older Keynote '08 presentation file as a Keynote '09 file (no choice), the result is much larger. The original file was 260KB. The '09 file is 3.6MB. Checking the '09 file's package contents, I noticed there is a new "theme-files" folder that is 3.5MB. It holds 20 JPG images that represent all the '09 themes. I didn't use any theme for the original file, unless plain white is a theme. Either way, I don't need the other 19 theme JPGs, do I? How can I change the settings of Keynote '09 so it will not add theme images to an '08 file when updating changes?
No, that doesn't work. That page of preferences all applies only to new documents. I am looking for a way to edit an '08 document and then save it as an '09 document without adding the useless theme images. Anyone know how to accomplish this?
-
Why after I add a object to a list, the whole list changes?
I tried to call the add method of ClientList from a jsp webpage,
by looking at the log file, i found that for the 2nd time insert an Object into clientlist (say
client 1 is: IPAddress= 167.30.22.33
client 2 is IPAddress=167.30.22.44), what i get from the system log is that I have two
167.30.22.44 in the list, the first one is gone,
after I add the third item, the list just contains three identical third item, the former two are gone,
What 's wrong with my code? From the system log, I know that the parameters passed to the method clientlist.add are correct.
thank you.
My code is like this :
public class ClientList {
ArrayList<Client> listitems = null;
int numberOfItems = 0;
public ClientList()
items = new HashMap<String, ClientListItem>();
listitems = new ArrayList<Client>();
public synchronized void add(
Client cl) {
if (items.containsKey(cl.getIPAddress())) {
ClientListItem clitem = (ClientListItem)items.get(cl.getIPAddress());
clitem.incrementQuantity();
} else {
System.out.println("clist.add called: " + cl.getIPAddress() + "\n");
ClientListItem newItem = new ClientListItem(cl);
items.put(cl.getIPAddress(), newItem);
listitems.add(cl);
for (Iterator i = listitems.iterator(); i.hasNext(); )
Client clt = (Client)(i.next());
System.out.println("after adding : " + clt.getIPAddress() + "\n");
}I'm willing to bet that what is happening here goes as follows:
// Step 1: Create a client 1 object
// Step 2: Call add with this client object creating a string key with a client value
// Step 3: redefine the data in the first client object with the data for the second
// In this step you probably did not create anew client object, but simply
// changed the data in the original
// Step 4: Call add with the "redefined" client object comparing the string key with
// some data from the client, determining it is not in the list adding it againWhat the above does (if this is the way you are doing it) simply places the same client
object into the hash twice with two different keys. And in step 3, by changing the original object,
you also changed the object already in the hash, because as already said, they are the same object.
Edit: And nevermind, jverd already said this. ;-) -
How to use "sequence" after we add new data ?
Dear all :
Could someone tell me how to increase the number after we add new data and put the number into one field per time ?
Thank youIn the Initial Value property for an item on a block, you can assign it to a sequence value. Just put the name of the sequence in the Initial Value:
Specifies the default value that Form Builder should assign to the item whenever a record is created. The default value can be one of the following:
Here's the part of the help screen for Initial Value that shows how to assign a sequence.
raw value (216, 'TOKYO')
form item (:block_name.item_name)
global variable (:GLOBAL.my_global)
form parameter (:PARAMETER.my_param)
a sequence (:SEQUENCE.my_seq.NEXTVAL)
Dave -
I have several .mp3 files of speech. When I add them to iTunes they show up in Music. How can I get them to show up as Audiobooks?
Have you tried restarting or resetting your iPad?
Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after It shuts down, press the On/Off button until the Apple logo appears.
Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds).
No data will be lost. -
In my desktop my photos are 29GB, but in my ipad it is 8.8, why is this? and also will my photo's compress when i add them to iPhoto in my air from my desktop?
*correction*
Arrow in bottom left allows you to multi select. After you choose your photos, you can hit the delete button that appears in the bottom right hand corner. Or, you can hit the cancel button in the rop right and not delete them -
Why can I chat with a buddy but not add them to my Buddy list?
I'm using iChat 4.0.2 with OS 10.5.2.
I add a particular buddy to my list but the name fades in and out and then disappears all together in a few seconds. No matter how many times and ways I try, I cannot add them to my buddy list and get them to stay. I can add other buddies to my list normally.
During the time I can see this particular buddy's name in my buddy list, if I'm quick enough before they fade out, I can click to connect and chat perfectly. I can also request to view video with them and have them accept and view normally. However, if this buddy sends a video request to me, I hear the ring but then an instantaneous message window appears saying that the buddy "cancelled the invitation".
Interestingly, after connecting with this particular buddy, I can maintain their text chat window and text chat as normal. This buddy is using iChat 3.1.9 and OS 10.4.11.
Any help or ideas with how to keep this buddy in my list would be appreciated.Interesting.
I would have gone the iChat > Preferences > Accounts > Security and just checked the Block list first.
com.apple.ichat.Subnet holds the sort order and Allow/Block lists
Setting the Preference to Allow All and then checking the Allow option and possibly the Block list would change the Subnet.plist anyway.
For some the Flashing/disappearing Buddy is a result of iChat 4's response to Feedbag Error 10
Feedbag errors are AIM codes for problems with the Buddy List.
In this case it is adding a Screen name with a Real name option and that Real Name is already in the Address Book.
To restate.
I would leave the deletion of com.apple.ichat.Subnet.plist (as this will remove all those that may be in your Block list) until all other options have been exhausted.
8:15 PM Sunday; June 15, 2008 -
My calendar events keep disappearing when I add them to my iphone 5 calendar.
My calendar events keep disappearing from my iphone5 a few days after I put them in. I tried all the fixes listed in other questions, but it's not a matter of syncing or not, the appointments disappear and they're not anywhere else either. I need the appointments to stay on my phone, I don't add appointments any other way or on any other device, and when they're gone, I have no idea what I'm missing. It's screwing up my work schedule because I don't know what has disappeared.
App (pinned) tabs and Tab Groups (Panorama) are stored as part of the session data [1] in the file sessionstore.js [2] in the Firefox profile folder [3].
Make sure that you do not use "Clear Recent History" to clear the "Browsing History" when Firefox is closed because that prevails and prevents Firefox from opening tabs from the previous session.
* https://support.mozilla.com/kb/Clear+Recent+History
* [1] http://kb.mozillazine.org/Session_Restore
* [2] http://kb.mozillazine.org/sessionstore.js
* [3] http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox
It is also possible to use:
* [http://kb.mozillazine.org/Menu_differences Firefox/Tools > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time" -
Sending more than one name value pair via ajaxRequest.add()
Hi all,
I'm implementing AJAX in Oracle Application Express to perform DML operations on a table. I need to send more than one name value pair via the ajaxRequest object. Can someone guide me how to achieve this? Say for example i need to send 2 values(need to send 2 form elements when submit button is clicked) P3_region and P3_scope. i tried the following methods.
Method 1:
======
ajaxRequest.add('P3_region',document.getElementById('P3_region').value);
ajaxRequest.add('P3_scope',document.getElementById('P3_scope').value);
Method 2:
======
ajaxRequest.add('P3_region',document.getElementById('P3_region').value,'P3_scope',document.getElementById('P3_scope').value);
Neither of them is fruitful. Can someone guide me how to achieve this?
Regards,
Balaji Radhakrishnan.Hi Roel,
The javascript goes like this.
<script language="JavaScript" type="text/javascript">
function getElement1()
document.getElementById('P3_Element1').value = '';
var ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=Element1Process',0);
ajaxRequest.add('P3_Element2',document.getElementById('P3_Element2').value);
ajaxRequest.add('P3_Element3',document.getElementById('P3_Element3').value);
ajaxRequest.add('P3_Element4',document.getElementById('P3_Element4').value);
ajaxRequest.add('P3_Element5',document.getElementById('P3_Element5').value);
ajaxRequest.add('P3_Element6',document.getElementById('P3_Element6').value);
ajaxResult = ajaxRequest.get();
if(ajaxResult)
var wsArray = ajaxResult.split("~");
document.getElementById('P3_Element1').value = wsArray[0];
</script>
The application Process goes like this..
declare
v_Element1 VARCHAR2(60);
begin
select distinct Element1 into v_Element1 from TableA where Element2=:P3_Element2 AND Element3=:P3_Element3 AND Element4=:P3_Element4 AND Element5=:P3_Element5 AND Element6=:P3_Element6;
htp.prn(v_Element1);
exception
when others then
v_Element1 := 'Invalid Header Combination';
htp.prn(v_Element1);
end;
The requirement goes like this..
When i give Element2, Element3,Element4,Element5,Element6 as input in the form page the Element1 should get displayed automatically without refreshing the page. But when i use the above javascript and application process i get the Element1 loaded with some html scripts. I call the javascript using onChange() function.
Regards,
Balaji Radhakrishnan.
Maybe you are looking for
-
Anyone know how to set up mac as a wireless access point?
thats pretty much my question, i wanna access the internet on my nintendo DS and Wii
-
Business Process Management use cases within an SAP Environment
Check out the [BPM use case wiki |http://wiki.sdn.sap.com/wiki/display/BPX/BusinessProcessManagementUseCases]to learn how many SAP customers are profoundly transforming their companies by leveraging the discipline of Business Process Management to op
-
Hi, am uploading 5 mins of film to a website, so from FCE 4 use quicktime conversion to compress and prepare. 2 queries if anyone has advice. I understand that Sorenson video 3 is a good codec to compress, and thought it was a standard option. It doe
-
I contacted my carrier which is swisscom of switzerland and they told me only to restore my iphone with a non swisscom card but I didnt get my unlock, now im stuck in the setup as a new iphone, I contacted them again gave them my imei and they respon
-
Training & Event Mangement - Reports on total Mandays of training in month
Hi Experts, I have following requirements from my client Client want to see the Mandays / Manhours spent for across all the trainings in a month. Secondly Client want to further drill the above report based on employee group & employee subgroups. An