<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7453407</id><updated>2011-11-15T17:17:13.124-08:00</updated><title type='text'>htmldb</title><subtitle type='html'>Development notes, tips and tricks for Oracle's HTML DB</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://htmldb.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7453407/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://htmldb.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Flieger</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7453407.post-108972572171083027</id><published>2004-07-13T06:32:00.000-07:00</published><updated>2004-07-13T06:35:21.710-07:00</updated><title type='text'>Change color of report cell based on cell value</title><content type='html'>This is from the following post: &lt;a  href="http://forums.oracle.com/forums/thread.jsp?forum=137&amp;thread=230789&amp;message=651450&amp;q=666f726d61742063656c6c#651450"&gt;http://forums.oracle.com/forums/thread.jsp?forum=137&amp;thread=230789&amp;message=651450&amp;q=666f726d61742063656c6c#651450&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;select serial,&lt;br /&gt;'&amp;lt;div style="width:100%;height:100%;background:'||&lt;br /&gt;case when purchase_price &amp;gt; 5000 then 'red' else 'green' end&lt;br /&gt;|| '"&amp;gt;'||purchase_price||'&amp;lt;/div&amp;gt;' purchase_price,&lt;br /&gt;brand&lt;br /&gt;from hardware&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7453407-108972572171083027?l=htmldb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://htmldb.blogspot.com/feeds/108972572171083027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7453407&amp;postID=108972572171083027' title='263 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7453407/posts/default/108972572171083027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7453407/posts/default/108972572171083027'/><link rel='alternate' type='text/html' href='http://htmldb.blogspot.com/2004/07/change-color-of-report-cell-based-on.html' title='Change color of report cell based on cell value'/><author><name>Flieger</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>263</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7453407.post-108964207481711428</id><published>2004-07-12T07:19:00.000-07:00</published><updated>2004-07-12T07:21:14.816-07:00</updated><title type='text'>Create users programmatically</title><content type='html'>See: &lt;a href="http://forums.oracle.com/forums/thread.jsp?forum=137&amp;thread=229135&amp;message=644651&amp;q=6d616e79207573657273#644651"&gt; Htmldb forum&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In a nutshell:&lt;br /&gt;select :WORKSPACE_ID from dual;&lt;br /&gt;&lt;br /&gt;...in the SQL Workshop's SQL Command Processor to determine your workspaces workspace_id (also known as a security_group_id internally). assuming that query came back with a value of 12345, you could then run a block like...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;BEGIN&lt;br /&gt;wwv_flow_api.set_security_group_id(p_security_group_id=&gt;12345);&lt;br /&gt;&lt;br /&gt;wwv_flow_fnd_user_api.create_fnd_user(&lt;br /&gt;p_user_name =&gt; 'regular_user',&lt;br /&gt;p_email_address =&gt; 'myemail@mydomain.com',&lt;br /&gt;p_web_password =&gt; 'regular1') ;&lt;br /&gt;&lt;br /&gt;wwv_flow_fnd_user_api.create_fnd_user(&lt;br /&gt;p_user_name =&gt; 'developer_user',&lt;br /&gt;p_email_address =&gt; 'myemail@mydo.com',&lt;br /&gt;p_web_password =&gt; 'dev1',&lt;br /&gt;p_developer_privs =&gt; 'ADMIN') ;&lt;br /&gt;&lt;br /&gt;end;&lt;br /&gt;/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7453407-108964207481711428?l=htmldb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://htmldb.blogspot.com/feeds/108964207481711428/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7453407&amp;postID=108964207481711428' title='18 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7453407/posts/default/108964207481711428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7453407/posts/default/108964207481711428'/><link rel='alternate' type='text/html' href='http://htmldb.blogspot.com/2004/07/create-users-programmatically.html' title='Create users programmatically'/><author><name>Flieger</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>18</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7453407.post-108964054194187534</id><published>2004-07-12T06:55:00.000-07:00</published><updated>2004-07-12T06:55:41.940-07:00</updated><title type='text'>Highlight rows in report based on column values.</title><content type='html'>You will have to create a report template for this one.&lt;br /&gt;Let's say you have a report based on "SELECT * FROM emp" and you want to highlight the rows where the salary is greater than 2000.&lt;br /&gt;Create a report template (i usually just copy an existing one and modify it.)&lt;br /&gt;For Row Template 1, specify the look for your highlighted row: &amp;lt;td bgcolor="yellow" #ALIGNMENT#&amp;gt;&amp;lt;b&amp;gt;#COLUMN_VALUE#&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;Here i made the background yellow and also made the text bold.&lt;br /&gt;In Row Template 1 Expression enter the PL/SQL expression that determines the condition for using row template 1:&lt;br /&gt;#SAL# &amp;gt; 2000&lt;br /&gt;(Note that column substitution variables are enclosed by '#' -- see side bar on the right side of report template wizard.)&lt;br /&gt;Now, in Row Template 2 specify the look for your un-highlighted rows (i just left out the bgcolor and bold tags):&lt;br /&gt;&amp;lt;td #ALIGNMENT#&amp;gt;#COLUMN_VALUE#&amp;lt;/td&amp;gt;&lt;br /&gt;Now enter the condition for displaying the second template:&lt;br /&gt;#SAL# &amp;lt;= 2000.&lt;br /&gt;&lt;br /&gt;In your report page, navigate to the Report Attributes tab and select your newly created report template in the 'Layout and Pagination' section.&lt;br /&gt;&lt;br /&gt;That's it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7453407-108964054194187534?l=htmldb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://htmldb.blogspot.com/feeds/108964054194187534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7453407&amp;postID=108964054194187534' title='13 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7453407/posts/default/108964054194187534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7453407/posts/default/108964054194187534'/><link rel='alternate' type='text/html' href='http://htmldb.blogspot.com/2004/07/highlight-rows-in-report-based-on.html' title='Highlight rows in report based on column values.'/><author><name>Flieger</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>13</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7453407.post-108923353976535631</id><published>2004-07-07T13:32:00.000-07:00</published><updated>2004-07-08T07:50:47.640-07:00</updated><title type='text'>Dynamically highlight rows in report.</title><content type='html'>To dynamically highlight rows in a htmldb report you need to use javascript. I found a nice script to do this at  &lt;a href="http://www.dhtmlshock.com/text-effects/CellBackground/default.asp"&gt;www.dhtmlshock.com&lt;/a&gt; (thanks Shivaji.)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. &lt;br /&gt;Create or alter a report template. In the 'Before Each Row' section paste:&lt;br /&gt;&lt;br /&gt;&amp;lt;tr onMouseOver="cOn(this);" onMouseOut="cOut(this);"&amp;gt;&lt;br /&gt;&lt;br /&gt;In the 'After Each Row' section paste:&lt;br /&gt;&lt;br /&gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&lt;br /&gt;2.&lt;br /&gt;In the report page definition click on the page attributes and navigate to the HTML Header section. Paste the following script into this section:&lt;br /&gt;&lt;br /&gt;-----------------------------------&lt;br /&gt;&lt;br /&gt; &amp;lt;script language="JavaScript1.2"&amp;gt;&lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt;To comply with copyright please download the script from here: &lt;a href="http://www.dhtmlshock.com/text-effects/CellBackground/default.asp"&gt;www.dhtmlshock.com&lt;/a&gt; &lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt; &amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt;-----------------------------------&lt;br /&gt;&lt;br /&gt;3.&lt;br /&gt;In the report region navigate to the 'Layout and Pagination' section and select the report template you altered above.&lt;br /&gt;&lt;br /&gt;4.&lt;br /&gt;Now the report row will get highlighted when you mouse over. If you want to change colors, edit the color attributes in the javascript.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7453407-108923353976535631?l=htmldb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://htmldb.blogspot.com/feeds/108923353976535631/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7453407&amp;postID=108923353976535631' title='20 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7453407/posts/default/108923353976535631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7453407/posts/default/108923353976535631'/><link rel='alternate' type='text/html' href='http://htmldb.blogspot.com/2004/07/dynamically-highlight-rows-in-report.html' title='Dynamically highlight rows in report.'/><author><name>Flieger</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>20</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7453407.post-108852320510056221</id><published>2004-06-29T08:32:00.000-07:00</published><updated>2004-06-29T08:34:00.780-07:00</updated><title type='text'>Update primary key with sequence number</title><content type='html'>To dynamically set a primary key column to a sequence number, add a page process that fires 'On Submit - After Computations and Validations' before the 'Process Row of [table]' process.&lt;br /&gt;Use a PL/SQL statement that selects the sequence.nextval into the primary key column:&lt;br /&gt;&lt;br /&gt;if :P3_EMPNO is null then&lt;br /&gt;select ct_id_seq.nextval into :P3_EMPNO from dual;&lt;br /&gt;end if;&lt;br /&gt;&lt;br /&gt;Make sure to use the if statement. If you don't then you will encounter No-data-found errors.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7453407-108852320510056221?l=htmldb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://htmldb.blogspot.com/feeds/108852320510056221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7453407&amp;postID=108852320510056221' title='14 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7453407/posts/default/108852320510056221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7453407/posts/default/108852320510056221'/><link rel='alternate' type='text/html' href='http://htmldb.blogspot.com/2004/06/update-primary-key-with-sequence.html' title='Update primary key with sequence number'/><author><name>Flieger</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>14</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7453407.post-108835484435028651</id><published>2004-06-27T09:44:00.000-07:00</published><updated>2004-06-27T09:47:24.350-07:00</updated><title type='text'>Pre-Update trigger</title><content type='html'>A trigger that functions similar to the pre-update trigger in Oracle forms is created by creating a page process that fires On Submit-Before validations and computations:&lt;br /&gt;&lt;br /&gt;-- This example populates the country_code field from a database table&lt;br /&gt;-- based on the value passed in from the state_code field.&lt;br /&gt;BEGIN&lt;br /&gt;  IF :P1036_STATE_CODE IS NOT NULL AND :P1036_COUNTRY_CODE IS NULL THEN&lt;br /&gt;    select country_code&lt;br /&gt;      into :P1036_COUNTRY_CODE&lt;br /&gt;      from ct_state_code&lt;br /&gt;     where state_code = :P1036_STATE_CODE;&lt;br /&gt;  END IF;&lt;br /&gt;END;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7453407-108835484435028651?l=htmldb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://htmldb.blogspot.com/feeds/108835484435028651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7453407&amp;postID=108835484435028651' title='15 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7453407/posts/default/108835484435028651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7453407/posts/default/108835484435028651'/><link rel='alternate' type='text/html' href='http://htmldb.blogspot.com/2004/06/pre-update-trigger.html' title='Pre-Update trigger'/><author><name>Flieger</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>15</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7453407.post-108835430288804427</id><published>2004-06-27T09:38:00.000-07:00</published><updated>2004-06-27T09:38:22.886-07:00</updated><title type='text'>Change the case of a field to upper when a page is submitted:</title><content type='html'>&lt;strong&gt;Change the case of a field to upper when a page is submitted:&lt;/strong&gt;&lt;br /&gt;Create a page process: Processing &gt; Processes&lt;br /&gt;On Submit and Before Computation&lt;br /&gt;Process: :P1036_STATE_CODE := UPPER(:P1036_STATE_CODE)&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7453407-108835430288804427?l=htmldb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://htmldb.blogspot.com/feeds/108835430288804427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7453407&amp;postID=108835430288804427' title='16 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7453407/posts/default/108835430288804427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7453407/posts/default/108835430288804427'/><link rel='alternate' type='text/html' href='http://htmldb.blogspot.com/2004/06/change-case-of-field-to-upper-when.html' title='Change the case of a field to upper when a page is submitted:'/><author><name>Flieger</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>16</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7453407.post-108835235361957891</id><published>2004-06-27T09:03:00.000-07:00</published><updated>2004-06-27T09:05:53.620-07:00</updated><title type='text'>Create a hyperlink</title><content type='html'>&lt;strong&gt;Create a hyperlink to another page and pass values:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Create a region item as ‘Display as Text (does not save state)’&lt;br /&gt;In the source put: &lt;br /&gt;a href="f?p=&amp;APP_ID.:1036:&amp;SESSION.::::P1036_CT_ID:&amp;P1032_CT_ID&lt;br /&gt;&lt;br /&gt;Note that variables are preceded by an ampersand (&amp;) and post ceded by a period (.).&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7453407-108835235361957891?l=htmldb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://htmldb.blogspot.com/feeds/108835235361957891/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7453407&amp;postID=108835235361957891' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7453407/posts/default/108835235361957891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7453407/posts/default/108835235361957891'/><link rel='alternate' type='text/html' href='http://htmldb.blogspot.com/2004/06/create-hyperlink.html' title='Create a hyperlink'/><author><name>Flieger</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7453407.post-108834882664971579</id><published>2004-06-27T08:05:00.000-07:00</published><updated>2004-06-27T08:07:06.650-07:00</updated><title type='text'>HTMLDB Blog</title><content type='html'>I have created this blog for people to help with Oracle's (TM) HTMLDB database development tool.&lt;br /&gt;I encourage people to submit ideas on how to solve development issues in order to share them with others.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7453407-108834882664971579?l=htmldb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://htmldb.blogspot.com/feeds/108834882664971579/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7453407&amp;postID=108834882664971579' title='33 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7453407/posts/default/108834882664971579'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7453407/posts/default/108834882664971579'/><link rel='alternate' type='text/html' href='http://htmldb.blogspot.com/2004/06/htmldb-blog.html' title='HTMLDB Blog'/><author><name>Flieger</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>33</thr:total></entry></feed>
