Intercepting the addition of a new item on a system document form
Hello all,
When a new item is added on the Quotation form, I need to perform some additional calculations on the new line, but when I intercept the et_CHOOSE_FROM_LIST event in "AfterAction" (!BeforeAction), the ItemCode in still not entered into column "1" on the matrix (with UniqueId = "38").
Is there a way to intercept insertion of a new line after B1 has filled its values? Looks like the "AfterAction" of et_CHOOSE_FROM_LIST fires too early and B1 puts the chosen ItemCode into the matrix later. Is any event fired after that?
Hi Anton,
The "After" ChooseFromList does get you the selected items (if there are any). You just have to retrieve them from the ChooseFromListEvent object.
ChooseFromListEvent chooseFromListEvent = (ChooseFromListEvent) pVal;
if (chooseFromListEvent.SelectedObjects == null) return;
if (chooseFromListEvent.SelectedObjects.Rows.Count == 0) return;
int rowCount = chooseFromListEvent.SelectedObjects.Rows.Count;
for (int i = 0; i < rowCount; i++)
// do what you need
pVal is the ItemEvent object that you get from the event.
Good luck.
Best regards,
Pedro Magueija
Similar Messages
-
How to change the url of "Add New Item" of a particular list in SharePoint 2013???
Hi Guys,
How to change the url of "Add New Item" of a particular list in SharePoint 2013???
I need to redirect it into the page where I have created my Visual web part.
Please suggest
Warm Regards,
Tony JoyHi,
There are multiple ways to change the form url like javascript, SharePoint designer, custom code, editing default form to have custom web part etc, Please follow the url below that describe diffent methods and steps
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/ec2769a0-683c-4023-8804-b596e4f92a3a/change-default-forms-on-custom-list?forum=sharepointcustomizationlegacy
Hope it helps!!!
Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. Thanks, Ajeet -
Approval procedure for the creation of a new item
I would like to have an approval procedure for the creation of new items. In that when one gets added, it gets placed on hold immediately and an alert gets sent to a manager.
thx, RichardThe solution would be the combination of SBO_SP_TransactionNotification stored procedure allowing only for some authorized persons to add an item with not On Hold status, and an alert to the authorized persons.
-
Syncing iPhone for the first time- all new items deleted & replaced w/ old.
Somebody, please help me. I've been looking through these threads for the last hour now and can't find any answers to my question.
I recently had my iPhone stolen and had to buy a new one. I bought the iPhone 4 and tried to sync it to my computer and recover old contacts. When I was prompted to sync to old phone or set up as a new phone, I chose to sync to my old phone, hoping to get some of the old pictures/contacts/etc back.
Unfortunately, I had NOOO idea it would delete all of my new pictures/contacts/etc. I thought it would be adding to, not replacing. My pictures are the most important to me, because I just had my 21st birthday and took over 200. Is there ANY way to get them back?
I never synced my new iPhone, so I don't think there is a back-up for it, as this was the first time I tried to set it up on the computer. (I got the phone two days ago.)
Please tell me there is a way. I don't want to lose all of those memories.Hey:
IMHO, There MIGHT be a chance ....
There are a numer of "data recovery" tools out there that might help.
This article is a nice summary:
http://forums.cnet.com/7726-7588_102-3223036.html
Since the iPhone is treated as an external drive by a Window computer this might work ... If it wasy my 21st birthday I'd sure give it a go...
I have personall used the recovery tools used by DiskInternals with good results, but never on an iPhone. Disk internals has good e-mail tech. support, send them an e-mail describing your problem and to NOT take any new pictures until you either recover what you can or give up! -
Process open items: how to set defaults for the additional selections
Hi FI experts,
Can anyone tell me if it is possible to set defaults for the additional selections in the processing of open items.
I am using transaction F-04 (or F-06 or F-07) to post with clearing.
When processing the open items I can use additional selection parameters. In my case I need to use the document type. I would like to save this selection as a default but this doesn't seem to be possible.
1. it is not possible to save a variant for the processing of open items
2. I can not create a variant transaction (with trx. SHD0) for F-0x since this is only possible for dialog transactions
Do you see another way to store defaults for the additional selections in open item processing?
Thanks a lot.
DimitriHi,
When you create a transaction variant from FB05, then also you will not able to default the value for additional selections variable. Hence SHD0 is not going to help.
As said above, either you can change the additional selection screen parameters, but here again you can't default the value. You can only reduce the number of entries on the screen.
Else you can create a custom transaction code by copying the standard. Even SAP recommends to create custom codes from standard tcode for clearing purposes depending on requirements.
Please check this link:
http://help.sap.com/saphelp_erp60_sp/helpdata/EN/41/37b8e7455b11d182b40000e829fbfe/frameset.htm
In the above link, in navigation choose clearing -- Specifications for processing open items
If it is a custom transaction then you can default document number.
Regards,
Ravi -
DVWP with Multiple Item Form duplicates values on the screen on new item
Hello,
I have created a custom page in SPD called Submit.aspx. I have 3 custom lists (A,B and C). On that page I have two list webparts (from list A and B) and one multiple item form DVWP (list C). I have edited the list webparts to display the Add new item link only.
Sometimes when a user adds a new item numerical values are duplicated on the screen from the item below (see the screenshot). It happens only on the screen. When a user saves the form or refreshes it the values disappear. How can I fix this to not duplicate
the values when a new item is created. Projects on the list are sorted alphabetically. The item before the last one on the screenshot is the new item that has identical values as the last item. On save or refresh duplicate values
disappear from a new item.Hi LetMe, it would be difficult for anyone to help you with the amount of customization you've done, unless you provide the code for us to check.
cameron rautmann -
Automate Creation of new items in EBS
Hey everyone -
Just a question ,
we want to automate creation of new items in our system.
Our view is something like -
1. user GUI to request a new item, according to predefined templates.
2. Users fill a few fields of information.
3. Item manager gets notified and approves item is needed.
4. Automation to run batch and create everything relevant. (org assignment, item KFF, category assignments, BOMs etc). As much automation as possible, we can map template behaviour, variety is small.
I was wondering if there is any product supporting such behaviour.
I looked into Oracle's APC, and it seems like it doesnt do enough. Besides as far as I noticed it relies mostly on Item Catalog attributes which we don't. Also Im not sure if this product is "alive" coz oracle bought AGILE for PLM.
Does anyone know of a product that supports creation of new items and is flexible to fit our needs?
We want to make sure we're not missing something before we develop custom code for that.
Thanks,
AaronHi,
This is prom PIM to Oracle
I have done an interface which creates an item in master and child .Which assighns category set on iots level controls .It inserts item into all active subinventories.
It notifies the end user with email any item already exits and error .
Regarding templates.
it assigs compatible templates at master and org leve.These are predefined and are not validated in program
Edited by: Sankuratri on Apr 5, 2009 10:02 PM -
Capturing Detail Items for a Related List in a New Item Form
I have a simple (ha!) requirement to capture Purchase Requests with the individual line items being captured in a separate List. I have been using InfoPath, but will consider ANY solution at this point.
If I have an Edit Item Form, I can have a Data View (LIst View Web part) that will display all related items in my Details List (using a filter on the Parent ID). I can even add a Data Form Web Part below this to allow for the entry of a single itme
at a time, and make the lookup field of the new item default to the ID of the parent item.
All well and good for the Edit Item. But if I want to do the same on my New Item Form, I am up the proverbial without a paddle because I do not have access to the ID of the Parent List Item (that is still being captured).
So, using any of the standard SharePoint technologies (except Visual Studio), how can I create a New Item Form, in which I can enter items for a related details List and see those detail items already entered, all while capturing the original form?Hi Mike,
According to your description, my understanding is that you want to get the details of the related items in New Item form.
I recommend to edit the new item form in InfoPath and use repeating table to display the related items based on the value in the lookup column.
Here are the detailed steps:
Edit the new item form(listB for example) in InfoPath and then add the related list(listA for example) including all the details you need as external data source to the form.
Choose the secondary data source added in step1 in Fields panel and then expand dataFields, then right click d:SharePointListItem_RW and select Repeating Table to insert the secondary data source added in step1 as repeating table to the form.
Right click d:SharePointListItem_RW in the Fields panel and select Rules, then click New and select Formatting in Rules panel.
Click None under Condition in Rules panel, then select ID field in the repeating table in the first box, select is not equal to in the second box, then choose Select a field or group in the third box and select Main under Fields, then click the lookup field
in the form and then click OK.
Select Hide this control under Formatting in Rules panel.
Thanks,
Victoria
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Victoria Xia
TechNet Community Support -
Edit Add New Item link in certain view of list in SharePoint Programmtically
this is my requirements
i have one list called List 1 and two content types on it
CT 1 and
CT 2 and create two views on the list
View 1 to display items of CT 1
View 2 to display items of CT 2
the creation of list and views is done via XML
now i need to change the URL of add new item link in every view to open its content type, i.e. when i was on view 1 i click on add new item, it will open new item form of CT 1 and hen i was on view 2 and click on add new item, it will open new item form
of CT 2
i do a lot of search on the internet but get the following code but it doesn't work for me, i already wrote it in event receiver
SPSecurity.RunWithElevatedPrivileges(delegate()
SPWeb web = properties.Feature.Parent as SPWeb;
web.AllowUnsafeUpdates = true;
SPList contractList = web.Lists.TryGetList("Contract");
SPLimitedWebPartManager webpartManager = web.GetLimitedWebPartManager("Lists/ContractList/SICET%202A%20Contract.aspx", PersonalizationScope.Shared);
foreach (System.Web.UI.WebControls.WebParts.WebPart item in webpartManager.WebParts)
if (item.GetType().Name == "XsltListViewWebPart")
XsltListViewWebPart listViewWebPart = (XsltListViewWebPart)item;
Guid guid = new Guid(listViewWebPart.ViewGuid); // get the view details which is applied to web part
SPView sicet2AView = contractList.Views[guid];
sicet2AView.GetType().InvokeMember("EnsureFullBlownXmlDocument",
System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.InvokeMethod,
null,sicet2AView,null);
PropertyInfo nodeProp = sicet2AView.GetType().GetProperty("Node", BindingFlags.NonPublic | BindingFlags.Instance);
XmlNode node = nodeProp.GetValue(sicet2AView, null) as XmlNode;
XmlNode toolbarNode = node.SelectSingleNode("Toolbar");
//sicet2AView.ViewFields.DeleteAll();
if (toolbarNode != null)
string toolbarType = toolbarNode.Attributes["Type"].Value;
string linkText = "abdeen";
toolbarNode.Attributes["Type"].Value = "Freeform";
XmlAttribute positionNode = toolbarNode.OwnerDocument.CreateAttribute("Position");
positionNode.Value = "After";
toolbarNode.Attributes.Append(positionNode);
//toolbarNode.InnerXml = @"<IfHasRights><RightsChoices><RightsGroup PermAddListItems=""required"" /></RightsChoices><Then><HTML><![CDATA[ <table width=100% cellpadding=0 cellspacing=0 border=0 > <tr> <td colspan=""2"" class=""ms-partline""><IMG src=""/_layouts/images/blank.gif"" width=1 height=1 alt=""""></td> </tr> <tr> <td class=""ms-addnew"" style=""padding-bottom: 3px""> <img src=""/_layouts/images/rect.gif"" alt=""""> <a class=""ms-addnew"" ID=""idAddNewItem"" href=""www.facebook.com""]]></HTML><URL Cmd=""New"" /><HTML><![CDATA["" ONCLICK=""javascript:NewItem(']]></HTML><URL Cmd=""New"" /><HTML><![CDATA[', true);javascript:return false;"" target=""_self"">]]></HTML><HTML>" + linkText + @"</HTML><HTML><![CDATA[</a> </td> </tr> <tr><td><IMG src=""/_layouts/images/blank.gif"" width=1 height=5 alt=""""></td></tr> </table>]]></HTML></Then></IfHasRights>";
toolbarNode.InnerXml = @"<IfHasRights><RightsChoices><RightsGroup PermAddListItems=""required"" /></RightsChoices><Then><HTML><a class=""ms-addnew"" ID=""idAddNewItem"" href=""www.facebook.com"">Test</a></HTML></Then></IfHasRights>";
sicet2AView.Update();
//listViewWebPart.ViewGuid = sicet2AView.ID.ToString("B").ToUpper();
//listViewWebPart.Visible = true;
webpartManager.SaveChanges(listViewWebPart);
web.Update();
but it doesn't work, my first trail is changing the text of the link then go to change the link any help plz
Mohamed AbdeenHi,
The “Add new item” button will redirect users to add new item with the default Content Type of the current list.
So a workaround can be like this: We can change the default Content Type of this list every time when users open this list view page, then the “Add new item” button will work
as you expected.
Here is a link with code demo about how to programmatically set a content type as default content type in a SharePoint 2013 List:
http://www.ashokraja.me/tips/How-to-programmatically-set-a-content-type-as-default-content-type-in-a-SharePoint-2013-List
We can put the code into a Visual Web Part and add it into your two views, then when users open a list view page, the code will be executed to change the default Content Type
of the current list.
To develop a custom web part, you can take a look at the links below with steps in detail for a start:
Creating Web Parts for SharePoint
http://msdn.microsoft.com/en-us/library/ee231579.aspx
SharePoint 2013 Create a Visual Web Part
http://raquelalineblog.wordpress.com/2013/04/25/sharepoint-2013-create-a-visual-web-part/
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Patrick Liang
TechNet Community Support -
Additional fields for line item display for Vendor Accounts
Hi,
The additional fields for line item display have been defined for the vendor accounts. I am able to see the additional fields in SAP 4.7 system but not in ECC 6.0.
Could you help me to know how the same will be displayed in ECC 6.0 system.
ThanksIn SPRO, Vendor Accounts -> Line Items -> Display Line Items -> Define Additional fields for Line item display, the fields for Check number from (PAYR-CHECF) and Tax Jurisdiction (BSEG-TXJCD) have been defined.
When I am executing Vendor Line Item display (FBL1N), I am not able to select these fields for defining a layout. Could you please let me know, how I will get these fields in FBL1N.
Thanks -
How to define new item category for mm purchasing document
Hi,
pls let me know the path for defining new item categories for MM Purchasing document
thanks,Hi,
Item category you are talking abt , you won't be able to create that as it controls the below item level items of your PO tcode screen .
Thanks
Dipak -
MI02 : new items for a document with item already counted
Dear.
I try to insert new items for an inventory document.
This document have items already counted.
The system send this error message M7706 : Items already counted (no new items possible).
Do you know a solution to avoid this error message ?
Thanks.M7706 is a hard coded error message, you cannot control it via message attributes.
What you can do is to do a re-count via transaction MI11 with reference to this inventory document. In this case you will be able to add new items, however, you have to enter the counted amounts for the existing items again.
But in my opoinion it's easier to create a new PID as suggested by Jurgen. -
Copying one item and creating new item - Sales Order
Hi Guys,
I have a requirement where one item in sales order have to be copied within the same order as new item and the only change is site.
For example Sale order 1 - line item 10 - Material A site XXXX
Requirement Sales order 1 - line item 20 - Material A site YYYY
Now the sale order 1 will have two lines for the same material but the site is different.
Is there a possibility to do the same.
Regards
AtulHi,
If i am not wrong, i assume you are using site instead of plant. If it is plant , then "yes", we can have a order with same material being line item 10 and 20 with different plants. Reg delivery, if the plants are configured to a same shipping point then you will have one delievery. if the plants are configured for a different shipping point , then delivery will be split up.
Reward if it helps,
Thanks & regards,
CLN -
Define new Item cetogories in purchasing
Hi All
i want to define new item cetogories in purchase document.
that is we are having the item cetogories like D - Service , L- Subcontracting.
Where SAP is defined and what is the t - code.
Regards
M S KHi,
"Please note that the table of item categories is an SAP system table.
Its content must not be changed by customers.
Even in change mode, you can only display the characteristics of the item categories."
You may read this note in SPRO node MM >> Purchasing >> Define External Representation of Item Categories
However you can change the external representation in the above node
for example standard setting for Service is "D".... you can change to any other single letter alphabet of your choice (excluding the ones that are already used).
Regards, -
Change E-mail content for collaboration New item
Hello,
We are e-mailing collaboration News items to our users. When we use "Send To" option to e-mail News as link, there are 2 default links in the e-mail. One for the news itself and the other for the Details on this News item. How can I modify the content of the e-mail so that there is only 1 link to the News item and Details link is disabled?
Thanks,
AlexI was able to identify xml form that is being used in Send To iView. The form name is SendTo.xml. The iview has the following setting:
com_sapportals_wdf_ConfigFileName: SendTo.xml
I tried to find SendTo.xml in KM, but I was not able to do it. Does anyone know where it sits in KM?
I am not sure if it is helpful, but the Code Link property has value com.sap.netweaver.coll.appl.ui.gw.SendMail.
Thanks,
Alex
Maybe you are looking for
-
Time machine backup seems to only have a Sparsebundle folder
I have had my MacBook for a couple of years and have only just got round to backing it up. I set off Time Machine lat night for a 200Gb backup. This morning I checked it and the Time machine backup seems to only have a Sparsebundle folder of 1000s of
-
How to use field 'HIER_ID' to determine price in S/O?
I want to use field 'HIER_ID'(hierarchy) to determine price in S/O but I don't know what value I should maintain in pricing master data. It should be 'HIER_ID' = 01 or 02 or 10 or else????? I don't know.
-
How to start/stop 2 parallel while loops
My question might be simple to answer for experts, but as a Labview beginner would be great to receive your help: I hav a VI with two parallel while loops. The first loop runs in a tact of 100 ms to aquire voltage, speed and to output a speed setpoin
-
I was trying to take planning run for several plants, made necessary config in spro, but unable to generate plan orders, when i taking planning run through MD02, Plan order for material is generated, Kindly help me to find where i have missed the set
-
I cannot log in to LINKED IN via firefox . however I can with IE8. why? also when I click teh Firefox wont open pages that other pbrowsers will I get a firfox cannot open the page message. I hope this is a joke!!! Hah hah