Need to update list page using a pop up dialog page (Please its URGENT)
Hi,
I have master page with list of employees. Using a pop up dialog I'am trying to insert a new record but the record is not appearing in the list.
Possible solutions tried but no hope:
1. Using managed bean I tried with refreshing (re-execute) the iterator and binding container of employee list page.
2. Used a navigation from popup dialog to list page along with returnActionListener associated on button.
Thanks in advance,
Syed Fazal
Hi Syed,
you may try in your return event
FacesContext context = FacesContext.getCurrentInstance();
NavigationHandler nh = context.getApplication().getNavigationHandler();
nh.handleNavigation(context, null, "whateveryournavigationruleis");
Similar Messages
-
Hello I wonder if anyone knows how to find, download and install a suitable IPA (phonetics) font for the MacBook Air? I need to be able to use a pop up window of fonts.
Unless you've done anything to change it, Google keeps every email that ever passes through their server in your All Mail folder/mailbox/label. Even if you delete stuff, they hold onto it, there. You have to go out of your way to actually delete anything permanently.
-
How to update list item using client object model without changing created/modified dates?
Hello All,
I want to update list item using the SharePoint Client Object
Model without updating the created / modified date. Is it possible?
Please help.
Thanks.Using the SystemUpdate method should do the trick, according
to its literature.
Additionally, would something like this be of any use for you? Taken from this
Stack Exchange thread: -
public static class SPListItemExtensions
/// <summary>
/// Provides ability to update list item without firing event receiver.
/// </summary>
/// <param name="item"></param>
/// <param name="doNotFireEvents">Disables firing event receiver while updating item.</param>
public static void Update(this SPListItem item, bool doNotFireEvents)
SPItemEventReceiverHandling rh = new SPItemEventReceiverHandling();
if (doNotFireEvents)
try
rh.DisableEventFiring();
item.Update();
finally
rh.EnableEventFiring();
else
item.Update();
/// <summary>
/// Provides ability to update list item without firing event receiver.
/// </summary>
/// <param name="item"></param>
/// <param name="incrementListItemVersion"></param>
/// <param name="doNotFireEvents">Disables firing event receiver while updating item.</param>
public static void SystemUpdate(this SPListItem item, bool incrementListItemVersion, bool doNotFireEvents)
SPItemEventReceiverHandling rh = new SPItemEventReceiverHandling();
if (doNotFireEvents)
try
rh.DisableEventFiring();
item.SystemUpdate(incrementListItemVersion);
finally
rh.EnableEventFiring();
else
item.SystemUpdate(incrementListItemVersion);
/// <summary>
/// Provides ability to update list item without firing event receiver.
/// </summary>
/// <param name="item"></param>
/// <param name="doNotFireEvents">Disables firing event receiver while updating item.</param>
public static void SystemUpdate(this SPListItem item, bool doNotFireEvents)
SPItemEventReceiverHandling rh = new SPItemEventReceiverHandling();
if (doNotFireEvents)
try
rh.DisableEventFiring();
item.SystemUpdate();
finally
rh.EnableEventFiring();
else
item.SystemUpdate();
private class SPItemEventReceiverHandling : SPItemEventReceiver
public SPItemEventReceiverHandling() { }
new public void DisableEventFiring()
base.DisableEventFiring();
new public void EnableEventFiring()
base.EnableEventFiring();
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem. -
I am running OS X v10.5.8 and need to update to 10.6 but cannot find it. Please help
OSX Frustrated wrote:
Thanks, but why can't I buy this online?
Because Apple withdrew it from the online Apple Store (along with Lion) as soon as Mountain Lion was released. 10.6 is now officialy obsolescent.
Is there a way around this as the hard store is closed and my phone is useless!!!!
It's not available in the high street stores - only by phone. -
I purchased the new gen 7 ipod nano and needed to update itunes to 10.7 but my current software says its up to date and won't download 10.6.8 Currently I have 10.5.8 Why won't this update?
The first generation Intel-based Mac's were released in January 2006.
Snow Leopard requires an Intel processor:
General requirements
Mac computer with an Intel processor
1GB of memory
5GB of available disk space
DVD drive for installation
Some features require a compatible Internet service provider; fees may apply.
If you go to the Apple menu & "About this Mac" this will tell you what type of processor you have: -
I want to buy an in-app purchase but i don`t remember my security questions and i cant access my recovery email either, what can i do? i have 100$ on my account and cant use it because of that problem, please help URGENT
If you have a rescue email address on your account then you can use that - follow steps 1 to 5 half-way down this page will give you a reset link on your account : http://support.apple.com/kb/HT5312
If you don't have a rescue email address (you won't be able to add one until you can answer your questions) then you will need to contact Support in your country to get the questions reset : http://support.apple.com/kb/HT5699 -
Update List Items using REST API - Keep Getting 400 Bad Request
I am using code from the following answer:
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/40833576-5853-4ca4-95cf-b5b1d69f465f/sharepoint-rest-and-c-sample-to-update-list-item?forum=sharepointdevelopment
I am having a tough time figuring out the issue though. I have been able to retrieve list items, but now I want to update those items. This is the following code just to get the digest information with passing in credentials:
public static string GetFormDigest(System.Net.NetworkCredential cred)
string formDigest = null;
string resourceUrl = "https://SITEURL/_api/contextinfo";
HttpWebRequest wreq = HttpWebRequest.Create(resourceUrl) as HttpWebRequest;
wreq.Credentials = cred;
wreq.Method = "POST";
wreq.Accept = "application/json;odata=verbose";
wreq.ContentLength = 0;
wreq.ContentType = "application/json";
string result;
WebResponse wresp = wreq.GetResponse();
using (StreamReader sr = new StreamReader(wresp.GetResponseStream()))
result = sr.ReadToEnd();
var jss = new JavaScriptSerializer();
var val = jss.Deserialize<Dictionary<string, object>>(result);
var d = val["d"] as Dictionary<string, object>;
var wi = d["GetContextWebInformation"] as Dictionary<string, object>;
formDigest = wi["FormDigestValue"].ToString();
Console.WriteLine(formDigest);
return formDigest;
Then the following code is used:
string result = string.Empty;
Uri uri = new Uri(sharepointUrl.ToString() + "/_api/Web/lists/getByTitle('DemoList')/items(1)");
HttpWebRequest wreq = (HttpWebRequest)WebRequest.Create(uri);
wreq.Credentials = cred;
wreq.Method = "POST";
wreq.Accept = "application/json; odata=verbose";
wreq.ContentType = "application/json; odata=verbose";
wreq.Headers.Add( "X-HTTP-Method","MERGE");
wreq.Headers.Add( "IF-MATCH", "*");
wreq.Headers.Add("X-RequestDigest", GetFormDigest(cred));
string stringData = "{'__metadata': { 'type': 'SP.Data.DemoListListItem' }, 'Title': 'updated!'}";
wreq.ContentLength = stringData.Length;
StreamWriter writer = new StreamWriter(wreq.GetRequestStream());
writer.Write(stringData);
writer.Flush();
try {
WebResponse wresp2 = wreq.GetResponse();
using (StreamReader sr = new StreamReader(wresp2.GetResponseStream()))
result = sr.ReadToEnd();
catch (Exception e) { Console.WriteLine("An error occurred: '{0}'", e); }
It errors out when it tries to send the command to Sharepoint. I am NOT using a sharepoint hosted app. I just wanted to directly contact sharepoint and update items. Any help or suggestions would be greatly appreciated!
Thanks,
Priyank
I just found some other code that seemed to work on editing a title and edited it kind of guessing it would work and it did!
This is the code that ended working using the same digest code from above:
Console.WriteLine("\n Newer Fancier Code \n");
Uri uri = new Uri("https://SHAREPOINTURL/_api/web/lists/GetByTitle('Demo')/items(1)");
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri);
request.ContentType = "application/json;odata=verbose";
request.Headers["X-RequestDigest"] = GetFormDigest(cred);
request.Headers["X-HTTP-Method"] = "MERGE";
request.Headers["IF-MATCH"] = "*";
request.Credentials = cred;
request.Accept = "application/json;odata=verbose";
request.Method = "POST";
string stringData = "{ '__metadata': { 'type': 'SP.ListItem' }, 'Location': 'updatedinfo' }";
request.ContentLength = stringData.Length;
StreamWriter writer = new StreamWriter(request.GetRequestStream());
writer.Write(stringData);
writer.Flush();
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
StreamReader reader = new StreamReader(response.GetResponseStream());
Just fyi if anyone was wondering. Next, I'm going to be trying to update multiple fields, possibly multiple items if possible if anyone knows how to do that. -
Tutorial on how to update list items using ListData.svc
Can you please point me to a tutorial which shows how to update a list item using listdata.svc and C#?
Sorry if this is FAQ.
I have found articles on read list... but I haven't found anything on update a list item.
val it: unit=()when i try this I get an error 500
I created an ASP.NET web application that allows the user to modify data that is stored in SharePoint I rather not go into the reasons why this application was created but focus more on why doesn't the listdata.svc allow me to update a task item that was
created by a workflow collect data from user action.
1. The workflow creates the item.
I collect the item and update the item using the below code. This is not an OOTB approval workflow that is just the name I used. When I get to save changes I received the following error code.
Dim getApprovalItem As ExpenseApprovalRuleBasedTasksItem = spContext.ExpenseApprovalRuleBasedTasks.Where(Function(i) i.Id = Pam.ApprovalItemID).FirstOrDefault
If String.IsNullOrEmpty(getApprovalItem.AuditorApprovalValue) Then
getApprovalItem.AuditingComments = approvalComments
Select Case approvalDecision
Case "Approved"
getApprovalItem.AuditorApproval = ExpenseApprovalRuleBasedTasksAuditorApprovalValue.CreateExpenseApprovalRuleBasedTasksAuditorApprovalValue("Approved")
getApprovalItem.AuditorApprovalValue = "Approved"
Case "Rejected"
getApprovalItem.AuditorApproval = ExpenseApprovalRuleBasedTasksAuditorApprovalValue.CreateExpenseApprovalRuleBasedTasksAuditorApprovalValue("Rejected")
getApprovalItem.AuditorApprovalValue = "Rejected"
End Select
getApprovalItem.Outcome = "Completed"
getApprovalItem.Status = ExpenseApprovalRuleBasedTasksStatusValue.CreateExpenseApprovalRuleBasedTasksStatusValue("Completed")
getApprovalItem.StatusValue = "Completed"
getApprovalItem.Complete = True
spContext.UpdateObject(getApprovalItem)
spContext.SaveChanges()
End If -
I need to update from pages v4.3 to v5.1
i created a very important document in pages, i created it on iPhone 5swith pages for ios7. im not able to open in mav 10.9.1
OS X 10.9.1 (13B42) to be exact
it says on my mbp that i need to install latest pages software.
BUT... in app store it says its installed
in the about for my pages on my mbp it says version 4.3 so not true.
it says i can download
OS X 10.9.1 (13B42)
again though???
now it got deleted !!!! i guess from trying to open with pages v4.3 on this mbp? kinda bad, but thankfully i did a workaround to save it elsewhere, < I don't like going backwards much >
also i suppose that i will need to update numbers from v2.3 to v3.1 latest
i just spent a bunch to upgrade my ssd to 500gb and my ram to 8gb so that all this would jive because thats what these sneaky updates do now.
im not real impressed with these MS tactics by apple. justifiably ******.
i need a bit of help please????
do i need to incrementally update to get to the latest? does apple need another $19.99?okay after reading abit more i realized that i was clicking the OLD grey cup & saucer icon on my dock.
so i went into finder then found the NEW yellow note & pen icon.
all better now thank me and support posts n apple n peace n love -
Need to update multiple records using store procedure
Hi i am trying to update multiple records using store procedure but failed to achieve pls help me with this
for example my source is
emp_name sal
abhi 2000
arti 1500
priya 1700
i want to increase salary of emp whose salary is less than 2000 it means rest two salary should get update..using stored procedure only
i have tried following code
create or replace procedure upt_sal(p_sal out emp.sal%type, p_cursor out sys_refcursor)
is
begin
open p_cursor for
select sal into p_sal from emp;
if sal<2000 then
update emp set sal= sal+200;
end i;f
end;
and i have called the procedure using following codes
set serveroutput on
declare
p_sal emp.sal%type;
v_cursor sys_refcursor;
begin
upt_sal(p_sal,v_cursor);
fetch v_cursor into p_sal;
dbms_output.put_line(p_sal);
end;
the program is executing but i should get o/p like this after updating
1700
1900
but i am getting first row only
2000
and record is not upsating...please help me with this
thanksHi Alberto,
thanx for your valuable suggestion. but still i have doubt. the code which i have mentioned above might be simple but what if i have big requirement where i need update the data by using loops and conditional statement.
and i have similar kind of requirement where i need to deal with procedure which returns more than one row
my source is
empno ename salary
111,abhi,300
112,arti,200
111,naveen,600
here i need to write a store procedure which accepts the empno (111) as input para and display ename and salary
here i have written store procedure like this
create or replace procedure show_emp_det(p_empno in emp.empno%type, p_ename out emp.ename%type,p_salary out emp.salary%type, p_cursor out sys_refcursor)
is
begin
open p_cursor for
select ename,salary into p_ename,p_salary from emp where empno=p_empno;
end;
and i have called this by using
declare
p_salary emp.salary%type;
p_ename emp.ename%type
v_cursor sys_refcursor;
begin
show_emp_det(111,p_ename,p_salary,v_cursor);
fetch v_cursor into p_ename,p_salary;
dbms_output.put_line(p_ename);
dbms_output.put_line(p_salary);
end;
here i should get
abhi,300
naveen,600
but i am getting first row only
abhi,300
but i want to fetch both rows...pls help me to find the solution -
Need to update multiple columns using another table
I have 2 tables. and i need to update rows of 1 table using another table
Table1
Serial_no. payment_date Payment_amt
101 22/11/2010 150
101 18/03/2011 355
102 15/04/2011 488
103 20/05/2011 178
102 14/06/2011 269
101 28/06/2011 505
Table2
Serial_no Charge_amt Last_paymt_dt Last_paymt_amt
101 255
102 648
103 475
I want to update Last_paymt_dt and Last_paymt_amt of table2 using Table1, I have written following update statement but it gives error that single row subquery return multiple row.
Update Table2
set (Last_paymt_dt,Last_paymt_amt) = (select max(payment_date, payment_amt) from table1
where table1.Serial_no = table2.Serial_no group by payment_amt)
kindly suggest how should i update.SQL> select * from table1
2 /
SERIAL_NO PAYMENT_DA PAYMENT_AMT
101 22/11/2010 150
101 18/03/2011 355
102 15/04/2011 488
103 20/05/2011 178
102 14/06/2011 269
101 28/06/2011 505
6 rows selected.
SQL> select * from table2
2 /
SERIAL_NO CHARGE_AMT LAST_PAYMT LAST_PAYMT_AMT
101 255
102 648
103 475
SQL> update table2
2 set (last_paymt_dt,last_paymt_amt) = (
3 select max(payment_date),
4 max(payment_amt) keep(dense_rank last order by payment_date)
5 from table1
6 where table1.serial_no = table2.serial_no
7 )
8 /
3 rows updated.
SQL> select * from table2
2 /
SERIAL_NO CHARGE_AMT LAST_PAYMT LAST_PAYMT_AMT
101 255 28/06/2011 505
102 648 14/06/2011 269
103 475 20/05/2011 178
SQL> SY. -
i want to make an identity card of my dad. he is a government employee. so can you send me whole method to make it using Photoshop CS2 ? please its urgent
Identity cards are not things individuals typically make.
You can get yourself into big trouble forging fake IDs.
-Noel -
Hallo dear
How are you
My dear can you tel me that how i can update my appel id from asia to usWhat country are you in ? You will only be able to use the US store if you are in the US with a valid US billing address on your iTunes account.
If you aren't in the US, then to get it to use the correct store on your iPad / iPhone / iPod Touch try going to the bottom of the Featured tab in the App Store app on it and tap on your account id, tap on 'View Apple ID' on the popup and log into your account, and then select the Country/Region section. -
Proper way to use multiple pop-up dialogs
I've got an application that uses a series of pop-ups to process user information.
A general flow of information is
User clicks a button
->dialog launches asking for confirmation to start process
Dialog returns and system processes request (in a returnListener)
->System launches new dialog, using AdfFacesContext.launchDialog, asking user to confirm changes to be made
Dialog returns and systems processes changes.
What I've noticed is that if I interact with the components in the second dialog 'too much' then the second return listener is not being called.
So, my question is, am I using dialogs properly? Should I try to use actions and navigation links instead of opening and closing dialogs?Sounds reasonable.
In that vein, is there a way to create 're-usable' dialogs? Ideally I don't want to have to write tons of little dialog that do nothing more interesting than asking "Are you sure?" with the actions set differently.
At first glance, I'm almost tempted to pack a method binding into the process scope and have the dialog check if it exists, and if it does, execute that. But that seems somewhat, inelegant.
Any thoughts? -
I need help updating an old software to the newest maverick - help please?
I was just given a macbook - it has an older system Mac OS X version 10.5.8. Can someone help me update it?
The first step in Upgrading... is to Snow Leopard = OS X 10.6.x
It is Not available as a download... It is a Paid Upgrade.
Do this first...
Check that your Mac meets the System Requirements for Snow Leopard...
Snow Leopard Tech Specs
http://support.apple.com/kb/SP575
If so... Purchase a Snow Leopard Install Disc...
http://store.apple.com/us/product/MC573Z/A/mac-os-x-106-snow-leopard
Other countries...
http://support.apple.com/kb/HE57
After the Successful Install, run Software Update to get the latest updates for Snow Leopard and iTunes.
Next... MAVERICKS...
Check here to see if your Mac is compatible...
http://www.apple.com/osx/how-to-upgrade/
Maybe you are looking for
-
Can you have 2 different iTunes on one computer?
I own an iPod classic and I have my itunes account loaded on my pc and also on my macbook. I am thinking of getting my bfriend a nano for Xmas and wondered if I do this, can a second itunes (with his account) be loaded on the same pc? If not, we do h
-
How to delete a row of table in Word using powershell.
I want to search for a word which is present in Table. If that word is present than I want to delete that row from table. Can anybody help me with that. The script I am using is: $objWord = New-Object -ComObject word.application $objWord.Visible = $T
-
Background processing contract?
1416427 - Background processing in contract not working can any one explain . what is this functionality of background processing contract? Symptom The background processing in contract will not work. And eventhough the processing fails, success mail
-
Given from scjp 1.public static void main(String[] args) { 2. NameRunnable nr = new NameRunnable(); 3. Thread t1 = new Thread(nr); 4. t1.start(); 5. t1.join(); }There are some questions whi
-
Hello all, I'm setting up a new website on which I will be showing different pictures of dining tables. I'm setting up several sites, the first one is finished already: Steigerhout Furniture but I'm still working on the other 2 Robuuste tafels and Ri