Auto generate apex pages based on metadata

Dear All,
Is there a way where I can auto-generate pages in apex by providing some metadata?
Ex: If I provide all the metdata with which kind of items to be created for the attributes and pass it to apex, can it generate the pages automatically then?
Or, if this metadata can be converted into xml file which can be given as a input to apex and then, can it then auto-generate pages from there on wards?
With question much more simplified, Can the apex pages be generated dynamically??
Regards,
Krishna

Is there a way where I can auto-generate pages in apex by providing some metadata?
Ex: If I provide all the metdata with which kind of items to be created for the attributes and pass it to apex, can it generate the pages automatically then?
Or, if this metadata can be converted into xml file which can be given as a input to apex and then, can it then auto-generate pages from there on wards?
With question much more simplified, Can the apex pages be generated dynamically?? There are several ways to approach your question.
If you want to generate actual Apex pages through code, you can take a look at ApexGen:
http://code.google.com/p/apexgen/
If you just want to create dynamic pages (ie dynamic content on a page), just use one or more PL/SQL Regions on your page and render whatever you need on the page, possibly in combination with the APEX_ITEM package.
Also check out the new Apex 4 plugin architecture.
- Morten
http://ora-00001.blogspot.com

Similar Messages

  • Generate an page based on an word-document

    Hi,
    i have to create an webpage/document based on an Worddocument (may be an .dot) or pdf ....
    there i should select values from database like: Dear .... name from database, courses which attend the user and so on ...
    Could anybody give me a clue how to realize that?
    yonah

    Hi Bob,
    i run ddl.sql in sql-workshop successfully
    i installed the application mail_merge.sql
    and i uploaded the rtf, but i get the following errormessage:
    The requested URL /pls/apex/SCHEMA.mail_merge was not found on this server. SCHEMA is my actual used schema
    What's wrong?
    yonah

  • Auto generate reminder email based on two values

    I have a property payment system set where a customer chooses a property, then select a duration they will be in the property (either 364 days or 301 days)
    they then select how they will pay the money, either monthly, termly, 3 set payments or total
    what i need is a automated email reminder to be sent out to the customer based on the date they moved in and there payment option
    this seems rather complicated and wanted to know if anyone can lend an idea of how this can be acheived
    thanks in advance

    I would do this with a cron job. Depending on the way the payment system works, the cron job could run daily or weekly.
    You need to set up a script to query the database and send out emails based on the results. However, you need to be careful about sending a large number of emails using mail() in a loop. Not only is it slow, but it's likely to be seen as spam.

  • Formatted search to auto generate Item No.

    Hi,
    Customer is using 2007A PL47. They had requirement to auto generate Item No based on UDF created in Item Master Data(OITM). The stock code structure is as follow:
    Item No=EP(hardcode 2 char)+U_ProdRange U_ProdGroupU_ProdFamily+user defined text
    The keystroke steps are:
    1. Key in item description
    2. Select drop down list for U_ProdRange in OITM
    3. Select drop down list for U_ProdGroup in OITM
    4. Select drop down list for U_ProdFamily in OITM
    5. Formatted search to generate Item No based on 2,3, 4
    6. User keys in user defined text in Item No
    7. Fill in other relevant fields in Item Master Data
    8. Add Item Master Data
    May I know how to write the query in formatted search?
    Regards
    Thomas

    Hi,
    I had got solution.
    Try this Select TOP 1 'EP' +$[OITM.U_ProdRange] +$[OITM.U_Prodgroup] +$[OITM.U_ProdFamily]
    Regards
    Thomas

  • Redirect to 3 diffrent pages based on value in the Auto complete field.

    Hi Friends,
    I am using an "Auto complete field" in a page for searching(Apex version 4.0). But i need to get values from 3 tables and when clicking on the value redirect to any of the 3 pages based on the value.
    For example i am having 3 tables. 1.Customers 2.Sites 3.Employees. When i enter 'c' in the search field i need to get values from 3 tables to be listed in that "auto complete" field. i.e, if i am having customer with name 'cusotmer1', 'customer2' and site with names 'cisc1','cisc2' and employees with name'cid1','cid2' ; when i enter 'c' in the auto complete field all 6 values must be listed in the "auto complete" field and when clicking on 'customer1'/'customer2' need to redirect to page 'customer'. When clicking on 'cisc1'/'cisc2' redirect to "site" when clicking on 'cid1'/'cid2' redirect to employees page. Is there any way to achieve this. Please help.
    Regards,
    Nav

    Hi Nav,
    OK - on my page 1, I have a "Text Field with autocomplete" item called P1_SELECTION. The List of Values definition setting for this is:
    WITH D AS (SELECT ENAME || ' (Employee)' X
    FROM EMP
    UNION ALL
    SELECT DNAME || ' (Department)' X
    FROM DEPT)
    SELECT X
    FROM D
    ORDER BY 1This adds the appropriate suffix to each item to show where the data is from - you can change this if you want as this becomes part of the searchable text.
    On page 1, I have a normal SUBMIT button.
    Then I have two branches:
    1 - settings are:
    Branch Type: Branch to Page or URL
    Branch Point: On Submit: After Processing (After Computation, Validation, and Processing)
    Target Type: Page in this Application
    Page: 2 (the employee edit page)
    Clear Cache: 2
    Set these items: P2_ENAME
    With these values: &P1_SELECTION.
    Condition Type: Exists (SQL query returns at least one row)
    Expression 1:
    SELECT 1
    FROM DUAL
    WHERE :P1_SELECTION LIKE '%(Employee)'When Button Pressed: SUBMIT
    2 - settings are:
    Branch Type: Branch to Page or URL
    Branch Point: On Submit: After Processing (After Computation, Validation, and Processing)
    Target Type: Page in this Application
    Page: 3 (the department edit page)
    Clear Cache: 3
    Set these items: P3_DNAME
    With these values: &P1_SELECTION.
    Condition Type: Exists (SQL query returns at least one row)
    Expression 1:
    SELECT 1
    FROM DUAL
    WHERE :P1_SELECTION LIKE '%(Department)'When Button Pressed: SUBMIT
    On page 2 (the employee edit form), I have Computation with the following settings:
    Item Name: P2_EMPNO
    Type: SQL Query (return single value)
    Computation Point: Before Header
    Computation:
    SELECT EMPNO
    FROM EMP
    WHERE ENAME || ' (Employee)' = :P2_ENAME Condition Type: Exists (SQL query returns at least one row)
    Expression 1:
    SELECT 1
    FROM DUAL
    WHERE :P2_ENAME LIKE '%(Employee)'On page 3 (the department edit form), I have Computation with the following settings:
    Item Name: P2_DEPTNO
    Type: SQL Query (return single value)
    Computation Point: Before Header
    Computation:
    SELECT DEPTNO
    FROM DEPT
    WHERE DNAME || ' (Department)' = :P3_DNAMECondition Type: Exists (SQL query returns at least one row)
    Expression 1:
    SELECT 1
    FROM DUAL
    WHERE :P3_DNAME LIKE '%(Department)'The idea is that we append some fixed text to the end of the names in the autocomplete list. When the user clicks submit after selecting a name, one of the branches will be triggered depending on which fixed text is there. The branch sets the ENAME or DNAME value on the edit page and the computation on that page retrieves the appropriate EMPNO or DEPTNO value to put into the primary key page item (the main "Fetch Row..." process will then use that to get the real data for the record).
    Note that this assumes that ENAME and DNAME are unique on their tables - otherwise, the computations will not be able to find a single record and an error would be generated.
    Andy

  • Auto-generate new form as additional page

    I have a form I created in Adobe Acrobat. Is there a way that Acrobat can be set to auto-generate that form on additional pages as the need arises or is the only way to do this is create the additional pages initially?

    Yes, a form created in Acrobat can do this by spawning a hidden template page using JavaScript. If it has to work with Reader, however, you users will have to use Reader 11. It can work with older versions of Reader, but only if the document has been Reader-enabled with LiveCycle Reader Extensions, as opposed to just Acrobat.

  • What is the best way to auto-generate pages at an interval?

    In order to minimize the server's workload we're exploring
    ways of auto-
    generating pages that have dynamic content throughout our
    website.
    I know we could use CFSCHEDULE and have it make an
    HTTPRequest as its
    operation to read the dynamic page then use output to write
    the resultant
    page. However, if an error occurs during the request, the
    result is can be a
    blank file.
    So would it be a better approach to use CFSCHEDULE to run a
    page that would
    have the error checking using CFTRY and CFCatch, and as a
    result, have a
    go/no-go in terms of overwriting the previous successful
    version of the file
    via cffile?
    Does anyone have an example of such a system that would keep
    me from re-
    inventing the wheel?
    Thanks for your help,
    Michael Brown
    Webmaster
    Texas Department on Aging and Disability Services

    Michael,
    i have a "refresh" page for monitoring updates on a client
    site... the only issue is that this page must be kept open but it
    does goes thru numerous data sources and updates any pages as
    needed.
    nice thing is that you can keep a running track of generated
    content (with links) and check for errors, etc...
    basically page has line
    <META HTTP-EQUIV="REFRESH"
    CONTENT="900;URL=home.cfm?pdg=1&pdgg=1&pncom=1&dtst=1">
    the 900 is seconds (15min) and it just calls itself each
    time. page has all functions and reporting written in
    maybe will work your requirements. rest is just tags to
    trigger queries, etc and keep out the nosy.

  • How to Auto Submit a Page Process or Page in APEX ???

    Hi All,
    I have a requirement to auto submit a Page in my Application after a certain time interval.
    When the page is submitted I need to call a PL/SQL process to insert data in base table.
    Research Done so far: I tried achieving it by using "<PRE><meta http-equiv='refresh' content="20;f?p=&APP_ID.:15:&SESSION.::&DEBUG.::P15_TRY:R:" /></PRE>" in Page Header.
    This tag does refresh the page but also clears the value of items on the page.
    I have added a PL/SQL process that executes On-Load page header. This process does executes but by this time value of items on my page
    is cleared, so no record gets inserted in table.
    Ultimate issue is How to set the item values and Submit the page automatically at certain time interval.
    Thanks in Advance,
    Pushpendra Tomar

    I think you should use a javascript setInterval() event to re-submit your page:
    If you include something along these lines into your page's HTML header attribute:
    <script>
      dtm_timeout = 300; // you need to specify the timeout in milliseconds
      setInterval('doSubmit("FOOBAR")',dtm_timeout);
    </script>where "FOOBAR" is your request (i.e. replace with the appropriate value);
    Edited by: JoelC on 25-Apr-2010 22:23
    Whoops! missed out the quotes!

  • Flex project to auto-generate reports

    The requirements for the project I'm working on are to:
    1) Create a chart-based report definition
    2) Publish the definition to the database
    3) Auto generate the chart/report every X minutes/hours/days,
    etc as a pdf
    4) Notify users where to download the report
    So far, I've gotten the first part done so that the user can
    define the report. And, I think publishing to the database should
    be easy enough, however for the auto-generation, I was thinking of
    using flex with charting to draw the reports, but I'm a little
    fuzzy about generating the pdf and also about having the program
    auto-generate things. I have been using a simple servlet up to this
    point to communicate with the database (Oracle). However I was
    thinking of using BlazeDS since I've been reading about it.
    Does anyone have any experience with BlazeDS? Is it even
    necessary? Do you have any comments or suggestions about which
    technologies I should use to implement this solution?
    And as far as the PDF generation, I had looked into Alive
    PDF, but is there a better/easier solution?
    Thanks for any help you can offer!

    Not that I would recommend this in most case's but if the
    PDF's do not need to be dynamic you could use something like PDF995
    and send your page to it as a formatted print job. I had a client
    that wanted printouts from Filemaker in PDF so they could Email
    them to a list. Had to be automated so we just set up a print
    script in filemaker to print to a PDF converter. Don't think it was
    actually PDF995 and I do not remember what it was but I mention
    PDF995 because I use it at home. You just need something where the
    API allows you to specify the location to save too and the name of
    the file as part of the printjob. Send the files to a standard
    location on your server and trap the name of the file in a
    database. Bingo. Easy PDF's.
    Of course the alternate option is to auto generate your chart
    as a web viewable formatted for print version. As it changes notify
    your users with an email link of where to view it and then let them
    print their own PDF using PDF995 or other such utilities if they
    want to.
    And then get back to the Game of Half-Life2 Death Match going
    on in the server room.

  • Auto generate forms in Oracle BPM 10.3?

    Is there an option to auto generate a form in Oracle BPM 10.3?
    The scenario is like I(as a customer) have to fill a form with few details. the next I want (in the process) is, to auto generate a form with these details and a few extra ones...how is this possible?
    Im a newbie to Oracle BPM!:)
    thanks in advance

    There's no out of the box way to automatically generate a form on the fly from a customer perspective.
    There are three ways forms are usually created in Oracle BPM 10g. You can use the out of the box BPM Object presentations, hand code JSPs based on a BPM Object using a tag library Oracle provides, and hitting external web pages.
    Of the three, BPM Object presentations are the easiest if your team is unfamiliar with JSPs. BPM Object presentations are very simple to build initially - there's a wizard that prompts you for the attributes (fields) to display and the sequence you want them displayed. As the UI is built, you'll see text labels automatically added to the left of the fields. The labels added are based on the attribute's name. Modifying the presentations after they are build is fairly easy using a table and cell drag and drop paradigm.
    If you're a JSP shop, you should definitely go the JSP route.
    If your development team is building forms using another technology and are heavily invested in this, then go the external route.
    Hope this helps,
    Dan

  • How to generat multiple invoices based on per employee/contractor/services?

    Hello Experts / Dina,
    I am in situation where customer is in business of body shopping and charges to his final customer based on individual invoice / per employee /contracor & customer services. This was happening in legacy system but after the implementation of Oracle Project costing and Oracle Project billing, customer is not able to generate invoices per employee services. Rather consolidated invoices are getting generated.
    How to achieve this functionality in oracle project billing?
    Lets take example - On Project P1 for customer ABC, 3 below employees are working on different task for 3 months.
    Now after one month employees have been billed as shown below.
    Emp 1 - 1000 USD - for 100 Hrs
    Emp 2 - 2000 USD - for 200 Hrs
    Emp 3 - 1000 USD - for 50 hrs
    Now @ end of the month when invoice is getting generated is 1 invoice including 3 lines of amount total 4000 USD. There is problem; customer wants that there should be 3 different invoices per employee shoud generated based on above mentiond 3 diff lines for customer ABC.
    I guess with oracle projects billing - You can split the invoice based on Accrue through date ( which is not possible in this case ) and agreement ( which is also not possible in this case ) and different currency ( which is again not possible in this case) - I may be wrong when saying it is not possible. plz correct me if I am wrong.
    even I guess billing extension wont work. So is there any way to achive this?
    Right now only option i am thinking is let single invoice of 4000 USD with 3 different lines should pass to AR and while priniting the invoice customer can create 3 diff prints which includes individual lines. and while applying receipts on the single invoice in the system, customer can apply the receipts to indivual lines.
    but I am not sure about AUDIT issues.. Can some one think about any AUDIT issues comes to this approch or issues with TAX rounding amount issues ?
    Infact I would like to solve this issue with the help of Oracle Projects billing and not with custom invoice print program. I guess someone from you experts can figure it out to generate muiltple invoice based on employees / suppliers / contractors / materials etc.
    A suggestion on Extension / customization / seeded functionality of Oracle Project billing on thi issue would be gr8 help.
    Please help.
    Thanks
    Edited by: oracle_samba on Jan 7, 2013 1:06 AM
    Edited by: oracle_samba on Jan 7, 2013 1:07 AM

    Hi Dina,
    First of all thanks for your update :-) Your solution looks much promising.
    I thought of using billing extension but rejected on the ground that I would end up in generating events based on employee for their corsponding billig amounts so finally generating a consolidated invoice only in One GDI run. But what i was missing was pre-processing extension and running the extention in loop based on employee count.
    I am fully sure business would not have any issues of auto approving and releasing invoice upon generation. But my question is "is it possible to just approve the invoice & not release it using auto approve and release extension?" The reason is I think when GDI runs it only deletes Unapproved invoice & spare Approve invoices. - So please suggest.
    Also please validate my understanding about your solution with an existing example -
    As with the current example, there are 3 EMP presents so need to run GDI 3 times and develop pre-processing ext in a such a way that at each time it will put on hold on all the billable items except EMP1, and EMP2 and EMP3 on each consecutive run respectivly. And ensure that Auto Approve and release extension should be used in order to avoid overriding previously generated invoice? Am I right ?
    Many Many thanks for solution !!!
    Regards,
    :-)

  • Auto generated code in makefile

    For our product we have a TCL script that reads a series of text files and generates C++ classes for easy access to database records. Our code has been in use for make years and works very well. We have always used a solaris command prompt dmake to compile, which first generates the C++ files then complies them. It uses a series of enviroment variables which a user must set before compilation.
    I recently tried to create a Sun Studio Express based on NetBeans 6.5.rc1 project from a make file. This has worked for every other makefile except for this one. The others do not have any auto generated code.
    To run sun studio I in a command prompt source in the environments then run netbeans. Then I choose to build the product but I get an error. I then try to copy the command it is running into telnet window and it works fine. Does anyone have an idea on why in the sun studio I get and error while the telnet window works fine.

    I think the problem is that the SunStudio IDE runs the build command in a wrong directory.
    Can you verify that the working directory is correct?
    (it is in project properties: Build > Make)
    Also you can find this directory in the message in the output, when you try to build the project.
    That's the message, that you copied to the terminal window.
    Thanks,
    Nik

  • Missing Outcomes for Human Task in Auto-Generated ADF Project

    Hi
    I am using SOA Suite 11g (11.1.1.5) and have created a Human Task in my composite application and then auto-generated the appropriate task form using the wizard which has been successful and created the ADF project.
    My task has 3 outcomes the responses of which are then mapped out in the BPEL process.
    When the human task is raised it puts a notification in the BPM worklist as expected however the 'Actions' list on the notification is blank? I was expecting there to be 3 values in the Actions list one for each of my outcomes.
    I have tried re-building the ADF project from scratch from the task flow but still no joy.
    I have not changed the ADF project over its default.
    My next step is to look into the binding on the Actions picklist but I thought this was standard functionality and that the wizard handled this at the point of form generation.
    Any assistance greatly appreciated.

    Hi
    User error.
    I had sent the task to a group rather than a user. Before the task outcomes will display in the ADF page a user must first claim the notification using the 'Claim' button. On re-selecting the notification the task outcomes display as buttons.

  • Redirect to different pages based on user input value

    Hello,
    Anyone please help.
    I am trying to redirect to different pages based on user inputs. I have a form in which I have one text item and a submit button. For example consider text item to be empno; So once the user enters a empno and hits submit button; I need to redirect to different pages based on this job.
    For Ex: if user inputs empno whose job is 'ANALYST' then redirect to page 1
    if user inputs empno whose job is 'MANAGER' then redirect to page 10
    For this scenario. i wrote a pl/sql process for the submit button; but no luck -- its not at all redirecting instead its in the same page. Below is the process.
    declare
    v_job varchar2(20);
    begin
    select job into v_job from emp where empno = :P9_EMPNO_R;
    if v_job = 'ANALYST' then
    OWA_UTIL.REDIRECT_URL('f?p=&APP_ID.:1:&SESSION.::&DEBUG.::', TRUE);
    end if;
    if v_job = 'MANAGER' then
    OWA_UTIL.REDIRECT_URL('f?p=&APP_ID.:10:&SESSION.::&DEBUG.::', TRUE);
    end if;
    end;Please help. I am using Oracle APEX version 4.2 and database Oracle 11g R2
    Thanks,
    Orton

    orton607 wrote:
    Hello,
    Anyone please help.
    I am trying to redirect to different pages based on user inputs. I have a form in which I have one text item and a submit button. For example consider text item to be empno; So once the user enters a empno and hits submit button; I need to redirect to different pages based on this job.
    For Ex: if user inputs empno whose job is 'ANALYST' then redirect to page 1
    if user inputs empno whose job is 'MANAGER' then redirect to page 10
    For this scenario. i wrote a pl/sql process for the submit button; but no luck -- its not at all redirecting instead its in the same page. Below is the process.
    declare
    v_job varchar2(20);
    begin
    select job into v_job from emp where empno = :P9_EMPNO_R;
    if v_job = 'ANALYST' then
    OWA_UTIL.REDIRECT_URL('f?p=&APP_ID.:1:&SESSION.::&DEBUG.::', TRUE);
    end if;
    if v_job = 'MANAGER' then
    OWA_UTIL.REDIRECT_URL('f?p=&APP_ID.:10:&SESSION.::&DEBUG.::', TRUE);
    end if;
    end;Please help. I am using Oracle APEX version 4.2 and database Oracle 11g R2
    Thanks,
    OrtonI have a similar scenario in my application and this is how I handle it.
    1. Create a page item on the page, say Px_PAGE_NUM
    2. Create a "On Submit - After Computations and Validations" page process to set the above page item. In your case, you can use the same logic that you have already in place (except the call to OWA_UTIL.REDIRECT_URL) :
    declare
    v_job varchar2(20);
    begin
    select job into v_job from emp where empno = :P9_EMPNO_R;
    if v_job = 'ANALYST' then
       :Px_PAGE_NUM := '1';
    end if;
    if v_job = 'MANAGER' then
       :Px_PAGE_NUM := '10';
    end if;
    end;3. Create a "On Submit: After processing" branch. Specify the "Target Type" as "Page in the application" and "Page Number" as &Px_PAGE_NUM. (with the dot).
    I hope the above helps.
    BTW, the following thread in the forum related to OWA_UTIL.REDIRECT_URL might help:
    issue OWA_UTIL.REDIRECT_URL with APEX 4.1.1

  • Is it possible to increase/decrease pages based on a number selected from a dropdown?

    I need to the end user to fill out information on between 1 and 5 properties.  Is it possible to increase/decrease the number of identical forms pages based on a dropdown from page one?  For example, if the local property manager decides there are 3 competing properties being developed, they will select 3 from a dropdown on the first page and three identical pages will be generated.
    Thanks

    This might be usuful to you : http://forums.adobe.com/message/5638520
    See this example : https://adobeformscentral.com/?f=dCixP9gCn9BlK72%2AKla92w
    Gen

