How to Create a Auto Generated number with some preceding text in Sharepoint 2010
I am trying to create a auto generated number field in Sharepoint 2010 list item. My requirement is to have the following format number generated when new request is created in Sharepoint using form. Auto generated Ticket ID should be in the following format
"IR13000" "IR13001" "IR13002"....... Please let me know how to get this done. I tried to use combination of default ID and Characters but its not working for new requests, its only reflecting for existing uploaded requests. I
am trying this for taking up Ticket requests by filling up some fields in the form. Any quick help is much appreciated.
Thanx
Here are the steps:
1 - Open your SharePoint site in SP Designer 2010.
2 - Click Workflows and add a List workflow. Associate this workflow on the list where you want the Random Text to be generated.
3 - Inside the workflow editor, select the Action "Update list item"
4 - Select 'Current Item'.
5 - Click Add.. and select the field which needs to be updated with the Random Text. Make sure this column is not of type "Calculated" type, otherwise you won't see it in the list of the fields within the workflow.
6 - Click "..." button in the next textbox which will open String Builder dialog box.
7 - Type IR and then click 'Add or Change Lookup and select ID column from "Field from source". Hit OK.
8 - It should look like IR[%Current Item:ID%]
9 - Hit OK.
10 - Save and publish the workflow. (Please note that currently this workflow is not set to auto run on creating new items. That's because we want to test it at this point of time).
11 - Go to your list in SharePoint and create a new item. After creating, select the item and click Workflows and then run this workflow.
12 - You should be able to see the text "IR1" in the designated column.
13 - Once you see that it's working, go to SPD and set the workflow to run automatically on creation of the new item. Save and publish and then return to your list in SharePoint.
14 - Create a new item there and you should see the Random value in the column.
15 - You will also see the column in the New form. In order to remove it, go to List settings > content types > Item content type > and select Hidden for this column so that it doesn't showup in any form.
Try it and let me know how it goes.
Thanks,
Ashish
Similar Messages
-
Cross Site collections navigation with publishing feature enabled into sharepoint 2010??
Hi,
Is it possible to cross site collection navigation in share point 2010 with publishing feature enabled? Right now we have a site collection with all the departmental sites within it. We are trying to create separate site collection with separate content
database for each department for better management. But problem with Global navigation as OOB does not provide cross site collection navigation functionality, So looking for multiple site collections or navigation for more than one site collection under single
umbrella. i was able to get the cross site collection navigation in my development env without publishing feature enabled using below link. But problem with production environment, as all the site collections and sites are publishing feature enabled. how i
am gonna do cross site navigation with publishing feature enabled?
http://www.itsolutionbraindumps.com/2011/10/sharepoint-2010-cross-site-collection.html
Any link or suggest will be greatly appreciated !Hi,
According to your description, my understanding is that you want to create cross site collections navigation with publishing feature enabled in SharePoint 2010.
Publishing sites (sites with publishing infrastructure) have their own navigation API, and it is much more complicated task to preserve cross-publishing sites navigation.
We need to implement our own custom navigation provider.
Please refer to the link below about the cross site collections navigation with publishing feature enabled:
http://sadomovalex.blogspot.com/2010/12/cross-site-and-cross-site-collection.html
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
Auto increment number with leading zeros
hello,
i have data column (serial number) that auto generate from script component, i'm using counter +1 and it successful store the number to my db. but the problem is there any idea to store the number to 00001 rather that 1.
im using this method in my script component
dim counter as integer = 0
counter =counter + 1
row.NoSerial = counter
TQWhy should you send it through the file? WHy not simply create a calculated column based on identity field or sequence based field (if 2012 version and above) in the destination table and ignore it from the file altogether. ANyways its going to be
a sequential auotogenerated value isnt it?
http://www.sqlteam.com/article/custom-auto-generated-sequences-with-sql-server
If you want to bring it as 00001 etc you need to make it as varchar and use derived column expressions in SSIS as source is text file.
I would prefer doing this in sqlserver if its just a sequential number and has no direct relationship to the incoming file data fields.
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Auto Generated No with Date and year
I m using this method to create a auto generated no.
in pre-insert trigger
declare
v_l varchar2(10);
begin
select max(doc_no) into v_l from Table ;
if v_l is not null or v_l<>0 then
:table.doc_no:= v_l+1;
else
:table.doc_no:=1;
end if;
exception
when no_data_found then
:table.doc_no:=1;
end;I want to generate auto generate no|| month||year
please guide meKame wrote:
I want to generate auto generate no|| month||year
please guide meYou can get an auto-generated number using SEQUENCE in Oracle.
Do you have a specific date column in your table from which you need to get the MONTH and YEAR Data?
To get MONTH, you can use something like:
TO_CHAR(your_date_column, 'MONTH')To get YEAR, you can use
TO_CHAR(your_date_column, 'YYYY')your_date_column should contain data of date datatype.
Examples:
SQL> CREATE SEQUENCE SEQ
2 MINVALUE 1
3 MAXVALUE 999999999
4 START WITH 1
5 INCREMENT BY 1
6 /
Sequence created.
SQL> SELECT SYSDATE FROM Dual
2 /
SYSDATE
10-JUN-09
SQL> SELECT TO_CHAR(sysdate, 'MONTH') FROM Dual
2 /
TO_CHAR(SYSDATE,'MONTH')
JUNE
SQL> SELECT TO_CHAR(sysdate, 'YYYY') FROM Dual
2 /
TO_C
2009
SQL> SELECT TO_CHAR (SEQ.NEXTVAL)
2 || TO_CHAR (SYSDATE, 'fmMONTH')
3 || TO_CHAR (SYSDATE, 'YYYY')
4 auto_gen
5 FROM DUAL
6 /
AUTO_GEN
1JUNE2009
SQL> /
AUTO_GEN
2JUNE2009
SQL> /
AUTO_GEN
3JUNE2009
SQL> /
AUTO_GEN
4JUNE2009
SQL>Hope this helps.
Regards,
Jo
Edit: Corrected Query -
How to create table maintainenece Generator
hi all
I dont know how to create table maintainence generator after creating the table.
I have created the table.
After that how to maintain the table.
What is the use of table maintainence generator.
ThanksHi Muthu,
Through table maintenance you can direct add new entries in your table. For that u need to follow some steps.
Step1 : Click Delivery and Maintenance tab in your table and select "Display/Maintenance Allowed"
Step2 : Utilities--->Table maint generator
Step3 : Give Authorization Group - &NC&
Step4 : Function group - Any ( You can give ur table name also ) This Function Group will genrate automatically.
Step5 : Maintenance type - Select first radio button "One Step"
Step6 : Maint. Screen No. - Overview screen as 1
Single screen as 0
Step7 : Click on Create button on application tool bar
Step8 : just save in your package.
Step8 : Create transaction code for the same . Environment----->transaction code
Step9 : Give any t.code name and click on create button. You will get a popup where you have to choose last radio button "Transaction with parameter"
Step10 : Give the transaction name - SM30 and check Inherit GUI Attribute"
Step11 : GUI Support - check all the check boxes.
Step12 : Name of screen field Values
VIEWNAME - Table name and
UPDATE - X
Finally u can this t.code and add new entries in ur table directly.
Regards,
Amit Nanda
SAP Consultant -
How to create tcode for modulepool program with selection screen?
hi,
How to create tcode for modulepool program with selection screen?
thanks,
sagarHi,
We need to goto SE80.
In our program we right click on object name and goto create
-> transaction. Enter the module pool program and screen number and save and activate.
Or by SE93 also we can create a transaction code for our program.
Hope ths helps.
plz reward if useful.
thanks,
dhanashri..
Edited by: Dhanashri Pawar on Jul 22, 2008 8:29 AM -
How to create a custom function module with the records in SAP R/3?
Hi All,
How to create a custom function module with the records in SAP R/3? Using RFC Adapter I have to fetch the custom function module records.
Regards
SaraHi
goto se37...here u need to create a function group... then u need to create a function module. inside assign import/export parameters. assign tables/exceptions. activate the same. now write ur code within the function module
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm
Look at the below SAP HELP links, These links will show you the way to create a Function Module
http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm -
My 3rd iphone is a 3GS. I did not buy this one from the apple store, how do I register this serial number with my apple account? it is already sync'd and it and will preform every function except email to my home computer. It says apple ID disabled, also will not update my apps, same promt apple id disabled.
anyone know where I can go to register this phone? Thankshttps://register.apple.com
-
How to Create an Input Schedule Comparison with Data Using EVDRE
Hello,
I try implement the scenario described in "How to Create an Input Schedule Comparison with Data Using EVDRE".
Once I am using the "Insert Function" from the panel and selecting the EVTIM function Excel crashes (see page 8 How to paper).
Systems:
BPC 7.0 NW SP02
Office 2007
BPCADminClient and BPCOfficeClient up to date
Have anyone a solution?
Thanks
OktayHi Oktay -
This function works in my BPC70NW SP02 system. Your issue might be that you are trying to access a TIME member that does not exist. Please make sure the offset value is a valid dimension member.
I can confirm that EVTIM does allow the offset for base members (such as 2009.MAY) as well as parent nodes (such as 2009.Q1 or 2008.TOTAL)... BUT...the offset result of the EVTIM function needs to be a valid dimension member!
Regards,
Sheldon -
How to create user editable Crystal Report with dynamic dataset
What I would like to achieve:
A program loads a report in runtime updates list of database fields (possibly includes sample data), open report in "Crystal Reports 2011" (or 2008) where user customizes report and saves it. Later on the program loads the report, fills actualized data and displays it in .net report viewer.
What I do:
CrReport = New CrystalDecisions.CrystalReports.Engine.ReportDocument
CrReport.Load(TemplateFilename)
Dim Results As DataTable
DataTable is filled from a database
CrReport.SetDataSource(mResults)
CrReport.SaveAs(NewReportPath, True)
The NewReportPath is opened in the default program.
What are the problems
The report is open in preview mode (not in design).
When the field is added to the report the designer asks for XML datasource on preview.The short answer is that it is not possible. I broke the question to other two: How to save a report that it opens without preview? and How to create user editable Crystal Report with dynamic dataset, where it is possible to find details. Key answer is Re: How to create an editable previewable report?
-
How to creat the Varient for 1099MISC With Holding Tax
How to create the Variant for 1099MISC With Holding Tax ?
HI,
please follow the below steps to create variant at report.
tcode se38
report RFIDYYWT
pass all the parameters
press save icon
give variant name
retrive the variant in report
tcode se38
report name RFIDYYWT
press : shift + F5
or get varinat icon.
I hope above will resolve your issue.
Regards
Madhu M -
How to create table.maint.generator and enduser should use using ztcode
Hi,
can any one guide me how to create table maintanence generator and after creating,enduser must use using ztcode.
any help can be appreciated.
Thanks & Regards,
Sandeep.Hi,
Table Maintenance generator is required to do Manual entries in the Table. If the requirement is to update the table only programmatically and not manually then table maint. generator is not required.
Manual entries in table can be maintained ( New record can be inserted / existing can be modified ) using transaction SM 30, if the table maintenance for the table is generated.
How to activate Table maint.
Goto SE11 and open the table.
Click UTILITIES -> Table Maint. Generator, Enter the details and click on Save. Then activate the table.
chk a sample 1.
refer.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20implement%20events%20in%20table%20maintenance.doc
some more helps
Check out this thread:
table maintenance
http://help.sap.com/saphelp_erp2005/helpdata/en/a7/513520407a11d1893b0000e8323c4f/frameset.htm - a link for basics on Table Maintenance.
Also, Check out this weblog on table maintenance:
/people/sudheer.cheedella/blog/2006/02/20/extracting-data-in-table-maintenance
<b>how to create a a T-code of that</b>
Go to se93.
Then create the new T.code.
Under that select parameter Transaction.
Then give the sm30 in the t.code in default values tab.
check the checkbox skip initial screen.
in classification tab.
click checkbox inherit gui attributes..
Now below..
In the default values..
WRITE
viewname = give ur table name.
show = X
save and check it once...
now u can able to call ur table through ur new t.code...
rgds
anver
if hlped pls mark points -
How to create new view without interlinking with gantt chart or resource views
ok clear
one another question
In msp how to create new view without interlinking with gantt chart or resource viewsHi Shiv PMC--
I splitted your question above in another thread in order not to have a huge thread with many topics in it.
That being said, I'm not sure to understand. A view is just a manner to display MS Project data with columns. A view can have a table with column (left part) associated with a Gantt chart. It can also just contain a table with no Gantt chart (like the task
table) or a table with a timephased grid (resource and task usage).
Please give us more information, maybe with a concrete example so we can help you.
Hope this helps,
Guillaume Rouyre, MBA, MVP, P-Seller | -
Hi...
3....how to create table maintanence generator for a z table and how to use that for transfering a selected records to one server to another server.
thanks and regards,
k.swaminath reddyHi,
Table maintanance Generator is used to manually
input values using transaction sm30.The Table Maintenance Generator is used to create table maintenance program to add, modify or delete records in the database table. This can be accessed using transaction SE54 or in SE11 using the menu Utilities->Table Maintenance Generator
<b>
Follow below steps</b>
go to se11 check table maintanance check box under
attributes tab
utilities-table maintanance Generator->
create function group and assign it under
function group input box.
also assign authorization group default &NC& .
select standard recording routine radio in table
table mainitainence generator to move table
contents to quality and production by assigning
it to request.
select maintaience type as single step.
maintainence screen as system generated numbers
this dialog box appears when you click on create
button
save and activate table
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
One step, two step in Table Maintenance Generator
Single step: Only overview screen is created i.e. the Table Maintenance Program will have only one screen where you can add, delete or edit records.
Two step: Two screens namely the overview screen and Single screen are created. The user can see the key fields in the first screen and can further go on to edit further details.
please check the link for getting information about table maintenance generator !
https://www.sdn.sap.com/irj/sdn/advancedsearch?query=use%20of%20table%20maintenance%20generator&cat=sdn_all
http://www.sapdevelopment.co.uk/tips/tips_tabmaint_tcode.htm
http://www.sap-img.com/abap/create-a-table-maintance-program-for-a-z-table.htm
Regards,
Priyanka. -
How to create labeled table of Content with expand and collapse
Hi All,
Can somebody help me how to create labeled table of Content with expand and collapse as example given below:
User1
Template1
Template2
User2
+
User3
Template1
Template2
Like when we see expand (+) and collapse (-) button when we click on 'about this page' link.
Thanks
BhupendraHi,
Tou can use Table inside table to show the details this way but I'm not sure about Expand/Collapse.
Expand/Collapse are part of HGRID.
I think we can develop this functionality with little manipulation.
Regards,
Reetesh Sharma
Edited by: Reetesh Sharma on Jun 28, 2010 4:56 AM
Maybe you are looking for
-
Enhancement spot not visible in debug mode
Hello experts, I made changes in standard implicit enhancement. save and activate changes with req number. But still in Red color. While debugging I cant see the enhancement point. in function module MATERIAL_UNIT_CONVERSION, ENHANCEMENT-POINT BATCH_
-
Bug? Playlists change sort after sleeping.
It's only a minor annoyance, but I've noticed that the iPod normally sorts the playlists smart playlists first, then regular playlists. Otherwise they're in alphabetical order. This is the same order that they're in in iTunes. However, after a playli
-
WWhat does the red circle with a number in it mean next to my purchased books?
-
Adobe photoshop Element 8 Tech support
tell us if you had similar experience I had element 6 and upgraded with 8 with windows XP now I got a new computer with windows 7 and tried to install the 8 to my new computer everything went ok till I found out I could not use the Adobe e-mail to se
-
Hi Experts , We have two prompt in our report. From Date and To Date. We need to make sure that From Date is smaller than To Date For example From Date 01-01-2009 and To Date 01-04-2009 Is there any way to validate that From Date will be smaller than