Best practices to generate an output HTML to send by mail

Hello

In our 11g application we are generating a mail plaintext database plsql, with little data retrieved by a query.

Now, mail is growing complex, so we´d like to put a little more shaped (an html table, I guess).

I see a few solutions:

1 crap: create html with concat string and a good ol' ' cursor for loop.

2. get the result of the query in xml format and apply an xsl stylesheet to generate the html string. Cleaner, but it's worth? How can you get the HTML?

Can you suggest me a good practice to achieve this? Any oracle package?

We currently use the #2 option in one of our applications, and yes it is worth.

This approach separates data layout and allows different formats to come from the same source, for example html, text, csv, and formats the same oox (.xlsx).

Any oracle package?

XMLTransform() function

XMLType transform() method

DBMS_XSLPROCESSOR

http://docs.Oracle.com/CD/E11882_01/AppDev.112/e23094/xdb08tra.htm#ADXDB0900

Tags: Database

Similar Questions

  • Best practices for integrating flex application in html

    Hello guys

    I don't know what the best practice is to embed the flex application. We couldn't use the html code in flex builder. You guys edit html of other tools files to integrate the swf file when the application is completed or when there are other ways to do it. Thanks for the reply.

    Hi Jerry,

    Why you couldn't use the html generated code in flex builder. In the html wrapper file generated in FlexBuilder you have SWF embed code directly, as well as javascript Flash Player detection code... If your users do not have the FlashPlayer installed or if they not have the latest version of Flash Player installed, then the application invite users to install the latest Flash player plugin...

    What is the problem that you have obtained the help of the html wrapper file generated in FlexBuilder.

    Thank you

    Jean Claude Chari

  • HTML and CSS best practices for Eloqua?

    Hello Topliners community,

    My name is Ben and I am a Web Designer. Currently looking for guidance on best practices in HTML and CSS when you work with Eloqua. I am interested in best practices for email and landing pages.

    Thank you

    Ben

    For landing pages, you can use a bit of HTML, CSS, and Javascript like on any other page. For example, we use the Bootstrap on a couple of our Eloqua landing pages.

    Support for HTML and CSS is much more limited. It is one of the best resources I've seen for CSS support:

    http://www.campaignmonitor.com/CSS/

  • Best practices - dynamic distribution of VI with LV2011

    I'm the code distribution which consists of a main program that calls existing (and future) vi dynamically, but one at a time. Dynamics called vi have no input or output terminals. They run one at a time, in a subgroup of experts in the main program. The main program must maintain a reference to the vi loaded dynamically, so it can be sure that the dyn. responsible VI has stopped completely before unloading the call a replacement vi. These vi do not use shared or global variables, but may have a few vi together with the main program (it would be OK to duplicate these in the version of vi).

    In this context, what are best practices these days to release dynamically load of vi (and their dependants)?

    If I use a library of project (.lvlib), it seems that I have to first build an .exe that contains the top-level VI (that dynamically load), so that a separate .lvlib can be generated which includes their dependencies. The content of this .lvlib and a .lvlib containing the top-level VI can be merged to create a single .lvlib, and then a packed library can be generated for distribution with the main .exe.

    This seems much too involved (but necessary)?

    My goal is to have a .exe for the main program and another structure containing the VI called dynamically and their dependents. It seemed so straighforward when an .exe was really a .llb a few years ago

    Thanks in advance for your comments.

    Continue the conversation with me here is the solution:

    Runs like a champ. All dependencies are contained in the packed library and the dynamic call works fine.

  • Best practices of VCO - combination of workflow

    I took a modular approach to a task, I am trying to accomplish in VCO. I want to take action against the network to ANY NAT routed ORG in a specified org.  Here is where I am now. Would like to comment on what is possible or recommended before you start down the wrong path. I have two separate workflows individually do what I need to do and now I need to combine them.  Two of these workflows work well separately and I am now ready to combine both in a single workflow.

    1 Both Workflows.jpg

    (1) with the help on this forum of Joerg, I was able to return all ORG networks in a particular ORG, then filters according to the fenced mode return array ONLY NAT network routed ORG.  Name of the workflow is «Routed BACK ORG nets» The input parameter is an organization, and the output parameter is an array of NAT routed networks ORG.

    1 RETURN ORG Net.jpg

    2) there is an existing workflow (comes with the VCD 1.5 plugin) that configures a routed NAT ORG network. The input parameter is a routed Org network of NAT. name of the workflow is 'Routed SECURE ORG Net' and I would like to use this (slightly modified) workflow as it is perfect for a task I need to fill.

    1 Secure ORG Nets.jpg

    I think there are two options.

    (1) to include javascript code and the logic of the 'SECURE Ext ORG' which has several elements in the workflow in the workflow for "Nets of ORG routed BACK" Net inside the loop of the search RETURN flow.

    (2) the second option is to add the 'SECURE routed ORG Net' as part of workflow for existing workflow "Nets of ORG routed RETURN" as part of workflow.  I like this approach better because it allows me to keep them separate and reuse elements of the workflow or individually.

    Issues related to the:

    What is recommended?

    Y thre restrictions on what I can pass as an INPUT to the second workflow (embedded) parameter? Can I pass only the JavaScript object references or can I get through an array of '.name' routed networks NAT ORG property in the table?

    I assume that the input parameters for the second workflow can be invited in the first and passed as OUTPUT to the second workflow (embedded) where they will be mapped as INPUT?

    I read through the developer's guide, but I wanted to get your comments here also.

    Hello!

    A good principle (from software engineering) is DRY: don't repeat yourself!

    So call to a workflow library indeed seems to be the best approach for the majority of use cases. (So you don't have to worry about maintaining the logic, if something changes in the next version,...) That's exactly what the workflow library is for.

    To move objects to a workflow item, you can use all the inventory items, basic (such as boolean, string, number) and generic data types ones (all, properties). Each of them can also be an array.

    However, the type must adapt to the input of the called Workflow parameter (or be "ANY").

    So in your case, I guess that the COURSE called...-Workflow is waiting for just a single network (perhaps by his name, probably also OrgNetwork).

    You must create the logic of loop to go through all the networks you want to reconfigure manually (in your "external" workflow).

    For an example: see http://www.vcoteam.info/learn-vco/creating-workflow-loops.html

    And as Tip: the developer's Guide is unfortunately not really useful for this "methodology" - related issues. See the examples on http://www.vcoteam.info , the beautiful videos on youtube ( http://www.vcoportal.de/2011/11/getting-started-with-workflow-development/ ) and watch the recording of our session at VMworld: http://www.vcoportal.de/2011/10/workflow-development-best-practices/ (audio recording is in the post in mp3 format)

    See you soon,.

    Joerg

  • Best way to generate a PWM for a stint with LabView2010 and a laptop

    Hello

    as mentioned in the title, I'm looking for the best way to generate a PWM signal to a relay. I want to use a laptop computer and the LabView2010 for she. I have read through several topics, but after a time that he just got more confused. For example the NI USB-6008 OEM case seems to be a solutiion at low prices, but I don't know if I can use for the generation of PWM signals like this thread says is not possible:

    http://forums.NI.com/T5/Multifunction-DAQ/using-PWM-on-NI-6008/m-p/231860/highlight/true#M13339

    But then again this thread right here makes it seem as if it was doable:

    http://forums.NI.com/T5/Digital-I-O/generating-a-PWM-using-USB-6008/m-p/421654/highlight/true#M5527

    Once again in abbreviated form.

    What I need:

    -the best way to generate a PWM signal to control a relay

    What I have so far:

    -LabView2010

    -Laptop

    If possible, it would be good to have two channels for two separate signals, but it is more low importance right now.

    Hey Kambra,.

    The first thread you mention is correct, you can't make output PWM in any deterministic mode with a 6008. The 6008 is strictly software timed, which means that each digital writing that is done in the unit must go through the operating system and down to the device. And there is a lot of jitter of the involved BONE. The second article you mention says the same thing. They emphasized that they could reduce the jitter of some, but still can not remove it entirely. In the second thread, they mention using a M-series USB device do output PWM deterministic (timed material).

    The compromise really down to your application and its requirements. If your application to control the relay requires no determinism, then you can use the 6008. If you need precise control over the relay, try the USB M series.

  • How to determine the number of highlight ' to write ' for DAQmx generate analog output?

    On the configuration of the stage for DAQmx generate analog output, there is a field "value to write.  I can't find any explanation for what it is, how it determines the value to enter, nor what he writes.  I am trying to go through the tutorials and it cling.

    Someone would give an explanation?

    Hello

    To write value specifies the value to write in the channels, lines or ports selected in string parameters. In other words, this value will be the value of your DC output (for example if you enter 5, your output will be 5V). To get information on different fields in SignalExpress, access help"context-sensitive help. A pane will appear in your work environment that displays the coordinates of the field when you place your pointer over them.

    For new users of SignalExpress:

    Generation of DC signals with NI DAQmx devices: step in the DAQmx build, select 1 sample (on request) in the generation Mode dropdown. You can select a programmatic input to generate, or you can remove the check mark from the check box use programmatic input and specify a value for generating in the field of value to write . NOR-DAQmx help also provides additional information about the data generation.

    Best regards

    M Ali

    Technical sales engineer

    National Instruments

  • encoding issue "best practices."

    I'm about to add several command objects to my plan, and the source code will increase accordingly. I would be interested in advice on good ways to break the code into multiple files.

    I thought I had a source file (and a header file) for each command object. Does this cause problems when editing and saving the file .uir? When I run the Code-> target... file command, it seems that it changes the file target for all objects, not only that I am currently working on.

    At least, I would like to have all my routines of recall in one file other than the file that contains the main(). Is it a good/bad idea / is not serious? Is there something special I need to know this?

    I guess what I'm asking, what, how much freedom should I when it comes to code in locations other than what the editor of .uir seems to impose? Before I go down, I want to assure you that I'm not going to open a can of worms here.

    Thank you.

    I'm not so comfortable coming to "best practices", maybe because I am partially a self-taught programmer.

    Nevertheless, some concepts are clear to me: you are not limited in any way in how divide you your code in separate files. Personally, I have the habit of grouping panels that are used for a consistent set of functions (e.g. all the panels for layout tests, all the panels for execution of / follow-up... testing) in a single file UIR and related reminders in a single source file, but is not a rigid rule.

    I have a few common callback functions that are in a separate source file, some of them very commonly used in all of my programs are included in my own instrument driver and installed controls in code or in the editor of the IUR.

    When you use the IUR Editor, you can use the Code > target file Set... feature in menu to set the source file where generated code will go. This option can be changed at any time while developing, so ideally, you could place a button on a Panel, set a routine reminder for him, set the target file and then generate the code for this control only (Ctrl + G or Code > Generate > menu control reminders function). Until you change the target file, all code generated will go to the original target file, but you can move it to another source after that time.

  • (Best practices) How to store the adjustment curve values?

    I got two sets of data, Xreal and Xobserved, abbreviated Xr and Xo. Xreal is a data set that contains the values of sensor from a reliable source (it's a pain to collect data for), and Xobserved is a set of data containing the values from a less reliable source, but much less maintenance, sensor. I'll create a VI that receives the entry of these two sources of data, stores it in a database (text file or csv) and crosses some estimators of this database. The output of the VI will be best approximation of linear adjustment (using regression, not the Xreal) of the input value of Xobserved.

    What are best practices for storage Xreal and Xobserved? In addition, I'm not too known using best VI made, take CSV files for entry? How would format it best?

    '

    Keep things simple.  Convert the table to CSV file and write to a text file.  See attached example.

  • Best practices with streams WCCP of WAAS

    Hello

    I have a module WAAS SRE 910 in 2911 router that intercepts packets this router with WCCP.

    All packets are received by the external interface (gi 0/2, connected to a switch with port configured in vlan WCCP) and are sent back to the router via the internal interface (IG 1/0 connected directly to the router):

    WAAS # sh interface IG 1/0

    Internet address: 10.0.1.1

    Subnet mask: 255.255.255.0

    State of the admin: to the top

    Operating status: running

    Maximum transfer unit size: 1500

    Entry errors: 0

    Entry packets dropped: 0

    Packets received: 20631

    Output errors: 0

    Output packets dropped: 0

    Load interval: 30

    Input rate: 239 bps, 0 packets/s

    Output: 3270892 bps, 592 packets/s

    Packets sent: 110062

    Auto-negotiation: on

    Full Duplex: Yes

    Speed: 1000 Mbit/s

    WAAS # sh interface 2/0 gi

    Internet address: 10.0.2.1

    Subnet mask: 255.255.255.0

    State of the admin: to the top

    Operating status: running

    Maximum transfer unit size: 1500

    Entry errors: 0

    Entry packets dropped: 0

    Packets received: 86558

    Output errors: 0

    Output packets dropped: 0

    Load interval: 30

    Input rate: 2519130 bps, 579 packets/s

    Output rate: 3431 bps, 2 packets/sec

    Packets sent: 1580

    Auto-negotiation: on

    Full Duplex: Yes

    Speed: 100 Mbps

    The default route configured in module WAAS is 0.0.0.0/0 to 10.0.1.254 (interface of the router).

    It would be better that the packets leave module WAAS of the external interface (instead of the internal interface)?

    Is there a best practice recommended by Cisco on this?

    Thank you.

    Stéphane

    Hi Stephane,

    That's right, internal interface means SM1/0.

    The best way is to have traffic at the start of the internal interface module so that we are sure, it hits the redirect exclude statement and that we do not have the crest of the loops because WCCP.

    Kind regards

    Nicolas

  • Best practices of the NAC

    Hello friends, I was instructed to implement a NAC solution, and I wonder if there are some documents that show some best practices recommended by Cisco. Thanks in advance.

    Start here:

    http://www.Cisco.com/en/us/products/ps6128/prod_presentation0900aecd80549168.html

    These should give you a good idea of the general concepts that you can use.

    HTH,

    Faisal

  • common components of jar, naming, best practices

    11.1.2.1 forms

    I added a few components of pot. For example, Directprint.jar

    As they have dependencies on other common components, you must download and add in the formsweb.cfg

    For example, Directprint must fontbox, pdfbox and commons-logging

    This components are alive, so change their versions.

    Well, now I have java in 1.6-1.8 guests, so I used it to upgrade some components of the jar.

    For example from pdfbox - 1.8.6.jar to pdfbox - 1.8.11.jar

    The question is: what is the best practice? The version of the name of band (rename just pdfbox.jar) so I don't have to change formsweb.cfg or preserve the name and line archive file formsweb.cfg?

    If you rename the file... you have to do before everything that manifests properties adding and signing a hassle?

    I guess it's a matter of taste and requirement. Personally I don't like the version numbers in the file names, because ultimately I don't like what version I am running a certain file... as long at it works. I certainly do not want to change the file name in each config file I do and do not remember to add it.

    However; If you want to be able to move forward and backward between the versions I guess it's easier to have a version number in the file name. If you encounter a no - Go in the current version just swap the file name in the configuration files. Of course, if you implement version control, you can update to revision until the problem is introduced, generating the .jar file from scratch and redeployed. If you don't have version control, you can only hope that you have a backup of your file.

    By simply adding a version number in the file name, you will need to update the formsweb.cfg whenever you add a new version of your jar file. By not doing this you will not have to do.

    Both have their advantages and disadvantages, you will have to decide for yourself what best suits your needs.

    If you rename the file... you have to do before everything that manifests properties adding and signing a hassle?

    Yes. The manifest must not care about the file name, but the process of signing only.

    see you soon

  • Best practices for color use in Adobe CC?

    Hi all

    Is there an article that describes the best practices for use of color in Adobe CC?

    I produce a mixture of viewing online (PDF, for the most part) and real world print projects - often with the obligation for both. I recently updated my PANTONE + bridge books for the first time in ages and I am suddenly confused by the use of Lab colors in the Adobe Suite (Illustrator and InDesign).

    Everything I found online, looks like Lab color mode preferred to use because it is device independent. And perceptual (on screen), it looks much closer to the color, it is trying to represent. But when I mark a Spot color Illustrator rectangle using laboratory coordinates, to the sides of a rectangle using PANTONE + bridge CP and then export it to PDF, the version of CP to mix CMYK color corresponds exactly to my Pantone book - while the version of laboratory (after converted to CMYK using the ink Manager) is far away.

    I have this fantasy to manage only a single Illustrator or InDesign file for both worlds (PDF) printed and online. Is not possible in practice?

    Any info describing the basic definitions of the color modes - or even a book tracing more than use them in the real world - would be much appreciated!

    Thank you

    Bob

    Here are a few best practices you can already do.

    1 make sure that your color settings are synchronized on all applications.

    2. use a CMYK profile appropriate for your print output. Lab spot colors convert to CMYK values based on the CMYK icc profile.

    3. include icc profiles when save or export pdf files

    In theory, your imagination is possible today. It requires color management and the use of icc profiles. You can place RGB images in InDesign and use Pantone colors in your objects. The problem lies in the printers. If a printer uses a RIP with built in Pantone library, the colors will match when printing. Unfortunately, this kind of CUT is more expensive and not enough printers use them. Most of them is always manually approximate CMYK values composition given Pantone colors.

  • Best practices for obtaining of all activities for a Contact

    Hello

    I'm new to the Eloqua API and wonder what is the best practice to download a list of all the activities for a given contact.

    Thank you

    Hi Mike,.

    For activities in general, export activity 2.0 bulk will be the best way to go. Docs are here: http://docs.oracle.com/cloud/latest/marketingcs_gs/OMCBB/index.html

    But it can be a complex process to wrap around your head if you are new to the Eloqua API. So if you're in a pinch and don't bother the association of these activities to campaigns and just shoot a little contact activities, you can resort to the use of REST API calls.

    Calls of the activity are visible (from the console Firebug or Chrome), if you open any contact record and go to the tab "activity log". If you put in all the activities, it will trigger a dozen or more calls or you can choose an individual from the drop-down list to inspect this call more in detail.

    Best regards

    Bojan

  • Best practices for the integration of the Master Data Management (MDM)

    I work on the integration of MDM with Eloqua and are looking for the best approach to sync data lead/Contact changes of Eloqua in our internal MDM Hub (output only). Ideally, we would like that integration practically in real time but my findings to date suggest that there is no option. Any integration will result in a kind of calendar.

    Here are the options that we had:

    1. "Exotic" CRM integration: using internal events to capture and queue in the queue changes internal (QIP) and allows access to the queue from outside Eloqua SOAP/REST API
    2. Data export: set up a Data Export that is "expected" to run on request and exteernally annex survey via the API SOAP/REST/in bulk
    3. API in bulk: changes in voting that has happened since the previous survey through the API in bulk from Eloqua outside (not sure how this is different from the previous option)

    Two other options which may not work at all and who are potentially antimodel:

    • Cloud connector: create a campaign questioning changes to schedule and configure a connector of cloud (if possible at all) to notify MDM endpoint to query contact/lead "record" of Eloqua.
    • "Native" integration CRM (crazy): fake of a native CRM endpoint (for example, Salesforce) and use internal events and external calls to Eloqua push data into our MDM

    Issues related to the:

    1. What is the best practice for this integration?
    2. Give us an option that would give us the close integration in real-time (technically asynchronous but always / event-based reminder)? (something like the outgoing in Salesforce e-mail)
    3. What limits should consider these options? (for example API daily call, size response SOAP/REST)

    If you can, I would try to talk to Informatica...

    To imitate the integrations of native type, you use the QIP and control what activities it validated by internal events as you would with a native integration.

    You will also use the cloud api connector to allow you to set up an integration CRM (or MDM) program.

    You have fields of identification is added objects contact and account in Eloqua for their respective IDs in the MDM system and keep track of the last update of MDM with a date field.

    A task scheduled outside of Eloqua would go to a certain interval and extract the QAP changes send to MDM and pull the contacts waiting to be sent in place of the cloud connector.

    It isn't really much of anything as outgoing unfortunately use Messaging.  You can send form data shall immediately submit data to Server (it would be a bit like from collections of rule of integration running of the steps in processing of forms).

    See you soon,.

    Ben

Maybe you are looking for

  • can I send a fax using thunderbird

    I use Open Office Writer and would like to directly send a fax from the "file" drop down.My Windows 7 computer is connected to the Canon MX410 all-in-one printer that hasability to fax. Y at - it a configuration using Thunderbird that will allow me t

  • cover photo book options

    Is it possible to order a photo book with no pictures on the cover (e.g., text only)? If Yes, what are the options of color, material, etc. ?

  • Shaw and my new Linksys WRT310N router

    Basically, I tried a router Dlink $ 50 and failed. I tried a $ 100 Linksys router and failed. My ISP is Shaw and no 3rd party router seems to work with it. I have connected my Shaw Surfboard Cable Modem to the Internet port on my router and router co

  • Smartphones blackBerry Email Setup icon does not

    Its been very frustrating. The configuration option of Internet e-mail in the installer of my bb torch 9800 is unresponsive. I tried to restart, wipeout, reinstalling the operating system, twice, but nothing works. And when I try to exit the Setup pr

  • B200 M4 SAN Boot with attached local disk

    Hello I have a B200 M4 blade want to do boot SAN in the storage Bay. The blade has a local disk. I need maintain disk local and would like to bypass for the start of SAN. When I set up a 'political Local Disk Configuration' using 'No Local Storage"as