Self Modifying Application (Creating ad-ons from within an application)

Ok, it's hard to ask this right...
In the past, I used VB and the VBScript ActiveX to allow the user to write code that my UI could use within itself, for example, to change the way a file would load or to extend the file open save mechanism...
Is there a way to do this maybe using the jscript engine?
Or, even better, is there a way I could compile a real java object from within my UI and create it/connect to it in my application when compiling is done?
The user would be presented a code window where he'd type in the code. In the window, he could use all the java classes to write his code and classes.
The UI would save and compile the code and start using it right away.
If someone could point me the right way.
Thanks.

In the past, I used VB and the VBScript ActiveX to
allow the user to write code that my UI could use
within itself, for example, to change the way a file
would load or to extend the file open save
mechanism...Sounds dangerous. But I think I understand what you want to do.
Is there a way to do this maybe using the jscript
engine?Not sure what you mean by jscript engine.
Or, even better, is there a way I could compile a
real java object from within my UI and create
it/connect to it in my application when compiling is
done?No.
The user would be presented a code window where he'd
type in the code. In the window, he could use all the
java classes to write his code and classes.
The UI would save and compile the code and start
using it right away.Sounds like you want an IDE inside your program?

Similar Messages

  • How to create Default Schema from within the application

    Hi friends
    I am creating users using the following within my application using this syntax
    BEGIN
    APEX_UTIL.CREATE_USER
    (:P124_USER_ID, :P124_USER_NAME,:P124_USER_FIRST_NAME,:P124_USER_LAST_NAME,' ',:P124_USER_EMAIL_ID,'xxxx');
    END;
    The default workspace for the user is set as blanks. I would like to set it to be the default workspace as per the current logged in user.
    Can you help me with the syntax for this
    thank you in advance
    Laxmi

    Laxmi,
    The subject of the post is "How to create Default Schema from within the application".
    But your question asks how to set the "default workspace" for a newly created user.
    Those are different questions and not the ones I think you need answered.
    Let me answer this question "How can you set the default schema for an account when creating the account and set it to the same value used for the default schema attribute of the administrator account used to authenticate to the currently running application?".
    In the apex_util.create_user call use named parameter notation and fetch the information about the currently logged-in user first, e.g.,declare
      l_workspace               varchar2(256);
      l_user_name               varchar2(256);
      l_first_name              varchar2(256);
      l_last_name               varchar2(256);
      l_web_password            varchar2(256);
      l_email_address           varchar2(256);
      l_start_date              varchar2(256);
      l_end_date                varchar2(256);
      l_employee_id             varchar2(256);
      l_allow_access_to_schemas varchar2(256);
      l_person_type             varchar2(256);
      l_default_schema          varchar2(256);
      l_groups                  varchar2(256);
      l_developer_role          varchar2(256);
      l_description             varchar2(256);
    begin
    apex_util.fetch_user (
      p_user_id                  => apex_util.get_current_user_id,
      p_workspace                => l_workspace,
      p_user_name                => l_user_name,
      p_first_name               => l_first_name,
      p_last_name                => l_last_name,
      p_web_password             => l_web_password,
      p_email_address            => l_email_address,
      p_start_date               => l_start_date,
      p_end_date                 => l_end_date,
      p_employee_id              => l_employee_id,
      p_allow_access_to_schemas  => l_allow_access_to_schemas,
      p_person_type              => l_person_type,
      p_default_schema           => l_default_schema,
      p_groups                   => l_groups,
      p_developer_role           => l_developer_role,
      p_description              => l_description);
    apex_util.create_user(
      p_user_id        => :P124_USER_ID,
      p_user_name      => :P124_USER_NAME,
      p_first_name     => :P124_USER_FIRST_NAME,
      p_last_name      => :P124_USER_LAST_NAME,
      p_email_address  => :P124_USER_EMAIL_ID,
      p_web_password   => 'xxxx',
      p_default_schema => l_default_schema);
    end;Scott

  • I have a problem creating a pdf from within Firefox using the print to function.

    I have a problem creating a PDF from within Firefox. I get an error message stating that Adobe PDF creation cannot continue because Acrobat is not activated. Acrobat Pro then opens. If it try to create the PDF again, the same problem. I have FF ver 3.6.10 and Acrobat Pro 8 (from Acrobat CS3).

    This is an Apple user forum, no-one from Apple is here.

  • Creating DVD Chapters from within DVD studio Pro

    Hey,
    Is this possible? Can we create DVD chapters from within DVD Studio Pro?
    Chris

    Yes, you can add chapter markers in the DVDSP timeline, although they are not frame accurate as they are in FCP. You'll typically get them within about half a second as they can only sit on a 'GOP' boundary, and these occur roughly every 15 frames equivalent.
    To add a marker you move the playhead to where you want it and type the 'm' key, pretty much as in FCP.
    The chapter marker then defines the start of a chapter for playback. You can manipulate the navigation such that only one chapter plays before you go back to the menu, or you can start at a marker and continue onwards. You can even create lists of markers that are not in track order and have playback jump about between them, although it's not always wise to do so!

  • Creating Purchase Requisitions from within PS (ie from network)

    When creating purchase requisitions from within Projects Systems (ie activating them from a network) is there a "standard" way to put a cost center on the Purchase Requisition?  Currently no cost center is put on the account assignment.  We are looking at doing a custom field on the network header to hold the cost center and then a user exit to take this cost center and put it on the purchase requisition (and reservations) but before we go to all this trouble thought maybe I should check to see if I am missing something obvious?  Is there a more straight-forward way to accomplish this?  We know that we cannot edit the account assignment in ME52N becuase the PR originates from the network and therefore can only be changed from the network.
    Any input welcome.  Thanks.

    Dear Laura,
    When you will create Purchase Requistion through Network, system automatically takes account assignment category as "N" i.e Network. This you can not change in ME52N transaction.
    So this is a standard practise for generating Purchase Requistion through Network in PS Module.
    As you said putting Cost Center in Network Header as a Account Assignment Category which will go up to PO creation by using some User Exit which will not be possible in PS Module as per my knowledge is concern.
    But you want to keep Cost Center as as a Account Assignement Category you need to create manual Purchase Requisition through ME51N transaction.
    Hoping this will be useful to you.
    Regards,
    Sandeep

  • Create fixed assets from within the transaction for creating the purchase order

    Hello All,
    I have gone through the notes on help.sap.com related to automatic creation of asset master record at the time of creating purchase order.  I am not sure how do we achieve this?
    Link to the notes on help.sap.com
    SAP Library - Asset Accounting (FI-AA)
    Any suggesstions from the expert group is appreciated.
    Thank you,
    Vinay

    Hi Vinay
    I know there is a feature whereby you assign asset classes per material group and then you create assets from within the PO. I never used it though
    Let me tell you one thing or rather ask you. Will you as a finance consultant be willing to let a MM guy create the assets??
    Or will a MM guy be willing to create it?? If you allow them, you should be ready for surprises.
    Honestly, this is a feature not worth exploring unless a FI guy is willing to create the PO. I would suggest the creation of asset masters should be with FI only
    Br. Ajay M

  • Creating rules - possible from within an email?  what do diff options mean?

    In previous email programs I've used (Eudora, Outlook), it is possible to create a rule while you're in a specific email, to direct it to a mailbox you've already set up. Is this possible in Mail, or are rules only created from within the Preferences dialog (a lousy choice)?
    Also, can someone direct me to a list of definitions for each of the various options in the Rules dialog? My rules aren't working right, and I'm sure it's because I'm misunderstanding the subtle differences between the From/To/Any Recipient/Account/etc options.
    Thanks!

    To create a rule you have to go through Preferences/Rules. But as you set up a rule any appropriate values from the currently seelected email will be prefilled. So if you receive an email from me, and as you look at it you decide you don't want to see any more from me, you pull up the Rules dialog, click on Add Rule, and you will see that the From option has my email address filled in for you. If you change the filter option from From to Subject, the subject of my email will be filled in.
    I don't know of any document that outlines the different options - have you looked at help? (This is not a smart answer, my mail help isn't working and I'm afraid I haven't bothered to fix it.) For the specific cases you mention:
    From: the email address that shows in the From column in the mail list
    To: is not necessarily you. It might for example be the name of a mail list, or it might be that the sender has included you as a CC or BCC, and so your name does not appear in the To:
    Any Recipient: recipients (people this mail is delivered to) may be listed in the To: section, the CC: section, or the BCC: section. If you get a lot of mail that you want to filter, and a common feature is that Tom Jones always appears in one of these, but not the same one, then use Any rather than the specific recipient choices
    Account: I have 5 or 6 different email accounts. I might want to treat differently mail from Tom Jones to me at one of those accounts from mail to me at another of those accounts.
    If you want to post some problematic rules, with what is happening and what you had expected would happen, maybe someone can help.
    Incoming mail is tested agains the rules in sequence, and triggering a rule does not necessarily stop the mail being tested against subsequent rules. It is often a good idea to consider whether the last action on a rule should be "stop evaluating rules".
    AK

  • Creating form element from within a component

    Hi all,
    I am trying to create a form element within a component
    function which is then called from a .cfm page which has the cfform
    tags. I keep getting a context validation error for the form
    element tag. Here is some sample code:
    <cfcomponent name="yourComponent">
    <cffunction name="createTag" returntype="string"
    access="public">
    <cfsavecontent variable="returnContent">
    <cfselect name="thisSelect">
    <option value="0">Value 1</option>
    </cfselect>
    </cfsaveconten>
    <cfreturn returnContent>
    </cffunction>
    </cfcomponent>
    And in the .cfm page:
    <cfform>
    <cfinvoke component="yourComponent" method="createTag"
    returnVariable="returnContent"/>
    <cfoutput>#returnContent#</cfoutput>
    </cfform>
    The error occurs in the function and it says the cfselect
    must be within a cfform. I tried the function without the save
    content and just set the output="yes" but the same error occurs.
    Any help appreciated in how to get around this. Just putting
    the code in the .cfm is not an option for this.
    Any help appreciated.
    Jim

    quote:
    Originally posted by:
    jim1234
    Thanks for the reply. Yes, that works. So it looks like it
    has to do with the function call.
    After some further investigation, I found out that a regular
    <select> works, it's just the <cfselect> that does not.
    ColdFusion wants it directly within the <cfform> tag.
    Something does not make sense. If the cfsavecontent worked in
    the cfm file, there is no reason for it not to work in a cfc.
    If you want to persue this, the next troubleshooting step is
    to copy the function to your cfm file and see if it works. I
    suspect that you are trying something simple as a proof of concept.

  • Creating zip-files from within Bridge?

    Is there anybody who has got a script that works with Bridge CS5.5?
    I got only this, but it appears not to work with my Bridge CS5.5: http://forums.adobe.com/message/3568148#3568148
    Anybody can help?

    Hmm,
    today I started it up and there is no error message anymore. I can activate the script in Bridge Preferences/Startup Scripts.
    The only problem is, I don't know on which part of the program I would find the zip action now...
    Anybody has run the script and can tell me where it appears? Is it when I rightclick a file that I can choose to zip it?
    Or is it at the same part where I can create a pdf with contact prints?
    Thx

  • Creating an Order from within the Order_Save badi

    Hi Experts,
    I'm creating trying to create a sales order with in the 'order_save' badi.
    I heard that this is not a recommended practice.
    Any inputs on why this has to be avoided?
    Regards,
    Kris.

    Hi kris,
    DOnt worry about creating a transaction while saving a Document. In my previous project I used save badi not only to create new but also to Create and then attach the same to the transaction which is saved and then update the same as well with product.
    You can use the save badi but only make sure that you Dont; use the COmmit work or any Commit bapi else you will get short dumps while saving "Express document terminated"(Dump type).
    Hope this Helps.

  • Unable to create PDF files from any application in any Acrobat version

    Hello, I am hoping someone can help me find a solution to a problem I am having creating PDF files.
    I have searched the Internet for a solution to this problem and can't find any information that helps me.
    I am running OSX 10.8.5 on a 2.5 GHZ Intel i5 Mac Laptop
    I cannot create PDFs from any program, Quark, Word, ect.
    When I try to print to the PDF printer, the printer pauses when it tries to open the Distiller. When I click resume, it pauses itself again.
    I have tried to save the document and create the PDF from within the distiller itself and get this error log:
    %%[ Error: undefined; OffendingCommand: MMXPR3 ]%%
    %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
    %%[ Warning: PostScript error. No PDF file produced. ] %%
    I was originally using Acrobat 8, But I installed the trial version of Acrobat 11 and it has the same problem.
    The problem seems to be something to do with the distiller. I have a lot of Adobe software so I am trying to avoid a clean/re-install of Adobe software but will do it as a last resort.
    Thanks in advance for any suggestions.

    Hi,
    Besides pamma has suggested, here are similar issues, you can take a look at:
    http://unsolicitedbutoffered.blogspot.com/2014/01/quick-fix-volume-syntax-error-when.html
    http://crowdsupport.telstra.com.au/t5/T-Suite-Applications/There-was-an-error-opening-this-document-The-filename-directory/td-p/197425
    Best Regards,
    Lisa Chen
    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]
    Lisa Chen
    TechNet Community Support

  • Creating a Step for Background Job from within ABAP Program

    Step-1: I have a Report in ECC, which is scheduled as Background Job, which writes the file to the Application Server(UNIX)
    Step-2:  Trigger a Unix Command to ftp the file to other server.
    Both Step-1 & Step-2 can be done from SM36. 
    Another Scenario:
    Users can run the report in background from SE38 or using the transaction code for the report, In this case we want to call the external command.
    Instead of calling the External Command as below in the report, I want to create a Step from within the program when it is scheduled in background mode.
    CALL 'SYSTEM' ID 'COMMAND' FIELD lc_unixcom.    [ Here lc_unixcom has the External Command ].
    Any ideas??? Appreciate help.

    Hi,
    For submitting a report step, you may use either SUBMIT ... VIA JOB ... or JOB_SUBMIT function module.
    For external commands, this should be done only by calling JOB_SUBMIT function module.
    Sandra

  • Creating New Entity Instances within OPA

    This is another one that I think I know the answer to, but I think it is best to confirm.
    In prior versions, it was not possible to create entity instances within RuleBurst/Haley Office Rules. Is that still the case in OPA?
    For example, my rules are determining the status of a case and the reason(s) why that status was determined. The case status may be Denied and the reasons may be "invalid customer Id", "expenses to income ratio too high", "primary customer not employed long enough", etc. I want to return all the reasons for the status. While the list of reasons is pre-determined, the ones that apply to a particular case are dynamic, as any, but not all can apply.
    Given this situation using a database, I would create an instance of reason for each applicable one and link it to the case. In the past, with OPA's predecessor(s), it was not possible to create new instances from within. They either had to all be passed into the rulebase or a list of all allowable reasons attributes had to be created and then set to true for the ones that applied.
    My preference is to create the instances inside OPA. Is that functionality provided in the current version?
    Thanks,
    Terry

    Hi Terry,
    Michael is correct that you can't write rules at design time which will dynamically create new entity instances at runtime. However, perhaps the new inferred relationships functionality in v10 could address what you're trying to do.
    You can write rules which conclude membership of an inferred relationship. So you might always have, say, 10 instances of 'the reason' in every case, but as for which of those instances apply in any particular case, it depends on the details of the case. You could use an inferred relationship to collect up the entity instances which apply in the case.
    First you'd need to set up a regular one-to-many relationship to instantiate the 10 instances at runtime - this would be done in the usual way. Then you'd also need to set up an inferred relationship and write rules to conclude the members of the inferred relationship. The instances which are members of the inferred relationship are then effectively the list of entity instances you wanted to create in your example above.
    Have a look at this OPM Help article: http://www.oracle.com/technology/products/applications/policy-automation/help/opm10_1/Content/Rules%20using%20entity%20instances/Reason_about_relship_between_2_entities.htm
    Cheers,
    Jasmine

  • Creating Room Instance from Web Dynpro Development Component

    Hi Experts,
    I would like to instantiate a Room Instance based on a pre-created Room Template from within a Web Dynpro Development Component. I had a look at the <i>Collaboration Rooms API Cookbook</i>, which provides all the code examples I need, but which asks that I import the following classes:
    import com.sap.ip.collaboration.room.api.IRooms;
    import com.sapportals.portal.prt.runtime.PortalRuntime;
    Problem is I don't have and can't find those libraries. I am developing in a track on the DTR and all solutions that I have found to the problems thus far require me to import a local jar file. Surely I should rather import a Software Component with the required library into my project? Does anyone know what the name of this Software Component is or what the correct way is to do this?
    Also, a somewhat related problem. If I want to create a Room Instance from an Application Service, how would I go about doing this. Unlike with a Web Dynpro project, I can't setup the build path or Used DCs, so how will I gain access to that library?
    Thank you,
    JP

    Beevin, thanks for the reply.
    I am aware that adding the jars manually to the build path is a possibility, but isn't this a local only solution? What I mean is, lets say I do this and check the code into the DTR - surely the code won't compile on my co-workers' machines as the paths to the jar files are different for them? Unless you mean to somehow add the jar file from the server, in which case could you please elaborate on how to do this?
    This still doesn't solve the application service problem, does it? How can I access those library from the CAF DC?
    Thanks

  • Hyperlinks not converting when creating a pdf from Word 2010 to Adobe Acrobat 11.0.6

    First off, let me say that these are not table of contents hyperlinks.  I have created a document in Word 2010 (not a MAC) with hyperlinks to files residing on our company's intranet.  In Word the hyperlinks work great but when I create the pdf, the links do not work.  I have converted using both PDFMaker from Word and Create a pdf from within Acrobat.  Yes, I have all the boxes checked regarding saving links.  The links appear to work partially.  Meaning that when I hover the cursor over the link, the pointy finger appears but when I click I get a pop-up message telling me the file could not be opened.  Also, when I hover over the hyperlink, the address appears.  So, I think it knows there's a link and it tries to open but can't.  When I create the file within Adobe the link works - once.  When I click on the link I get a pop-up window asking me if I want to save my file before closing.  After my response the file closes and the linked file opens.  However, when I go back into the file and try the hyperlink again, I get the pop-up telling me the file cannot be opened.  HELP!  I am at my wits end.  After spending hours yesterday trying to research (I think I read every thread related to hyperlinks but I am not using a Mac, table of contents or Adobe 7 around which it seems all the prior questions revolve) and futily creating and recreating the pdf (as if doing the same thing repeatedly would somehow magically work) I am about to give up.  This is a document that will be published to our intranet for use by employees which cross-references other documents to which they can refer for additional information.  I would prefer to publish a pdf and not a Word document.  Any suggestions would be appreciated.

    Thanks for your input Bill. I've checked the preferences and "view large images" is turned on. It's not all of the images which are missing, only certain ones do not transfer over to PDF.