Maybe you are looking for

  • I have a dual monitor setup.  When I paste develop settings from one image to another, Lightroom switches the active window.

    Strange problem.  Lightroom 5.5.  Windows 8.1. Dual monitor setup. I'm processing a large batch of photos.  I have Monitor #1 set as my main develop window, with Monitor #2 set only to display a larger version of the image I'm working with. If I copy

  • PO  with reference to Purchase requisition

    Hi Friends Good Morning, could you please help me out on one issue.My Client requirement is that Purchase order should be created only with reference to Purchase requisition.How can this be done please help ASAP. Regards VS

  • Keynote exporting to FLASH will not run on browsers

    I have created several short keynote files that were then exported to Flash so that they can be viewed on an HTML page created by dreameweaver. However, after exporting them to a swf file and then importing the flash file into an html page all I get

  • File permission issue when indexing from JSP

    HI I have a class that I intend to use both in batch file and in JSP that will build a search index (Lucene) somwhere in the file system outside the web root. The class works great when called from the batch script but when I try to use it in the JSP

  • Can't get rid of corrupted font in Safari.

    Hi Guys, Need help getting rid of what looks like corrupted font in my Safari. It doesn't appear in any other web browsers I have. The font seems corrupted in each of the applications making icloud unusable in Safari. I have reinstalled Safari, check