CRM 2013 On-Premise How to implement sequential numbering for records?

Hi All,
I don't know if someone could advise me on the following.
I have two entities, Transport Routes and Stops with a 1:N relationship. I want to auto-number the Stops records sequentially (1, 2, 3, 4, etc.)  but want to start at 1 within each Transport Route. How should go about it? Is it possible to achieve this
with JS, or would that be a bit clumsy and would you recommend a plugin instead?
I have an auto-numbering solution (AdvancedCRMAutoNumber from Xbitz) but that will not restart the counter position to 1 for each Transport Route - at least to me knowledge it cannot.
Would appreciate any help!
Thanks, Viktor

hi Victor,
I think you can write plugin by following below steps.
-->Create one field in the Transport route entity to store the sequential number.
-->As soon creating the Transport stop record get the sequential from the Transport route and create the sequential number for the transport stop.
-->Update the Transport route record by incriminating the sequential number field.
So every Transport route record will have sequential number which we can start with 1 as based on the stops we can increment the number.

Similar Messages

  • Create sequential numbering for chapters in Pages

    Can anyone tell me how to create sequential numbering for my 'scenes' or 'chapters' when writing scripts in Pages.
    I need to have them set up, so if for example, I have...
    Scene 01
    Scene 02
    Scene 03
    and down through scenes to say...
    Scene 52
    But I write another new scene in between scene 02 and 03... I need all the other scne numbers to change automatically below the new scene, instead of me having to manually go through and change every single scene number...
    How do I do this?

    Thanks... this is a reasonable compromise, which I have already done.
    The problem with script writing is that the Scenes are generally headed like this...
    Scene 22: Int - Dinning room - Night
    Then they might have a subtitle, which is a short descriptive of the scene, such as...
    Scene 22: Int - Dinning room - Night
    (Xmas Turkey dilemma)
    So, it could work as you suggest, but it is by far a perfect formula, I am dumbfounded as to why 'Pages' doesn't have this simple function, when just about every other word processing program does. Final Draft is an industry standard for script writing, but I actually prefer Pages, I have a lot more creative control with formatting, except for this one vital function... darn!
    Thanks for you suggestion Peter,
    Cheers

  • Enable document management for entities through PowerShell script (Dynamic CRM 2013 on premises)

    Hello,
    Can anybody let me know if it is possible to enable document management for entities through PowerShell script for Dynamic CRM 2013 on premises.
    I want power shall script where user will give the entity (Accounts, Contacts etc.)   for the CRM.
    The script should enable the document management for the entity.
    Thank you for your support.

    Hi Jeff,
    Any updates? If you have any other questions, please feel free to let me know.
    A little clarification to the script:
    function _ErrObject{
    Param($name,
    $errStatus
    If(!$err){
    Write-Host "error detected"
    $script:err = $True
    $ErrObject = New-Object -TypeName PSObject
    $Errobject | Add-Member -Name 'Name' -MemberType Noteproperty -Value $Name
    $Errobject | Add-Member -Name 'Comment' -MemberType Noteproperty -Value $errStatus
    $script:ErrOutput += $ErrObject
    $errOutput = @()
    _ErrObject Name, "Missing External Email Address"
    $errOutput
    _ErrObject Name "Missing External Email Address"
    $errOutput
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support

  • How to implement Ajax toolkit for SharePoint2013?

    Hi All,
    How to implement Ajax toolkit for SharePoint2013?

    Hi Sam,
    Based on your description,
    I can suggest as follows:
    Use the “SharePoint AJAX 3.5 for 2010 and 2013”
    solution.
    Download URL:
    http://sharepointajax.codeplex.com/
    2.    
    Use the Ajax Control Toolkit with ASP.NET 4.5.
    Download correct version of Ajax Control Toolkit.
    http://ajaxcontroltoolkit.codeplex.com/releases/view/109918
    Add AjaxControlToolkit.dll reference to your project.
    Add Ajax Control Toolkit ScriptManager in master page.
    Register Ajax Control Toolkit namespaces in SharePoint package Designer.
    More information:
    http://timscyclingblog.wordpress.com/2013/03/22/ajaxcontroltoolkit-version-7-0123-with-net-4-5/
    http://sampathnarsingam.blogspot.in/2012/05/how-to-make-ajax-control-toolkit.html
    Please inform me freely if you have any questions.
    Thanks
    Qiao Wei
    TechNet Community Support
    Is it possible to use version AJAX
    Control Toolkit .NET 4.5 along with SharePoint 2013?
    As far as I know with SharePoint we can use only version AjaxControlToolkit(3.0.30930.0). Isnt it?

  • How to implement Change pointers for Purchase order - ME22N - Custom Fields

    Hi Experts,
    Can you please tell me how to implement - Change Pointer for Custom fields in IDOC.
    I am working on IDOC - For purchase order - acknowledgements - in custom screen/tab in ME22N.
    Everything is working fine according to my requirement.
    All i need to know is the process of - Creating/Change - Change pointers for Custom fields.
    1.How to implement change pointers for custom fields.
    2.Can we maintain - Change Document - for custom fields at data element level?
    P.S. - I have browsed many previous - forums before posting a new discussion.
    please share your inputs...
    explaining how to create/implement - change pointers for custom fields will help me .
    Regards,
    Karthik Rali.

    Hi,
    To maintain Change Document for custom field:
    1. Check if "Change document" checkbox is set in data element.
    2. Find Change Document Object for transaction.
       You can use SQL trace - ST05.
       Look there for line with table CDHDR and statement insert values
       (for example for transaction KA02 Change Document Object is KSTAR)
    3. Regenerate update program for this Change Document Object in transaction SCDO
    Change documents for z-fields schould be generated.
    I am not sure about change pointers but they are configured somehow in BD61 and BD50.

  • Sequential numbering for pdf form

    I am trying to find out how to have sequential numbering of a pdf form that will be accessible on a shared drive. I need a new number assigned each time it is opened. Please help!

    Hi,
    There is not a way for the person filling out the form to see such a number the instant they fill out the form. If the form e-mails to the respondent with a copy of their responses however, the e-mail includes text indicating which response number their submission has counted up to. (If you also receive e-mail receipts of each submission, you would see the same info.)
    So, for instance, you and the respondent would see, at the top of the e-mail, something like:
    "The form <your form name here> has a new submission.
    Total Responses: 238"
    I hope that helps,
    Brian

  • Alphanumeric sequential numbering for customers in oracle financials

    Hi ,
    Any one please tell me how to setup Alphanumeric sequential numbering for customers in oracle receivables.
    Thanks
    Guru Prasad

    Hi
    It is either manual or automatic, that is defined system options window on AR.
    If it is automatic, than you can define the start point, sequence name is HZ_ACCOUNT_NUM_S, Responsibility Application Developer,
    Application-Database-Sequence
    I didn't try if you can put a non-numeric template.
    For manual assignment, it is 30 characters total.
    Hope this helps.
    Bilal Sarioz

  • Best practice for developing with CRM 2013 (On Premises)

    Hello all.  I'm just starting to work with CRM, and I have some questions that hopefully will be simple for the seasoned developers.  It's mostly just some best practice or general how-to questions for the group.
    - When creating a new Visual Studio CRM Project I can connect to my CRM Instance and create new WebResources which deploy to the CRM instance just fine, but how can I pull all the existing items that are in the CRM Solution into the Visual Studio CRM project?
     Or do I need to export the solution to a ZIP, expand it with SolutionPackager.exe, then copy these into my Visual Studio project to get it into sync?
    - When multiple developers are working on changes is it best to keep everything in a Visual Studio project as I mentioned above, or is it better for everyone to have their own instance of CRM to code with so they can Export/Import solutions as needed then
    these solutions be manually merged before moving into a common Test/QA environment?
    - When modifying the submenu on a CRM form is it suggested to use Ribbon Workbench or is it better/easier to just export the solution, expand it with SolutionPackager.exe,  modify ribbondiff and anything else required for the change, package it
    back up, then reimport to CRM?  I've heard from some that Ribbon Workbench has some limitations, but being green I wasn't sure what those limitations might be or if it'd be best to just manually make these changes.  Or is thre any way to have a copy
    of ribbondiff in Visual Studio and deploy this without having to repackage the Solution and Import in the ZIP?
    I think that's it for now :)  Thanks for any advise or suggestions.  I really want to start learning the in's and out's of CRM and how all the pieces fit together.  Also can someone direct me to some documentation or books that might give
    more insight on developing for CRM 2013 or 2015 (moving to this soon)?
    Thanks for your time.

    Hi Sam
    Also interested in best practice around this area - especially recommended development routes, unit testing, continuous integration etc - it would be great if you posted here if you find any good articles etc. At the moment we tend to just push changes
    onto a live system as and when appropriate and I'd prefer to move away from that...
    Thanks
    Stuart

  • What is the best way for email processing setup on CRM 2013 (on- premises) Set up?

    We need to notify customers via CRM 2013 for some activities.
    I searched regarding email processing set up, and i found two options:
    1. via outlook
    2.  Via Exchange Server.
    Tried through email router (exchange server), but it requires exchange online or SMTP for outgoing profile.
    I  do have exchange on premise setup, I am not sure about SMTP option.
    My queries are:
    > Can we configure Exchange server to work as Exchange Online?
    > what other option, I can try for email Processing?
    looking for your suggestions...
    Thanks in advance!

    If you have Exchange onPremise, then you should be able to use the email router or server side sync in combination with CRM workflows (to generate the email).  This is a fairly common scenario.  You do not need Exchange Online. 
    http://technet.microsoft.com/en-us/library/dn531109(v=crm.6).aspx
    http://technet.microsoft.com/en-us/library/dn531050(v=crm.6).aspx
    http://www.microsoft.com/en-us/download/details.aspx?id=40342
    Regards, Donna

  • How to implement tool-tip for the list items for the Choice column in SharePoint 2013

    I had created a simple list with a "Choice" column, i have three entries in my drop-down, 
    First Entry
    Second Entry
    Third Entry.
    If i select any entries in drop-down and hour-over (Second Entry), a
    tool-tip need need to show. 
    Is it possible? If yes how to implement any help will be appreciated.

    Hi,
    We can use JavaScript to achieve it.
    The following code for your reference:
    <script type="text/javascript" src="/sites/DennisSite/Shared%20Documents/js/wz_tooltip.js"></script>
    <script type="text/javascript" src="/sites/DennisSite/Shared%20Documents/js/jquery-1.11.1.min.js"></script>
    <script type="text/javascript">
    $(function () {
    $("select[title='Choice']").change(function(){
    Tip($(this).val());
    $("select[title='Choice']").mouseout(function(){
    UnTip();
    </script>
    Download wz_tooltip.js:
    http://www.walterzorn.de/en/tooltip/tooltip_e.htm#download
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to Implement search Refiners for social tagging in SharePoint 2013

    Hi Sharepointers,
    Scenario is that when i add tags to Site Collection I can be able to refine that Site url with the tag term in Enterprise Search. I had implemented refined search with Managed Metadata Column in Custom List and Document Library. But now I need to implement
    Refined Search for Social tags. Need Valuble suggestions
    Thanks,
    Vinnarasi

    Hi Anil Avula,
    Thanks for your reply. Already I had used "Refinement" Webpart for having Search Refiners in List Level. I had referred
    Add
    Search Refiners link. Now my requirement is that, When I add a tag (i.e)Social tagging in "Tags&Notes"  for a Site Collection and search for
    the tagged-term, Search results should be refinable for the tagging. Hope to have a reply
    Thanks,
    Vinnarasi

  • How to implement SEARCH HELP for input field in WDA

    Hi All,
    I am doing a tool for my team. in this tool there are 4 input fields to show different processes. I implemented the 4 input fields and also bind the respective tables to these fields successfully. Actually I want to filter the data between 2 fields . Means the data in the 2nd input field should be based on the 1st input field. Means when I'll select for example 'CHI' (code for CHINA) in the 1st input field the 2nd field meant for country name should show all country name with value 'CHINA'. But the problem is that all values related to each field are in different table with no foreign key relationship and also some combinations are in single table..
    I have tried the import and export parameter method for search help but no luck till now.
    Can anyone please suggest me how to implement this scenario..
    Thanks in advance...
    sekhar

    Hi sekhar,
    Your Requirement can be implemented by OVS(Object Value selector) This is the custom search help .So that you can define on what basis the value has to be fetched.
    Look at the below link
    http://wiki.sdn.sap.com/wiki/display/WDABAP/ABAPWDObjectValueSelector(OVS)
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/606288d6-04c6-2c10-b5ae-a240304c88ea?quicklink=index&overridelayout=true
    You need to use the component WDR_OVS.
    It has 3 phases
    In phase 1
         You will fetch the value from input field to F4 help dialog box.
    In phase 2
         You will generate the search results , in this phase look for the input value given in field 2 and accordingly generate search result for the field 3.
    In phase 3
         The selected value will be returned to the original screen.
    Regards
    Karthiheyan M

  • How to print Sequential  Numbers like purchase order?

    I ma new to mac and Numbers 09 and have a quick question. How do I print sequential numbers? I have my own MS Excel purchase order number with macro and I want to use Iwork Numbers to print the numbers. For example, Purchase Order: 70085-1 is in my form. When I ask to print 20 copies, it will print 70085-1, 70085-1, 70085-3, etc.
    Thanks in advance

    Here is a modified version of my original script which was posted in :
    http://discussions.apple.com/thread.jspa?messageID=12679002
    This time, with a single run, we may define the number of consecutive invoices to create.
    --[SCRIPT openAndNameInvoiceWithAnumber]
    Enregistrer le script en tant que Script : openAndNameInvoiceWithAnumber.scpt
    déplacer le fichier créé dans le dossier
    <VolumeDeDémarrage>:Utilisateurs:<votreCompte>:Bibliothèque:Scripts:Applications:Pages:
    Il vous faudra peut-être créer le dossier Pages et peut-être même le dossier Applications.
    aller au menu Scripts , choisir Pages puis choisir openAndNameInvoiceWithAnumber
    crée un nouveau document à partir du modèle personnel prédéfini
    et renomme le document avec un nouveau numéro.
    Il insère également le numéro de facture au début du document.
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    +++++++
    Save the script as Script, Application or Application Bundle: openAndNameInvoiceWithAnumber.xxx
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Pages:
    Maybe you would have to create the folder Pages and even the folder Applications by yourself.
    go to the Scripts Menu, choose Pages, then choose openAndNameInvoiceWithAnumber
    will create a new document from the defined user template
    and name it with a new number.
    It also insert the invoice number at the very beginning of the document.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    --=====
    Yvan KOENIG (Vallauris, FRANCE)
    2010/11/30
    2010/12/20 edited to apply if the template is a flatfile one.
    2011/01/11 added ability to build several invoices in a single call
    property theApp : "Pages"
    property theExt : ""
    property myTemplate : "ma_facture.template" (*
    Adapter à vos besoins
    Put your preferred template name *)
    property fichierNum : "le_numéro.txt" (*
    Adapter à vos gouts
    Put your preferred text file name *)
    --=====
    on run
    if theApp is "Pages" then
    set theExt to "pages"
    else
    if my parleAnglais() then
    error "The application “" & theApp & "” is not supported !"
    else
    error "L’application « " & theApp & " » n’est pas gérée"
    end if
    end if
    if my parleAnglais() then
    set nombredefactures to my askAnumber("Enter the number of consecutive invoices needed", 1, "i")
    else
    set nombredefactures to my askAnumber("Saisir le nombre de factures consécutives demandé", 1, "i")
    end if
    repeat nombredefactures times
    my buildaninvoice()
    end repeat
    end run
    --=====
    on buildaninvoice()
    set {p2myTemplate, numero} to my prepare()
    set numero to text -5 thru -1 of ("0000" & numero) (* pour numéro de 5 chiffres *)
    set UNTITLED_loc to my getLocalizedFrameWorksName(theApp, "Untitled")
    tell application "Pages"
    activate
    try
    close document UNTITLED_loc
    end try
    end tell -- to Pages
    tell application "Pages"
    activate
    open p2myTemplate
    set theDoc to numero & "." & theExt
    set name of document 1 to theDoc
    tell document 1
    tell body text
    if my parleAnglais() then
    set paragraph 1 to "invoice #" & numero & return & paragraph 1
    else
    set paragraph 1 to "facture n°" & numero & return & paragraph 1
    end if
    end tell
    end tell
    end tell
    end buildaninvoice
    --=====
    on getLocalizedFrameWorksName(theApp, x)
    local p2bndl
    set p2bndl to (path to application support as text) & "iWork '09:Frameworks:SFApplication.framework:Versions:A:Resources:"
    set x_loc to my getLocalizedName(theApp, x, p2bndl)
    return x_loc
    end getLocalizedFrameWorksName
    --=====
    on getLocalizedFunctionName(theApp, x)
    local p2bndl
    set p2bndl to (path to application support as text) & "iWork '09:Frameworks:SFTabular.framework:Versions:A:Resources:"
    set x_loc to my getLocalizedName(theApp, x, p2bndl)
    return x_loc
    end getLocalizedFunctionName
    --=====
    on getLocalizedName(aa, tt, ff)
    tell application aa to return localized string tt from table "Localizable" in bundle file ff
    end getLocalizedName
    --=====
    on prepare()
    local d1, d2, p2d, containerOfTemplates, pathToTheTemplate, p2n, nn
    tell application theApp
    set d1 to localized string "Templates" (* nom local du dossier "Modèles" *)
    set d2 to localized string "My Templates" (* nom local du dossier "Mes Modèles" *)
    end tell -- theApp
    set p2d to (path to application support from user domain) as Unicode text
    set containerOfTemplates to p2d & "iWork:" & theApp & ":" & d1 & ":" & d2 & ":"
    set pathToTheTemplate to containerOfTemplates & myTemplate & ":"
    try
    set pathToTheTemplate to pathToTheTemplate as alias
    on error
    if my parleAnglais() then
    error "The template “" & pathToTheTemplate & "” is unavailable! Please make sure the template file “" & myTemplate & "” is installed in Numbers “Templates:My Templates” folder, then rerun this script."
    else
    error "Le modèle « " & pathToTheTemplate & " » est introuvable! Veuillez installer le fichier modèle « " & myTemplate & " » dans le dossier « Modèles:Mes modèles » de Numbers avant de relancer ce script."
    end if
    end try
    tell application "System Events"
    if class of disk item (pathToTheTemplate as text) is file then
    (* flat file *)
    set p2n to containerOfTemplates & fichierNum
    if not (exists file p2n) then
    make new file at end of folder containerOfTemplates with properties {name:fichierNum}
    write "100" to file p2n (* mettez le numéro de départ de votre choix *)
    end if -- not…
    else
    (* package *)
    set p2n to "" & pathToTheTemplate & fichierNum
    if not (exists file p2n) then
    make new file at end of pathToTheTemplate with properties {name:fichierNum}
    write "100" to file p2n (* mettez le numéro de départ de votre choix *)
    end if -- not…
    end if
    end tell -- System Events
    set nn to read file p2n
    set nn to ((nn as integer) + 1) as text
    write nn to file p2n starting at 1
    return {pathToTheTemplate, nn}
    end prepare
    --=====
    on parleAnglais()
    local z
    try
    tell application theApp to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z is not "Annuler")
    end parleAnglais
    --=====
    Asks for an entry and checks that it is an floating number
    set myInteger to my askAnumber(Prompt, DefaultValue, "i")
    set myFloating to my askAnumber(Prompt, DefaultValue, "f")
    on askAnumber(lPrompt, lDefault, IorF)
    local lPrompt, lDefault, n
    tell application (path to frontmost application as string)
    if IorF is in {"F", "f"} then
    set n to text returned of (display dialog lPrompt & " (" & (1.2 as text) & ")" default answer lDefault as text)
    try
    set n to n as number (* try to convert the value as an number *)
    return n
    on error
    if my parleAnglais() then
    display alert "The value needs to be a floating number." & return & "Please try again."
    else
    display alert "La valeur saisie doit être un nombre décimal." & return & "Veuillez recommencer."
    end if
    end try
    else
    set n to text returned of (display dialog lPrompt default answer lDefault as text)
    try
    set n to n as integer (* try to convert the value as an integer *)
    return n
    on error
    if my parleAnglais() then
    display alert "The value needs to be an integer." & return & "Please try again."
    else
    display alert "La valeur saisie doit être un nombre entier." & return & "Veuillez recommencer."
    end if
    end try -- 1st attempt
    end if -- IorF…
    end tell -- application
    Here if the first entry was not of the wanted class
    second attempt *)
    tell application (path to frontmost application as string)
    if IorF is in {"F", "f"} then
    set n to text returned of (display dialog lPrompt & " (" & (1.2 as text) & ")" default answer lDefault as text)
    try
    set n to n as number (* try to convert the value as an number *)
    return n
    on error
    end try
    else
    set n to text returned of (display dialog lPrompt default answer lDefault as text)
    try
    set n to n as integer (* try to convert the value as an integer *)
    return n
    on error
    end try -- 1st attempt
    end if -- IorF…
    end tell -- application
    if my parleAnglais() then
    error "The value you entered was not numerical !" & return & "Goodbye !"
    else
    error "La valeur saisie n’est pas numérique !" & return & "Au revoir !"
    end if
    end askAnumber
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) mardi 11 janvier 2011 09:30:37

  • How to implement password policy for a software in oracle (sql) forms & reports 6i ?

    Hi all , I have to implement password policy for an already existing software which was created 2 to 3 years before.
    What exactly i want to do is I must alert the user every month to change his/her password. I have no idea about it.
    Can anyone help me how to start with it? Or can you provide me the links where i can learn & implement in the software?
    Oracle Forms & Reports Builder 6i.
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production.
    Thank You.

    You can try this:
    Establishing Security Policies
    Using database policy, you can force user to change password with Oracle forms 6i.
    Regards

  • How to implement parent entity for core data

    Hi there.
    I am starting a document-based Core Data application (Cocoa) and developed the following data model;
    The 'invoice' entity is a parent entity of 'items', because ideally I would want there to be many items for each invoice. I guess my first point here is - is what I am trying to do going to be achieved using this method?
    If so, I have been trying several ways in Interface Builder to sort out how to implement this structure with cocoa bindings. I have made a Core Data app before, just with one entity. So this time, I have two separate instances of NSArrayController's connected to tables with relevant columns. I can add new 'invoice' entities fine, but I can't get corresponding 'items' to add.
    I tried setting the Managed Object Context of the 'item' NSArrayController to this;
    I thought this would resolve the issue, but I still have found no resolution to the problem.
    If anyone done something similar to this, I'd appreciate any help
    Thanks in advance,
    Ricky.

    Second, when you create a Core Data Document Based application, XCode generates the MyDocument class, derivating from NSPersistentDocument. This class is dedicated to maintain the Managed Object Model and the Managed Object Context of each document of your application.
    There is only one Context and generally one Model for each Document.
    In Interface Builder, the Managed Object Context must be bound to the managedObjectContext of the MyDocument instance: it's the File's owner of the myDocument.xib Nib file.
    It's not the case in your Nib File where the Managed Object Context is bound to the invoiceID of the Invoice Controller.
    It's difficult to help you without an overall knowledge of your application, perhaps could you create an InvoiceItem Controller and bind its Content Set to the relationship of your invoice.

Maybe you are looking for