Write custom mapRoute in mvc 4

Hi,
Due to some instruction, I have to create a custom routeurl like http://localhost:1231/person/?personid=12345&uid=87
Can anybody help me to write a custom mapRoute for  this..
Thanks in advance.
Learner_Geek
mLearner

Hi,
Thanks for the reply but i think my question was not clear so ill try to explain it again..
I'm sitting in contoller web method i.e( Index) and want to redirect to other method (Save) and wanted that when i get values in (Save method) its url should be like  http://localhost:1231/person/?personid=12345&uid=87
i know it is not best t use such kind of url in mvc but it my requirement due to third party tool sharing..
So my question is when i use redirecttoaction webmethod and passing these two parameter and in response i should get  url like  http://localhost:1231save/?personid=12345&uid=87 but
now it is coming like  http://localhost:1231/save/12345/87 which i dont want.
I hope now i have explained more..
Thanks in advance
m_Learner

Similar Messages

  • Help needed in writting Customer exit - ABAP Code

    Hi Friends,
    I have a scenario in one of the query and need to write a customer exit for the same. Here is the scenario:
    I am using one input variable XXX to get input from user which feeds value to one of the charateristic  lets say "CHAR1" in query. I have one more characteristic "CHAR2" which has to get the value from the same variable XXX. This is not allowed in BI7.0 as the variable is Hierarchy Node type. It gives error that "Variable XXX is used for two different characteristics."
    So i need to create one more vaiable YYY which will get the value from XXX and then YYY will feed value to CHAR2.  I would appreciate if some one could tell me step by step how to write customer exit and give me the piece of ABAP code i need to write in my case.
    Your help will be appreciated in terms of points.
    Thanks,
    manmit

    Hi Arun,
    1. What should CHAR2 take - Hierarchy node variable or something else ?
    --> CHAR2 is a simple charateristic
    2. In your scenario - why have CHAR1 and CHAR2 ? why not have the user enter values against CHAR2 ??
    --> We dont want user to enter two input as the input values for both Chars are same.
    3. Did you try using a replacement path variable with the CHAR2 variable taking values from Variable on CHAR1 ?
    --> In BI7.0 replacement path variable only take values from Query results. So not able to do the same.
    Thanks

  • What is the input "key" in the IMAQ Write Custom Data palette?

    Hello!
    I am not able to use correctly the IMAQ Write Custom Data palette because I do not know what is the input "key".
    Does anyone know its meaning?
    Sincerely,
    Fábio Machado Cavalcanti
    Canada-Brazil Science Without Borders Student
    Lakehead University, Thunder Bay, Ontario, Canada
    Federal University of Pernambuco (UFPE), Recife, PE, Brazil
    Undergraduate Student in Chemical Engineering

    Thank you for replying Ninad Regundwar!
    I agree with this. I have already read this information in the LabView Help.
    However, I would like to know what is the "key" specifically. I know that it is a string.
    I have written a code to add some acquisition features in a PNG Image File. For this, I have used the following palettes: IMAQ Write File 2 - PNG with Vision Info and IMAQ Write Custom Data.
    Afterwards, I have written another code to read the acquisition features from this PNG Image File. For this one, I have used the following palettes: IMAQ Read Image and Vision Information and IMAQ Read Custom Data.
    But, when I am reading the acquisition features, an error message appears: "ERROR -1074395723 occurred at IMAQ Read Custom Data - IMAQ Vision: The key you specified cannot be found in the image"
    I do not know what I have to put in the input "key". So, I have been trying different values for it: "data", "hello", "13", "56", etc. But, none of these has worked and the same message has appeared.
    Does someone know what I have to put in the input "key"? Does someone have an example that shows how to use the palettes: "IMAQ Write Custom Data" and "IMAQ Read Custom Data" correctly?
    Sincerely,
    Fábio Machado Cavalcanti
    Canada-Brazil Science Without Borders Student
    Lakehead University, Thunder Bay, Ontario, Canada
    Federal University of Pernambuco (UFPE), Recife, PE, Brazil
    Undergraduate Student in Chemical Engineering

  • How to write customer exist for Keyfigure( query )

    Hi gurus,
    I have to write customer exist for a key figure.
    Please tell me how to write it.
    Thanks,
    James

    Pankesh,
    SE24 is for  defining classes .. are you sure this is for customer exits ?..
    Use a formula variable filled by a customer exit... go to TCode CMOD and follow the normal procedure for defining Exits.. look up the forums for detailed steps on how to write an exit..
    Arun
    Hope it helps...

  • How to write customer exit in my BI query to get (current fiscal quarter) and (current fiscal quarter - 1 ) without user input

    Hi all,
    I need your help how to write customer exit in my BI query to get (current fiscal quarter) and (current fiscal quarter - 1 ) without user input.
    in my query info object is 0CALQUARTER and variable is ZFIS_QTR.
    in 0CALQUARTER fiscal quarter stored in 201301,201302,201303,201304 and 201401 format, for current fiscal quarter 201401 and (current fiscal quarter - 1 ) would be 201304.
    please replay ASAP to deliver the report to client.
    thanks in advance.
    -- Rakesh Nagpure

    I am Getting the same error for both the codes that i have written...
    Do i Need to write sth else in the code...
    Code:
    WHEN 'ZVLIVELEASES'.
      IF I_STEP = 2.
            L_DATE = SY-DATUM.
            SELECT * FROM "DSO_ACTIVE_TABLE"
                INTO TABLE ITAB_LL where "EXPIRY_DATE" > L_DATE.
            LOOP AT ITAB_LL INTO WA_LL.
            CLEAR l_s_range.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            l_s_range-low = WA_LL-"EXPIRY_DATE".
           APPEND L_S_RANGE TO E_T_RANGE.
            ENDLOOP.
       ENDIF.
    Error: Error for variable in customer enhancement ZLIVELEASES

  • How to write custom messages to Data Manager package log from within SSIS?

    Just wonder in BPC 7.0/7.5 MS how do you write custom messages to Data Manager package log from within SSIS?  I mean I want to log output of specific custom tasks (non-BPC) in SSIS control flow to the resultant BPC package log created when running SSIS package in Data Manager.  Can this be done in a Script Task or some other way?  Not much documentation out there on this.
    Thanks,
    Brian

    Hi Brian
    In order to achieve what you want, it can get tricky in your package, ultimately It would depend on the task, for example if you had an execute SQL task, you could use a RAISEERROR command in your SQL statement and BPC would return the error message that you specified.
    If you had other tasks, then it would be a bit more tricky, you would have to have custom messages based on event handlers.
    Please see below links for examples :
    [Custom messages for logging|http://msdn.microsoft.com/en-us/library/ms345174.aspx]
    [Custom Logging Using Event Handlers |http://consultingblogs.emc.com/jamiethomson/archive/2005/06/11/SSIS_3A00_-Custom-Logging-Using-Event-Handlers.aspx]
    Hope this helps
    Kind Regards
    Daniel

  • Can I write custom databse Trigger over a apps table.

    Hi All,
    Kindly explain if I can write custom database triggers over any apps defined table (for example per_jobs). Also let me know if any recommendations or best coding standards.
    Thanks & Regards
    Purushotham.M

    Hi Purushotham,
    Oracle says "We strongly advise against the use of database triggers." - Oracle Applications Developer’s Guide 11i.
    Also, setting :new values of columns (apart from maybe Descriptive Flexfield Columns) is going to be "behind Oracle Applications back" meaning you'll potentially be breaking the business rules built into Apps.
    However, that doesn't mean you can't use them - just be it on your head!
    I'm not aware of any table you can't use them on, but have seen cautions about putting them on a couple of FND tables, unfortunately I can't find a reference to that, but one to watch out for was fnd_concurrent_requests.
    If you are able to, use Personalization or Extension to achieve your requirements. If that isn't possible, then the usual coding standards apply with respect to naming standards, etc (see the developers guides).
    If your logic is not critical to the business process (or concurrency can be handled by mechanisms other than row locking), e.g. you just want to kick off some other process based on a trigger point, consider using an autonomous transaction in your trigger logic.
    Gareth

  • Hi All,this is Prakash Is it possible to write custom markable interface,

    Hi All,Is it possible to write custom markable interface
    Thanks in advance

    Here is a basic exmaple.
    interface ExampleInterface {}
    class ExampleInterfaceImpl implements
    ExampleInterface {
         private boolean doSomething = false;
         public void setDoSomething(boolean doSomething) {
              this.doSomething = doSomething;
         public void doIt() {
              if(doSomething)
              System.out.println("Look! I am doing it!");
    public class Example {
         public static void main(String[] args) {
    ExampleInterfaceImpl exImpl = new
    ew ExampleInterfaceImpl();
              if(exImpl instanceof ExampleInterface) {
                   exImpl.setDoSomething(true);
              exImpl.doIt();
    }Hello George,
    So where is the check performed for say the
    Serializable Interface? that says if Serializable
    then it can be Serialized?
    CheersNot in the JVM

  • Write Custom policies in Javascript for API management in Azure

    I am new to API Management in Azure.
    Is it possible to write custom policy in Javascript like it is possible to write in API Management tool in APIGEE?

    Hi,
    It seems that it is not support in Azure API management, please vote this similar voice at:
    http://feedback.azure.com/forums/34192--general-feedback/suggestions/6564897-api-management-policy
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • SRM Smartform - How to write custom logic to get data

    Hi Experts,
    I am new to SRM 7.0 now. I want to know where the code logic can be written to print the custom smart form?
    I have already create custom smarts form ZBBP_PO, and implement the BADI  BBP_OUTPUT_CHANGE_SF to pass the custom form name.
    But i don't know where to write the code for fetching the source data. In ECC, we can write the code in a separate report program. How it does in SRM now? It is said some class and method will print the form. How to find it? and how to add custom logic.?
    Or the logic of fetching source data should be embeded in the smart form? I don't like to write much more codes directly in smart form.
    Thanks!

    Yeah, I know it. but I don't want to write code logic into the Smartforms. in ECC, i always write the code in a separated program which will pass the data to smartform and call function module to print it.
    i just want to know whether i can write the code in somewhere else in SRM, not in smartform.

  • Write custom logic for data archiving using Open text(SAP archiving)

    Hi,
    We are currently doing archiving for sales documents and billing documents using Open text. As part of this we need to have a search functionality based on Sales document,customer number, customer address etc...
    since customer address doesn't exist in sales order tables we need to write logic so that the document gets archived and retrieved using the address.
    can you please help me out in how and where to write logic for this...can this be achieved?
    i observed an area on Attribute Object for a Node which gives an option for Event and User exit. can this be used..if so how?
    Thanks,
    Anil

    hi,
    please write more detailed information what do you really need...

  • No user input for the field on which i need to write customer exit code.

    Hello everyone,
    Scenario:
    There are differrent lease type and there Start date and expiry date.
    each lease has to return somoe returns on some basis.
    selection screen has four options but none of them is date.
    My understanding:
    I need to get only those leases in my report whose expiry date is greater than system date/current calendar day.
    I am not selecting any date field in selection screen, so i need to get value of expiry date from cube, and than compare it to current date.
    So i need to write a customer exit in which i need to read date and restrict data on this expiry date.
    Requirment:
    Need a code for SAP exit variable which will meet the following requirment
    There are the following 4 variables in the query.
    1) material
    2) product hierarchy
    3) City
    4) lease type
    I need a customer Exit variable (CMOD) that will
    filter the records on the basis of condition-"lease expiry date is greater than current system" and display all the records whose expiry date is greate than Sy Date (Current Date) and also if expiry date is blank.
    kindly give me information on how i can write this code asap; and let me know if need more information.
    Thanks

    I am Getting the same error for both the codes that i have written...
    Do i Need to write sth else in the code...
    Code:
    WHEN 'ZVLIVELEASES'.
      IF I_STEP = 2.
            L_DATE = SY-DATUM.
            SELECT * FROM "DSO_ACTIVE_TABLE"
                INTO TABLE ITAB_LL where "EXPIRY_DATE" > L_DATE.
            LOOP AT ITAB_LL INTO WA_LL.
            CLEAR l_s_range.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            l_s_range-low = WA_LL-"EXPIRY_DATE".
           APPEND L_S_RANGE TO E_T_RANGE.
            ENDLOOP.
       ENDIF.
    Error: Error for variable in customer enhancement ZLIVELEASES

  • Looking for someone to write custom Premiere plug-in

    Hello
    I am looking to find a programmer with a working knowledge of writing  plug-ins for Premiere to write a custom plug-in for Premiere CS5.
    The plug-in is extremely simple. It will be a Video Effect that can be  applied to a clip on the timeline. It has one control that slides the  top half of the clip to the left and the bottom half of the clip to the  right; by a user defined number of pixels.  However the plug-in then  needs some kind of global control that allows the user to change the  functionality of ALL instances of the effect in the current sequence -  so at a command they slide the ENTIRE image left or right, and not just  the top/bottom half.  This could even be implemented by writing 3  plug-ins and shutting down Premiere, substituting the plug-in file on  disk and re-starting it.
    The reason we want this is that it will enable us to handle changing the depth of stereoscopic 3D clips in a Cineform workflow.
    This is a paying job and anyone interested should email me at [email protected] I can supply more detailed information about the functionality if needed.
    /ben

    Wrong place... try where the programmers hang out
    http://forums.adobe.com/community/premiere/premierepro_current/sdk

  • OTL Time card: Where to write custom validations

    Hi,
    I need to write some validations after the user submits time card.
    WHat is the package in which I can write these custom validations? Does oracle recommend any specific package?
    Also, If i have two projects,
    Time card period: 01-01-12 to 01-08-12
    Project 1 ends on 01-05-12
    Project 2 starts from 01-06-12
    Would it be possible to restrict project lov if user tries to enter project on 01-07-12, not to use project 1?
    if not possible where can I make that validation in the code?
    Appreciate your help.

    Hi,
    I will answering your doubts no 3 and 4
    Instead of using XML template, I would suggest you to use WED Adi, which can be called from the OTL page
    button. And at that time the only thing u have to upload server with the WebAdi template.
    Here you will not need to build a custom table, a view will solve the purpose. And there is not need of further maintenance
    For the file to be read only you can include it in the code while extending your respective controller class.
    But Oracle recommend not to extend controller class. Let the client be aware of it, that it requires the extension
    of controller class of the page. If he thumps up the extension of controller class then your life becomes pretty simple.
    Regards,
    Pankaj Kedia

  • Over-writting Customer Exit Value

    Hi,
    I've a "customer exit" variable 'Z1', which is allowed "ready for input" as well. Z1 is based on 0FISCPER and I set the variable to current date using customer exit in I_STEP = 1.
    Based on the value contained in Z1, I calculate date ranges for two other customer exit variables 'Z2' and 'Z3' in I_STEP = 2, to make default criteria for report. And reports shows values of Z1, Z2, and Z3 in each column respectively.
    As Z1 is "ready for input", it allows user to enter value and change shows in Z1 column but Z2 and Z3 still being calculated on initial value of Z1.
    Please let me know how it is possible to over-write the initial value? Process flow would be: if user enters any value in Z1 it should ignore the initial values set by customer exit.
    Your urgent help would be highly appreciated.
    Regards,
    Shabbar

    Ali,
    You are on the right path. Calculate the default value of z1 in i_step = 1, and then calculate z2 and z3 in i_step =2. If the user enters the value , then z1 will have the user value.
    -Saket

Maybe you are looking for

  • Can not open Mail!

    Every time I click on my mail it gives me the message "Mail cannot update our mailboxes because your home directory is full. You must free up space in your home folder before using Mail. Delete unneeded documents or move documents to another volume."

  • Moving from XP to Windows 7 - How to I take contacts?

    Going round the twist here! I am moving everything to a fresh install of Windows 7. Currently my iPhone syncs my contacts to Windows Address Book in WinXP. However Windows 7 does not have an Address Book, so how do I go about keeping all my contacts

  • ESS New Payslip

    We are at ECC 6.0 EhP4 and Portal EhP1.  We have copied adobe form SAP_PAYSLIP_US and customized for our organization to use in ESS Benefits and Payments.  We would like when the user clicks on the Salary Statement to view the form ---the form opens

  • Old battery and inaccurate battery guage

    My 3 year old Powerbook battery seems to be on its last legs.. I am only getting a little over an hours usage before it poops out. What bugs me though is that the battery gauge in the menu bar doesn't reflect this.. it tells me I am at something like

  • Star Ratings randomly changing

    Ok, trying not to scream as I write this. About 4 months ago, iTunes seemed to randomly change all my star ratings one day, Ive spent the last 4 months trying to get them right again. And now today its done it again, they all seem to have changed to