How can I allow user to customize the functionality of program at runtime? (not using runtime code compilation)

Using .NET Framework 4.0 what features are available that would allow to accomplish something very modular and user customizable, like depicted in this XML.  Where I define specific base operations like Get() and Put() methods that operate on strings. 
And allow the user to add and remove those or mix and match them in a way that they basically design their own run time functionality that suits them.  So they just create their own 'Operation' and fill it with the operations they want to perform on some
incoming data type, in this case it is a string - with substring and insert methods. 
EDIT - Assuming end user is non programmer and Dynamic Code compilation is not an option.  I have an idea maybe using dynamic keyword, but not sure if it makes what i suggest possible.
<Operation Name="GetValues">
  <Get id=123"  FromIndex="2" ToIndex="23"/>
  <Get id="234"  FromIndex="3" ToIndex="5"/>
   <Output Path="C:\" Filename="testOut.txt" Append="true">
     <Format>
          <Result id="123"/> , <Result id="234"/>
     </Format>
   </Output>
</Operation>
<Operation Name="InsertValue">
  <Put AtIndex="5">stringtoinsert</Put>
  <Put AtIndex="36">anotherstringtoinsert</Put>
</Operation>

Hi sjs1978,
I am not familiar with dynamic code, and I made a research about it.
>> I'm aware of dynamic code compilation, but that requires user to input pieces of code.
Did you try to store the pieces of code into a file and call the code when the dynamic code compilation requires user to input code?
In addition, I found links about using code provider to compile a source file, and the links below might be useful to you.
# Dynamic Source Code Generation and Compilation
https://msdn.microsoft.com/en-us/library/650ax5cx(v=vs.110).aspx
# CSharpCodeProvider Class
https://msdn.microsoft.com/en-us/library/microsoft.csharp.csharpcodeprovider(v=vs.110).aspx
# Is it possible to dynamically compile and execute C# code fragments?
http://stackoverflow.com/questions/826398/is-it-possible-to-dynamically-compile-and-execute-c-sharp-code-fragments
Best Regards,
Tony
Help each other