Maybe you are looking for

  • Partitioning previously used Windows NT File System for use with Mac and PC

    With reference to this thread I found when searching for a solution: Can Windows NT File System(NTFS) format external hard drive work on iMac? Below is the comment which led to me creating this new thread. "rkaufmann87Sep 8, 2014 8:26 AM Re: Can Wind

  • Urgent : changes in a report generated by report generator

    Hi, I have one requirement. One report R006 is there, generated by report generator in KE30. I wanna a new report with same o/p as of R006, but with some filteration. Can anyone suggest how to do this? Thanks in advance. Thanks, Harsh Edited by: Shoe

  • Safari and Mozilla Crash After 10.4.8

    I have been running Mozilla mainly as my internet browser and it keeps on unexpectedly closing on me. This is the error I receieve: Date/Time: 2006-10-11 14:03:18.289 -0500 OS Version: 10.4.8 (Build 8L2127) Report Version: 4 Command: Safari Path: /Ap

  • One way replication from MS sql server to Oracle 10g

    Hi, We are using Sql server 2005 windows 2003 32 bit and Oracle 10g 10.2.0.3 on linux 64 bit Is it possible to replcate table data on real time from sql server (2005 32 bit or sql server 2000 32 bit)to oracle 10g running on linux 64 bit? If yes then

  • More mail misery after Leopard upgrade

    Mac mail works well but I am having great problems with my ISP. I have deleted my plist and re entered my BT account. The connection doctor says no problem but when I try to retrieve mail the progress window beneath my mail boxes says receiving 8 mai