Similar Messages

  • How can i stop user to get the same screen while entering same T code

    hi experts,
    how can i stop user to get the same screen while entering same T code (_Means i want user enter same t code but got different different screen how it is possible.)_
    i want to know how can we set a authorization is such a manner ...
    Through different different login id user got different different screen while entering same T-code.
    for example if there is two functional login id mum & noida...
    then user login through that and
    enter any same functional tcode (for getting purchase order)
    but get different different window...so how come it is possible.....
    plz explain in brief
    thanks in advance...plz do reply as soon as possible

    For a custom transaction this is easy, you need to ask your developers to be able to direct users to different screens based on the results of an authorisation check.  You could have an auth field e.g. ZSCREEN which is checked in the program & decides what screen the user has access to.
    For standard transactions, unless already coded, I would forget it & do what is recommended by Subramaniam and create transaction variants as required.  Assign each variant to a custom t-code and users access it that way.
    What I am interested is is why do you want to do this?

  • HT1430 How can you reboot your Touch if the screen is frozen and will not allow you to use the "slide to power off"

    How can I reboot my Touch when the screen is frozen and I cannot use the "slide to power off" feature?

    Next try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          

  • How can I uniquely identify computers on the same network/account specifically for airdrop use?  When I change name on one computer under contacts if changes on all computers.

    How can I uniquely identify computers on the same network/account specifically for airdrop use?  When I change name on one computer under contacts it changes on all computers.  I would like to change icon and name for each computer.

    you would need to setup a VPN and tunnel into your office.
    FYI..the default ports are 3283 and 5900.

  • How can I bulk delete songs from the playlist, if original file could not be found.

    I deleted the original files from the Library iTines. The songs are still in the playlist. How can I bulk delete songs from the playlist, if original file could not be found. Thank.

    Take a look at my FindTracks script. Download it and test it out on a few tracks first. Use the No option first time around to manually confirm each path that it wants to fix so you can see how it works. When you're happy it does what you want select a larger group of tracks to process automatically.
    tt2

  • How can I allow users to access SQLPLUS?

    Hi everyone,
    I have been charged with the task of creating an Oracle server on a CentOS VM. Installation and configuration is complete and SQL is working fine for the database admin user "oracle." I copied the environment variables to the .bashrc file for "oracle" and SQLPLUS starts without a hitch.
    Here is where I need a little guidance...
    I need to create basic Linux user accounts that will have access to the database, so they can then in turn log into their SQLPLUS accounts. The problem is, all of the database files and software are in located in the user "oracle's" directory. This means that no one but "oracle" and root have access to these files because they are the only ones with proper permissions.
    Before I put a ton of time into this, I thought I would pose these questions to the Oracle Linux community:
    1) Could I enable a specific Linux group (ex. "Oracle Users") to have access to the main database folder or possibly all folders along the path? I am hoping this would allow any users I put in the group access to the folders, and essentially the SQLPLUS application. (here is ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1)
    2) If that is not an option, will I need to make a completely new database and locate it in a location that all users can access?
    I understand that my first idea may not be the SAFEST method, but this is only for a small class of students learning how to use SQL and writing queries. There will be no sensitive information at risk. This would be a quick fix until I learned more about Oracle and how to use it.
    Thank you everyone.

    It certainly is rather a question for the General Database forum, though I doubt you will get a lot of happy replies for such a basic question.
    You can use / as sysdba OS authentication through SSH or using the server console, provided the user's account belongs to the "dba" user group. For remote connection through sqlnet you need create a $ORACLE_HOME/dbs/orapw$SID password file.
    If you would like to know more about this:
    Connecting / as sysdba is used for OS authentication. It ignores password credentials stored in the database and allows any user belonging to the OSDBA system group to connect to the database. Connections as sysdba will always connect to the SYS schema of the database, regardless of any username or password specified. Using OS authentication relies on the BEQ protocol, which connects to the database directly, without using the Oracle Listener process.
    The "oinstall" group will give access to the database software repository. There could be different oracle home installations, each with a different oracle user/owner like "oracle_prod1" and "oracle_prod2", but both users must be able to read/write the shared oraInventory, in which case both users must have read and write access to the oraInventory directory, hence the oinstall group.

  • How can I allow users to view any Wiki Pages inside my enterprise wiki site collection, as PDF files

    We are working on an enterprise wiki site collection, and users start adding wiki pages and link them together. But a new requirement was raised by the customer, to allow users to be able to convert any wiki page to pdf file and save the pdf file to their
    local PCs. They are suggesting to add a link or an option inside the upper ribbon , named “Make as PDF”, and once clicked they can view the current wiki as a pdf file.
    Not sure what are the capabilities of SharePoint 2013 to do so ? and is there any third paryt tools that allow doing similar tasks ?
    Thanks

    If you want to save as PDF, could you not use a PDF printer, so the procedure would be to 'Print this page' and the user then selects their PDF printer and where they want to save the file.
    but in this way the user will have the page header footer, left navigation included in the pdf file. while i want to extract the body only. i so not think you apprach will work for my requirements

  • How can we restrict users from changing the data in HFM.

    Hi All,
    We have requirement from users where, They don't want the base data being loaded from SAP to HFM via FDM through ERPi to get changed in HFM at <Entity Currency>. They want data to be read only and no body should be able to change neither Grid nor Forms and neither Smart View. If we restrict by Shared services access then again they can't change ownership management value.
    Regards,
    Sushil

    Hi Thanos, Thanks for your reply.
    Yes i am aware of the security class, so your suggestion is to use security classes to restrict users? And how can i use the phased submission for the same?  I am new to HFM so please bear with me.
    I have one more question that my Application is HFM EPMA application. So is it necessary to have Application Administrator to change hierarchy and Deploy the Application from EPMA?
    Thanks,
    Sushil

  • How can I get users who accessed the database during last one month

    Hi All,
    How can get the list of users who logged on to the database DBProd and made changes to the tables of particular schema during say last month and current month.
    Thanks & Regards.

    DBA_PRIV_AUDIT_OPTS :-Describes current system privileges being audited across the system and by user and who has updated what can be done through trigger which would send the information to a history table. If you have it ready ask your team..
    SQL> select PRIVILEGE,SUCCESS,FAILURE from DBA_PRIV_AUDIT_OPTS where user_name='SCOTT';
    no rows selected
    SQL> audit ALTER SYSTEM by scott by access whenever not successful;
    Audit succeeded.
    SQL> audit session by scott by access;
    Audit succeeded.
    SQL> select PRIVILEGE,SUCCESS,FAILURE from DBA_PRIV_AUDIT_OPTS where user_name='SCOTT';
    PRIVILEGE SUCCESS FAILURE
    CREATE SESSION BY ACCESS BY ACCESS
    ALTER SYSTEM NOT SET BY ACCESS
    Regards
    Karan
    Edited by: Karan on Aug 2, 2012 7:15 PM

  • How can i identify users country on the web?

    hi
    i need to know in my servlet from where users are coming from. i tried to look at the headers of the http protocol but didn't find anything except of the language which is not enough.
    how can i?
    thanks

    That is my point- you know the IP address of the computer that is accessing your site. If I belong to a multinational company who runs their global network through servers in the US then even if I am in England your site would record me as being from america. You may not be interested in the proxy but my point is that in a lot of cases that is all you can get.
    However, you can get a general idea because most people will be running through proxies in their own country, so as long as you don't need to rely on the results completely you will be fine.

  • How can I allow users to submit a form without entering credit card info?

    Hello all,
    We are offering a free gift to our constituents. So, what we need is a form that will allow users to either claim the gift and make a donation, or claim the gift and not make a donation. Ideally this is one form. Is there a way for users to fill out everything but the credit card info?
    Thanks,
    Mike

    Hi Mike,
    You can use "Free" payment method to do so and hide the credit card fields using JS and CSS based on the payment method type selection. Please refer to the following article : http://kb.worldsecuresystems.com/893/bc_893.html
    Hope this helps.
    Regards,
    Aish

  • My 5 year old iMac's hard drive is at the point of failing.  I'm trying to save al files on it, but it wont allow backup via Time Machine to an external hard drive.  How can I keep from losing all the files and programs if the hard drive fails?

    I'm concerned that my iMac, purchased 5 years ago, is about the crash and I can't back up my files and programs to an external hard drive via Time Machine because the computer freezes after only a couple hundred MB and gets nowhere near the required amount.
    How can I save these files and programs if the computer hard drive fails or has to be replaced without the backup being able to be done? I need to do something quickly, but I'm not sure what I can or should be doing.

    Get an external hard drive, some good ones that I like are the OWC, http://www.macsales.com Mercury Elite Pro drives...they are very good and reasonably priced.
    Get the drive, connect via USB or FireWire, then use Disk Utility to format the new drive as Mac OS X Extended (Journaled), and then use Disk Utility to Restore the current drive to the new drive.  Restore actually clones the drive so you will have a bootable backup on the external drive.
    After you have formatted and named the external drive, click Restore in the main Disk Utility window, drag the name of the old hard drive to the Source box, and drag the name of the new external drive to the Destination box.  DU will make an exact clone of the internal drive on the external drive.
    That clone will be a complete backup of the operating system and all of your data.
    You can test it by restarting the iMac and hold the Option key.  That will give you a grey screen showing all bootable drives.  Just click the external drive, then click the upward pointing arrow under it and the iMac will boot from that drive.

  • How can I get Firefox to except the home page that I want to use

    I have clicked and dragged the icon a hundred times, and still when I click on Firefox a previously set up home page appears.
    This is very annoying because I can get to my homepage; but I have to sign on to yahoo e-mail every time; then go to my homepage and my bookmarks. I can't seem to get it to except the homepage I want to use..

    If you want a customize Yahoo! page then make sure that you keep the Yahoo! cookies.
    Such details are stored in a cookie.
    * Create an allow cookie exception (Tools > Options > Privacy > Cookies: Exceptions) to keep such a cookie, especially for secure websites and if cookies expire when Firefox is closed.
    * In [[Private Browsing]] mode all cookies are session cookies that expire if that session is ended, so websites won't remember you.
    * In [[Private Browsing]] mode Firefox won't fill names and passwords automatically.
    * You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    * To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Uncheck: [ ] "Permanent Private Browsing mode"
    * Do not use [[Clear Recent History]] to clear the "Cookies" and the "Site Preferences"
    Clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.
    * http://kb.mozillazine.org/Cookies

  • How can I duplicate a photo in the Ipad photo program?

    HOw can I duplicate photos in the original ipad photo program? I wanted to blow up a part of a picture, but also keep the original.

    The Photos App keeps the original with editing added as changes to the original. You can always revert back to the original.
    Other photo editing Apps may also provide the capability to save the modified version with the changes incorporated. For example, Photo Editor

  • HT3819 If I have "deauthorized all" computers how can I re-authorized my computer, the button to do so is not appearing in my account?

    If I have "deauthorized all" computers how can I re-authorized my computer? The button to authorize does not appear in my account where the "deauthorize all" button once did.

    Open itunes
    Click the word Store at the top of your computer screen
    Click Authorize

Maybe you are looking for

  • How can i move ipod onto a different icloud account pls

    i want to move ipod onto a different icloud account without losing any info on my iphone which is on the same icloud account

  • Sharing with Samba

    Hey all ! I've been for the past two days trying to configure my smb.conf so it shares files over network. I've read docs, wikis, how-tos, theads et cetera but I just can't make the whole thing work. I want Movies and Musics to be read only. This wor

  • Trying to update the First Gen Ipod to the newest IOS if possible!

    Hello Im trying to update two older verison's IPod First Gen. The one is verison... 4.2.1 (8C148) its a 8GB model number MCC086LL serial Number 1D034SRL75J I dont know if this information is needed but i put it up here anyway. The other one is veriso

  • Urgent - parameter values are not getting posted

    Hi I have a url in the wf notification that directs the user to the oaf page, the parameters are being sent as url parameters. I have no problem in accessing in the processRequest method of first page. But When I try to read the same in processFormRe

  • How do i get rid of a search bar

    My browser got restarted and i used to have a search bar beside the url bar but now its at the tabs bar, i only have two inches of tab space don't think it's the same one anyway i just want to get rid of it. Can't find 'search bar' in any of the opti