<?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-1007023164321475350</id><updated>2012-01-11T00:27:58.748-08:00</updated><category term='apache'/><category term='data type'/><category term='screen'/><category term='create ofbiz component'/><category term='condition'/><category term='postgresql'/><category term='mvc in OFBiz'/><category term='java'/><category term='beanshell'/><category term='paging'/><category term='acrion'/><category term='diff'/><category term='imas'/><category term='dialog box'/><category term='freemarker'/><category term='form'/><category term='OFBiz'/><category term='eclipse installation'/><category term='ui'/><category term='dojo'/><category term='drop down list'/><category term='opensource'/><category term='message'/><category term='linux installation'/><category term='lookup'/><category term='Eclipse'/><category term='ofbiz installation'/><category term='services'/><category term='simple method'/><category term='sort field'/><category term='screen decorator'/><category term='ubuntu'/><category term='erp'/><category term='widget'/><category term='svn'/><category term='patch'/><title type='text'>ToonZtudio in the OFBiz World</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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>33</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-6146571872311497567</id><published>2010-11-03T23:37:00.000-07:00</published><updated>2010-11-03T23:37:32.180-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='form'/><title type='text'>สร้างเงื่อนไขในการแสดง field ใน form</title><summary type='text'>ในการใช้  form ของ OFBiz หากมีเงื่อนไขในการแสดงผล field ต่างกัน ก็สามารถใช้ form เดียวกันได้ เพียงแต่ต้องกำหนดเงื่อนไขในการแสดงผลของ field นั้นให้ถูกต้อง
ในกรณีที่ต้องการแสดงผล field โดยใช้เงื่อนไขนี้ OFBiz จะเตรียมคำสั่ง use-when ไว้ให้ใช้ ดังนี้
&lt;field name="USER_TITLE" use-when="roleTypeId==SUPPLIER||roleTypeId==CUSTOMER||roleTypeId==INTERNAL_ORGANIZATION" title="${uiLabelMap.CommonTitle}${</summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/6146571872311497567/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/11/field-form.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/6146571872311497567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/6146571872311497567'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/11/field-form.html' title='สร้างเงื่อนไขในการแสดง field ใน form'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-3453221709760371827</id><published>2010-11-03T21:02:00.000-07:00</published><updated>2010-11-03T21:02:42.968-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='drop down list'/><category scheme='http://www.blogger.com/atom/ns#' term='form'/><title type='text'>การใช้คำสั่ง ignore-if-empty ใน drop down list</title><summary type='text'>ในการคิวรี่ข้อมูลออกมาจาก entity บางครั้งมีข้อมูลที่เป็น empty ติดมาด้วย
หากไม่ต้องการนำมาแสดงใน drop down list ให้ใช้คำสั่ง ignore-if-empty ต่อท้ายการ select ข้อมูลออกมา 


จะเห็นว่าข้อมูลในส่วนของ group name เป็นค่าว่าง อาจเนื่องมาจากการทดสอบการเพิ่มข้อมูลและการสร้าง services ต่างๆ ในขั้นตอนการพัฒนาที่ไม่ได้ถูกลบออกจากฐานข้อมูล หากต้องการซ่อนค่าดังกล่าว ให้ทำการเพิ่มโค้ดในส่วนของ </summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/3453221709760371827/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/11/ignore-if-empty-drop-down-list.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/3453221709760371827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/3453221709760371827'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/11/ignore-if-empty-drop-down-list.html' title='การใช้คำสั่ง ignore-if-empty ใน drop down list'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_LSF2YHPdtow/TNIu622819I/AAAAAAAAAF8/noGg5Pu2iXs/s72-c/Screenshot.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-7460616646804962947</id><published>2010-11-01T21:12:00.000-07:00</published><updated>2010-11-01T21:12:58.283-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='simple method'/><category scheme='http://www.blogger.com/atom/ns#' term='data type'/><category scheme='http://www.blogger.com/atom/ns#' term='services'/><title type='text'>การ convert ชนิดของข้อมูลใน simple method ของ OFBiz</title><summary type='text'>ในบางกรณีที่ชนิดของข้อมูลที่รับมาจาก field ในฟอร์มเป็นคนละชนิดกับที่อยู่ใน entity เราสามารถใช้ simple method แปลงข้อมูลที่รับมาจาก field เพื่อเอาไปทำงานต่อไปได้ ดังนี้

&lt;simple-method method-name="addProductionRunRoutingTask" short-description="Check parameters and add a production run task."&gt;
        &lt;call-map-processor in-map-name="parameters" out-map-name="context"&gt;
            &lt;</summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/7460616646804962947/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/11/convert-simple-method-ofbiz.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/7460616646804962947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/7460616646804962947'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/11/convert-simple-method-ofbiz.html' title='การ convert ชนิดของข้อมูลใน simple method ของ OFBiz'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-78320169629514681</id><published>2010-10-20T10:41:00.000-07:00</published><updated>2010-10-20T10:41:18.089-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='beanshell'/><category scheme='http://www.blogger.com/atom/ns#' term='form'/><category scheme='http://www.blogger.com/atom/ns#' term='acrion'/><title type='text'>การเขียน beanshell เพื่อคำนวนค่าใน row-actions</title><summary type='text'>ใน OFBiz เราสามารถคำนวนค่าใดๆ ในแต่ละแถวของการแสดงผลของ form ได้ โดยใช้คำสั่ง beanshell script ใน action หรือ row-actions ของ form ดังนี้

&lt;row-actions&gt;
            &lt;set field="estimatedTotalMilliSeconds" value="${bsh:estimatedMilliSeconds * quantity}" type="BigDecimal"/&gt;
&lt;/row-actions&gt;

จากโค้ด ได้ทำการคำนวน โดยการนำค่าของ estimatedMilliSeconds มาทำการคูณกับ quantity แล้วเก็บไว้ในตัวแปร </summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/78320169629514681/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/10/beanshell-row-actions.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/78320169629514681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/78320169629514681'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/10/beanshell-row-actions.html' title='การเขียน beanshell เพื่อคำนวนค่าใน row-actions'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-6624931885399521121</id><published>2010-10-18T01:22:00.000-07:00</published><updated>2010-10-18T01:22:40.138-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sort field'/><category scheme='http://www.blogger.com/atom/ns#' term='form'/><title type='text'>การเรียงลำดับฟิล์ดในฟอร์มของ OFBiz</title><summary type='text'>ใน form ของ OFBiz แล้ว บางครั้งการวางตำแหน่งของโค้ดตามลำดับก่อนหลัง ไม่ใช่ลำดับของการแสดงผลก่อนหลังของฟอร์มแต่อย่างใด หากต้องการเรียงลำดับฟิล์ดให้ได้ตามต้องการแล้ว ควรเพิ่มโค้ดของ &lt;sort-order&gt;&lt;/sort-order&gt; ไว้ก่อนจะจบฟอร์มด้วย ดังนี้

&lt;form default-map-name="partyGroup" default-table-style="basic-table" focus-field-name="groupName" header-row-style="header-row" name="EditDepartment" target="</summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/6624931885399521121/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/10/ofbiz.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/6624931885399521121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/6624931885399521121'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/10/ofbiz.html' title='การเรียงลำดับฟิล์ดในฟอร์มของ OFBiz'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-2433192421209589949</id><published>2010-08-25T20:16:00.000-07:00</published><updated>2010-08-25T20:16:04.147-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='services'/><category scheme='http://www.blogger.com/atom/ns#' term='message'/><title type='text'>การเพิ่มข้อความ successMessage ให้แสดงข้อความแจ้งว่าทำงานสำเร็จแล้ว</title><summary type='text'>โดยปกติเมื่อมีการทำงานสำเร็จแล้ว เช่น ทำการอัพเดตงานสำเร็จ หรือทำการสร้างงานสำเร็จ ควรจะมีการแจ้งผลของงาน ว่าสำเร็จหรือไม่ ดังรูป


ทำได้โดยการเพิ่มโค้ดดังนี้ ใน service ที่มีการทำงาน

&lt;property-to-field resource="DefaultMessages" property="service.default.message" field="successMessage"/&gt;

เช่นต้องการสร้างข้อความแสดงผลของการ update Project Phase จึงเพิ่มโค้ดในไฟล์ ProjectsServices.xml เป็นต้น</summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/2433192421209589949/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/08/successmessage.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/2433192421209589949'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/2433192421209589949'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/08/successmessage.html' title='การเพิ่มข้อความ successMessage ให้แสดงข้อความแจ้งว่าทำงานสำเร็จแล้ว'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_LSF2YHPdtow/THXbz2qNo9I/AAAAAAAAAF0/p61fNadyOq0/s72-c/Screenshot.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-2952982220826058868</id><published>2010-08-19T03:09:00.000-07:00</published><updated>2010-08-19T03:12:16.741-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='form'/><category scheme='http://www.blogger.com/atom/ns#' term='dojo'/><title type='text'>การสร้าง List โดยใช้ Dojo</title><summary type='text'>ในการสร้างฟอร์มเพื่อช่วยคัดกรองรายงานในโมดูล report ของ imas จะมีขั้นตอนดังบทความ การเพิ่ม filter ในการแสดงรายงานโดยใช้ dojo และ การทำ lookup ให้กับการเลือกดูฟอร์ม โดยใช้ dojo ดังนั้น ในบทความนี้จะแสดงเฉพาะในส่วนของการสร้าง List โดยใช้ Dojo มีขั้นตอนดังนี้

1. ใน form ทำการสร้าง drop down list ดังนี้

&lt;select id="ProductTypeInventory" name="ProductTypeInventory" dojoType="dijit.form.ComboBox" </summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/2952982220826058868/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/08/list-dojo.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/2952982220826058868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/2952982220826058868'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/08/list-dojo.html' title='การสร้าง List โดยใช้ Dojo'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_LSF2YHPdtow/TG0DR0bnbKI/AAAAAAAAAFk/5Pqth4gBbAI/s72-c/Screenshot-2.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-5770937346850608427</id><published>2010-08-19T02:46:00.000-07:00</published><updated>2010-08-19T02:47:02.079-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='lookup'/><category scheme='http://www.blogger.com/atom/ns#' term='dojo'/><title type='text'>การทำ lookup ให้กับการเลือกดูฟอร์ม โดยใช้ dojo</title><summary type='text'>จากบทความ การเพิ่ม filter ในการแสดงรายงานโดยใช้ dojo ก่อนหน้านี้ ได้พูดถึงการอำนวยความสะดวกให้แก่ผู้ใช้งานโปรแกรม โดยการใช้ calendar ของ dojo ในการเลือกวันที่ ส่วนในบทความนี้จะพูดถึงการใช้ dojo ดึงเอา Lookup ของ OFBiz มาแสดงเป็น popup แบบ ajax ที่มีลักษณะดังรูป


มีขั้นตอนดังนี้

1. เพิ่มฟิลด์ที่ลงในไฟล์ ARAccruedInvoiceDialog.ftl ดังนี้

&lt;input name="partyIdFrom" size="25" id="</summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/5770937346850608427/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/08/lookup-dojo.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/5770937346850608427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/5770937346850608427'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/08/lookup-dojo.html' title='การทำ lookup ให้กับการเลือกดูฟอร์ม โดยใช้ dojo'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_LSF2YHPdtow/TGz2XspPykI/AAAAAAAAAFM/6cA3Qdfw6HE/s72-c/Screenshot.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-6152638768341574039</id><published>2010-08-18T02:30:00.000-07:00</published><updated>2010-08-18T02:30:44.726-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='imas'/><category scheme='http://www.blogger.com/atom/ns#' term='OFBiz'/><category scheme='http://www.blogger.com/atom/ns#' term='ui'/><category scheme='http://www.blogger.com/atom/ns#' term='dojo'/><title type='text'>การเพิ่ม filter ในการแสดงรายงานโดยใช้ dojo</title><summary type='text'>โดยปกติการเรียกดู report ของ OFBiz จะมีข้อมูลที่จะต้องแสดงในปริมาณมาก จึงควรมีส่วนที่ให้ผู้ใช้งานสามารถสามารถเลือกดูได้ว่า จะดู report ของส่วนไหน และช่วงเวลาไหน

เพื่อให้ง่ายต่อการใช้งานของผู้ใช้ Imas จึงเลือกที่จะนำเอา Dojo มาสร้าง User Interface ซึ่งจะได้ form ในรูปแบบนี้


จาก form นี้ ผู้ใช้งานสามารถเลือกดู report ได้ว่า ต้องการช่วงไหนบ้าง

การนำเอา dojo มาช่วยใน user interface ในส่วนของ form</summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/6152638768341574039/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/08/filter-dojo.html#comment-form' title='2 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/6152638768341574039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/6152638768341574039'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/08/filter-dojo.html' title='การเพิ่ม filter ในการแสดงรายงานโดยใช้ dojo'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_LSF2YHPdtow/TGthIrNczBI/AAAAAAAAAFA/LIfPxTXJNqY/s72-c/Screenshot.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-7918924714138551132</id><published>2010-07-28T22:06:00.000-07:00</published><updated>2010-07-28T22:06:00.370-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='screen'/><category scheme='http://www.blogger.com/atom/ns#' term='paging'/><category scheme='http://www.blogger.com/atom/ns#' term='form'/><title type='text'>การใส่ paging ให้ list form</title><summary type='text'>ในไฟล์ที่มีการแสดงรายการ จำเป็นต้องใส่ paging ให้กับ list form นั้น เนื่องจากหากมีข้อมูลในปริมาณมาก จะทำให้การโหลดหน้านั้นมาแสดงผลช้า สามารถใส่ paging ให้ list form ได้ดังนี้

1. ใน form ที่มีการ list รายการทั้งหมดมาแสดง มีโค้ดดังนี้

&lt;form name="listLookupWorkEffort" list-name="listIt" target="" title="" type="list" paginate-target="LookupWorkEffort" odd-row-style="alternate-row" </summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/7918924714138551132/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/07/paging-list-form.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/7918924714138551132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/7918924714138551132'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/07/paging-list-form.html' title='การใส่ paging ให้ list form'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-6306795410800239400</id><published>2010-07-28T00:02:00.000-07:00</published><updated>2010-08-09T03:33:00.317-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='lookup'/><category scheme='http://www.blogger.com/atom/ns#' term='form'/><title type='text'>การส่ง parameter จาก field เป็น hidden field ไปให้ form และ screen</title><summary type='text'>กรณีศึกษา
ในการค้นหาโครงการของโมดูล project management จะมี lookup เพื่อให้ผู้ใช้สามารถเลือก project ที่ต้องการค้นหาได้ แต่เมื่อกด search แล้ว การค้นหาเจอทั้งข้อมูลที่มี workEffortTypeId เป็น PROJECT, TASK, EVENT, PHASE และอื่นๆ ด้วย ทำให้มีข้อมูลมาแสดงเยอะมาก ดังนั้นจึงต้องการกรองเฉพาะข้อมูลที่มี workEffortTypeId เป็น PROJECT เท่านั้น สามารถทำได้ดังนี้

1. ที่ screen ในส่วนของ actions </summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/6306795410800239400/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/07/parameter-field-hidden-field-form.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/6306795410800239400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/6306795410800239400'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/07/parameter-field-hidden-field-form.html' title='การส่ง parameter จาก field เป็น hidden field ไปให้ form และ screen'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-5457034864272338645</id><published>2010-07-27T23:30:00.000-07:00</published><updated>2010-07-27T23:30:47.412-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='screen decorator'/><category scheme='http://www.blogger.com/atom/ns#' term='condition'/><title type='text'>การสร้าง screenlet เพื่อสร้างข้อความระหว่างการสร้างข้อมูลใหม่และการแก้ไขข้อมูลในฟอร์ม</title><summary type='text'>เมื่อมีการเรียกใช้ form เดียวกันจาก 2 actions คือ มีการสร้างข้อมูลใหม่ผ่าน form และแก้ไขข้อมูลเดิมผ่าน form หากไม่มีการแก้ไข ในส่วนของ labels จะไปดึง uiLabelMap เดียวกันมาแสดงผล ซึ่งก่อให้เกิดความสับสนระหว่างการสร้างและการแก้ไขข้อมูล สามารถแก้ปัญหาได้ดังนี้

1. เพิ่มโค้ดลงใน screen ดังนี้

&lt;container style="screenlet-title-bar"&gt;
  &lt;container style="h3"&gt;
   &lt;section&gt;
    &lt;condition&gt;
     &lt;if-empty</summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/5457034864272338645/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/07/screenlet.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/5457034864272338645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/5457034864272338645'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/07/screenlet.html' title='การสร้าง screenlet เพื่อสร้างข้อความระหว่างการสร้างข้อมูลใหม่และการแก้ไขข้อมูลในฟอร์ม'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-957463034279070120</id><published>2010-07-27T21:08:00.000-07:00</published><updated>2010-07-27T21:08:57.819-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OFBiz'/><category scheme='http://www.blogger.com/atom/ns#' term='patch'/><category scheme='http://www.blogger.com/atom/ns#' term='diff'/><title type='text'>การสร้างไฟล์ diff เพื่อทำ patch</title><summary type='text'>บางครั้งในการทำงานในโปรเจ็คท์ต้องมีการแก้ไขไฟล์หลักของ OFBiz โดยเฉพาะไฟล์ในโฟลเดอร์หลัก คือ applications, framework และ specialpurpose ซึ่งเมื่อแก้ไขแล้วหากทำการ commit ขึ้นไปที่ svn หลักของ OFBiz จะเกิดความสับสนกับ framework หลัก ดังนั้นจึงต้องทำไฟล์ .diff เพื่อให้เฉพาะโปรเจ็คท์ที่เราทำเท่านั้นได้ทราบถึงความเปลี่ยนแปลงของไฟล์ สามารถทำไฟล์ .diff ได้ดังนี้

1. ใช้คำสั่งดังนี้ใน terminal

svn diff </summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/957463034279070120/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/07/diff-patch.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/957463034279070120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/957463034279070120'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/07/diff-patch.html' title='การสร้างไฟล์ diff เพื่อทำ patch'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-5419437830802273674</id><published>2010-07-22T10:05:00.000-07:00</published><updated>2010-07-22T10:05:19.891-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OFBiz'/><title type='text'>การแยก column ในหัวตารางของ form</title><summary type='text'>โดยปกติแล้วการแสดงข้อความในตารางควรจะมีหัวตาราง เพื่อแสดงข้อมูลว่าเป็นข้อมูลจากตารางไหน ซึ่งบางครั้งใน OFBiz จะแสดงหัวตารางในลักษณะติดกัน ทำให้ไม่สามารถทราบได้ว่า เป็นข้อมูลจากตารางไหน ดังรูป


ต้องทำการใส่แท็กเพื่อให้แสดงผลเป็นตาราง ดังนี้

separate-columns="true"
จะได้ตารางที่แสดงผลหัวตารางสมบูรณ์</summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/5419437830802273674/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/07/column-form.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/5419437830802273674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/5419437830802273674'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/07/column-form.html' title='การแยก column ในหัวตารางของ form'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_LSF2YHPdtow/TEh5qMQzy8I/AAAAAAAAAE4/IijyStE0tdI/s72-c/Screenshot.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-318330578347492526</id><published>2010-07-12T02:11:00.000-07:00</published><updated>2010-07-12T02:11:27.951-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>การเซ็ต trackpoint ของ thinkpad ใน Ubuntu</title><summary type='text'>โดยปกติแล้วใน windows จะมี software ชื่อ UltraNav สำหรับควบคุมการทำงานของ trackpoint ทำให้ผู้ใช้ thinkpad บน windows สามารถควบคุม trackpoint ได้ แต่ใน ubuntu ต้องทำการแก้ไขไฟล์บางไฟล์เล็กน้อย เพื่อให้สามารถใช้ความสามารถของ trackpoint อย่างเต็มที่ได้ มีขั้นตอนดังนี้

1. สร้างไฟล์ /usr/lib/X11/xorg.conf.d/20-thinkpad.conf โดยใช้คำสั่ง
sudo gedit /usr/lib/X11/xorg.conf.d/20-thinkpad.conf
2. </summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/318330578347492526/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/07/trackpoint-thinkpad-ubuntu.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/318330578347492526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/318330578347492526'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/07/trackpoint-thinkpad-ubuntu.html' title='การเซ็ต trackpoint ของ thinkpad ใน Ubuntu'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-8606216171735592110</id><published>2010-07-07T09:32:00.000-07:00</published><updated>2010-07-07T09:40:42.027-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>การเปลี่ยนค่า screen resolution ของ ubuntu</title><summary type='text'>ในการ install ubuntu บางครั้ง resolution ใน monitor ได้ค่าไม่ตรงกับค่าที่เคยเซ็ตใน windows ทำให้จอไม่ชัดหรือเบลอ สามารถแก้ไขได้ตามวิธีการดังนี้

1. เปิด terminal พิมพ์คำสั่ง

xrandr
2. จะได้ข้อความดังนี้
Screen 0: minimum 320 x 200, current 2464 x 900, maximum 8192 x 8192
VGA1 connected 1440x900+1024+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1360x768       59.8  *
   1024x768</summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/8606216171735592110/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/07/screen-resolution-ubuntu.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/8606216171735592110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/8606216171735592110'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/07/screen-resolution-ubuntu.html' title='การเปลี่ยนค่า screen resolution ของ ubuntu'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-1714394413742350157</id><published>2010-07-07T01:46:00.000-07:00</published><updated>2010-07-07T01:55:13.357-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Eclipse'/><title type='text'>การแก้ปัญหาเมื่อ Eclipse หา JVM ไม่เจอ</title><summary type='text'>เมื่อทำการถอน jdk ตัวเดิมออกแล้วติดตั้งใหม่ Eclipse มักจะหา path ของ JAVA_HOME ไม่เจอ และจะแจ้งเตือนว่า

A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available in order to run Eclipse. No Java virtual machine
was found after searching the following locations:
/home/toonztudio/Downloads/eclipse_reporting/jre/bin/java
java in your current PATH
หากยังไม่ได้เซ็ท JAVA_HOME </summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/1714394413742350157/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/07/eclipse-jvm.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/1714394413742350157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/1714394413742350157'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/07/eclipse-jvm.html' title='การแก้ปัญหาเมื่อ Eclipse หา JVM ไม่เจอ'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-770181998054619634</id><published>2010-07-05T00:43:00.000-07:00</published><updated>2010-07-05T00:43:43.579-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><title type='text'>การเซ็ต JAVA_HOME และ CLASSPATH บน Ubuntu</title><summary type='text'>1. เปิด terminal พิมพ์ดังนี้
sudo gedit /etc/bash.bashrc
2. ในไฟล์ bash.bashrc เพิ่มคำสั่งดังนี้
export JAVA_HOME="/usr/lib/jvm/java-6-sun"
export JRE_HOME="/usr/lib/jvm/java-6-sun/jre"
export CLASSPATH="/usr/lib/jvm/java-6-sun/lib/tools.jar"
export PATH="/usr/lib/jvm/java-6-sun/bin:$PATH"
สามารถเช็คการตั้งค่าได้จาก terminal
พิมพ์ echo $JAVA_HOME เพื่อเช็คพาธ JAVA_HOME
พิมพ์ echo $JRE_HOME </summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/770181998054619634/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/07/javahome-classpath-ubuntu.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/770181998054619634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/770181998054619634'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/07/javahome-classpath-ubuntu.html' title='การเซ็ต JAVA_HOME และ CLASSPATH บน Ubuntu'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-8706269986558273854</id><published>2010-07-05T00:07:00.000-07:00</published><updated>2010-07-05T00:07:24.365-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OFBiz'/><category scheme='http://www.blogger.com/atom/ns#' term='Eclipse'/><title type='text'>การเพิ่ม auto complete ให้กับ Eclipse</title><summary type='text'>ในกรณีที่ Eclipse ไม่รู้จักคำสั่งใน namespace จะไม่สามารถสร้าง auto complete ได้ สามารถทำการเพิ่ม namespace ได้ ดังนี้

Windows -&gt; Preference -&gt; XML -&gt; XML Catalog

ทำการเพิ่ม namespace เช่น http://ofbiz.apache.org/dtds/widget-screen.xsd
แล้วกด OK</summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/8706269986558273854/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/07/auto-complete-eclipse.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/8706269986558273854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/8706269986558273854'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/07/auto-complete-eclipse.html' title='การเพิ่ม auto complete ให้กับ Eclipse'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-1853351024394215038</id><published>2010-07-04T23:45:00.000-07:00</published><updated>2010-07-04T23:45:08.139-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OFBiz'/><category scheme='http://www.blogger.com/atom/ns#' term='dialog box'/><category scheme='http://www.blogger.com/atom/ns#' term='dojo'/><title type='text'>การเพิ่ม confirm dialog box ใน form ของ OFBiz 9.04</title><summary type='text'>ใน OFBiz 10.04 การทำ Confirm Dialog Box สามารถใช้ confirmation-message ใน button ได้โดยตรง ดังนี้

&lt;field name="searchButton" title="Search" widget-style="smallSubmit"&gt;&lt;submit button-type="button" confirmation-message="Test"/&gt;&lt;/field&gt;
แต่ใน OFBiz 9.04 ไม่สามารถใช้ confirmation-message ได้ จึงได้ทำการทดลองหาวิธีต่างๆ มาใช้ ดังนี้

ทดลองสร้าง javascript แล้วนำไปใช้กับ onClick ของปุ่มของฟอร์มใน </summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/1853351024394215038/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/07/confirm-dialog-box-form-ofbiz-904.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/1853351024394215038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/1853351024394215038'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/07/confirm-dialog-box-form-ofbiz-904.html' title='การเพิ่ม confirm dialog box ใน form ของ OFBiz 9.04'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_LSF2YHPdtow/TDF_WJHeJ5I/AAAAAAAAAB0/ymGs-LIlheE/s72-c/Screenshot.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-88928777624894695</id><published>2010-06-09T01:08:00.000-07:00</published><updated>2010-06-14T08:25:23.661-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mvc in OFBiz'/><category scheme='http://www.blogger.com/atom/ns#' term='screen decorator'/><category scheme='http://www.blogger.com/atom/ns#' term='form'/><category scheme='http://www.blogger.com/atom/ns#' term='widget'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>การ สร้าง service เพื่อ edit ข้อมูลในฐานข้อมูลโดยใช้ simple method</title><summary type='text'>ในบทความนี้จะแสดงการสร้าง service ที่ใช้แก้ไขข้อมูลใน entity โดยใช้ simple method ในไฟล์  *Services.xml มีวิธีทำดังนี้

1. สร้างฟอร์มชื่อ EditBlog ที่ *Forms.xml
&lt;form name="EditBlog" type="single" target="editBlog" title="" 
            default-map-name="resultMap" default-entity-name="NewBlog"&gt;
        &lt;auto-fields-entity entity-name="NewBlog" default-field-type="edit"/&gt;
        &lt;field name="</summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/88928777624894695/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/06/service-edit-simple-method.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/88928777624894695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/88928777624894695'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/06/service-edit-simple-method.html' title='การ สร้าง service เพื่อ edit ข้อมูลในฐานข้อมูลโดยใช้ simple method'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-1547735951711392724</id><published>2010-06-08T11:36:00.000-07:00</published><updated>2010-06-14T01:49:01.198-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='screen decorator'/><category scheme='http://www.blogger.com/atom/ns#' term='OFBiz'/><category scheme='http://www.blogger.com/atom/ns#' term='form'/><category scheme='http://www.blogger.com/atom/ns#' term='erp'/><category scheme='http://www.blogger.com/atom/ns#' term='widget'/><title type='text'>การสร้าง service เพื่อ insert ข้อมูลลงในฐานข้อมูลโดยใช้ simple method</title><summary type='text'>ในการสร้าง service ใน OFBiz นั้น สามารถใช้ engine ในการสร้าง method ได้ 3 วิธี ดังนี้
1. engine="java" ทำได้โดยการเขียนโปรแกรมภาษา java เก็บไว้ในโฟลเดอร์ src แล้วเรียกใช้งานผ่าน package
2. engine="simple" เขียนเป็น simple method เก็บไว้ในไฟล์ *Services.xml
3. engine เป็น webservice

ในบทความนี้จะแสดงการสร้าง service โดยใช้ simple method ในไฟล์ *Services.xml มีวิธีทำดังนี้

1. สร้าง form ชื่อ </summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/1547735951711392724/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/06/service-insert-simple-method.html#comment-form' title='1 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/1547735951711392724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/1547735951711392724'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/06/service-insert-simple-method.html' title='การสร้าง service เพื่อ insert ข้อมูลลงในฐานข้อมูลโดยใช้ simple method'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-1635801709038491873</id><published>2010-06-08T11:33:00.000-07:00</published><updated>2010-06-13T19:46:47.952-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='screen decorator'/><category scheme='http://www.blogger.com/atom/ns#' term='OFBiz'/><category scheme='http://www.blogger.com/atom/ns#' term='form'/><category scheme='http://www.blogger.com/atom/ns#' term='erp'/><category scheme='http://www.blogger.com/atom/ns#' term='widget'/><title type='text'>การใช้ form widget ใน OFBiz - การสร้าง list form widget</title><summary type='text'>จากบทความที่แล้ว (การใช้ form widget ใน OFBiz - การสร้าง find form widget) ได้ทำการสร้างฟอร์มการค้นหา ขั้นตอนต่อไปจะทำการสร้างฟอร์มที่แสดลผลการค้นหา หรือ list form ดังนี้

1. define form ของการแสดงผลของ list form ในไฟล์ *Forms.xml

&lt;form name="ListExamples" type="list" target="example" default-entity-name="Example" list-name="listIt"&gt;
        &lt;actions&gt;
            &lt;service service-name="</summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/1635801709038491873/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/06/form-widget-ofbiz-list-form-widget.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/1635801709038491873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/1635801709038491873'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/06/form-widget-ofbiz-list-form-widget.html' title='การใช้ form widget ใน OFBiz - การสร้าง list form widget'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_LSF2YHPdtow/TBUkbXnbJ-I/AAAAAAAAABs/A2Kko5Ud6Y4/s72-c/Screenshot-1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-8947382781455427558</id><published>2010-06-08T02:10:00.000-07:00</published><updated>2010-06-13T10:47:25.419-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='screen decorator'/><category scheme='http://www.blogger.com/atom/ns#' term='OFBiz'/><category scheme='http://www.blogger.com/atom/ns#' term='form'/><category scheme='http://www.blogger.com/atom/ns#' term='widget'/><title type='text'>การใช้ form widget ใน OFBiz - การสร้าง find form widget</title><summary type='text'>ใน OFBiz สามารถนำ form แสดงผลใน screen ได้ โดย form ที่นำมาแสดง สามารถแบ่งประเภทได้ดังนี้
1. find form เป็นฟอร์มที่ใช้ค้นหา item หรือ content ต่างๆ ใน module
โดย form ชนิดนี้จะมี type เป็น single


2. list form เป็นฟอร์มที่ใช้แสดงรายการ โดยจะลิสต์แสดงรายการออกมาเป็น table
form ชนิดนี้จะมี type เป็น list


3. display and edit เป็นฟอร์มที่ใช้แสดงรายการแก้ไข โดยจะสามารถแก้ไขข้อความใน field </summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/8947382781455427558/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/06/form-widget-ofbiz.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/8947382781455427558'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/8947382781455427558'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/06/form-widget-ofbiz.html' title='การใช้ form widget ใน OFBiz - การสร้าง find form widget'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_LSF2YHPdtow/TBUFgprmjII/AAAAAAAAABM/IPU5kJ-ti2E/s72-c/Screenshot.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-4852803200988583338</id><published>2010-06-08T00:36:00.000-07:00</published><updated>2010-06-08T00:36:52.839-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='screen decorator'/><category scheme='http://www.blogger.com/atom/ns#' term='OFBiz'/><category scheme='http://www.blogger.com/atom/ns#' term='freemarker'/><title type='text'>การดึงข้อมูลจาก Entity มาแสดงผลในหน้าเพจ</title><summary type='text'>OFBiz สามารถเรียกข้อมูลจาก Entity มาแสดงผลในหน้าเวบเพจได้ 2 วิธี คือ
1. ดึงจาก Screen หรือ Widget
2. ดึงจาก Script

ในบทความจะแสดงการดึงค่าจาก Widget ดังนี้
1. เพิ่มแท็ก &lt;action&gt; ลงภายใต้แท็ก &lt;screen&gt;&lt;section&gt; ในไฟล์ CulinaryScreens.xml ในโฟลเดอร์ widget
หมายเหตุ: ชื่อไฟล์ CulinaryScreens.xml ตาม component ชื่อ culinary หากทำการสร้าง component ชื่ออื่น ให้ทำการแก้ไขที่ไฟล์ </summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/4852803200988583338/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/06/entity.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/4852803200988583338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/4852803200988583338'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/06/entity.html' title='การดึงข้อมูลจาก Entity มาแสดงผลในหน้าเพจ'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-7799317337665135843</id><published>2010-06-07T23:53:00.000-07:00</published><updated>2010-06-13T12:34:31.823-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='screen decorator'/><category scheme='http://www.blogger.com/atom/ns#' term='OFBiz'/><title type='text'>การสร้างและการเรียกใช้งาน Screen Decorator ใน OFBiz</title><summary type='text'>ในการสร้างหน้าเพจ มักจะมีส่วนของการแสดงผลที่ซ้ำๆ กัน เช่น ส่วนของ menu, header, footer เป็นต้น ซึ่งใน OFBiz จะมีการสร้าง Screen Decorator ไว้สำหรับเป็น template และหากมีการเปลี่ยนแปลงเฉพาะส่วนย่อยๆ จะเปลี่ยนเฉพาะ Screen บางส่วนเท่านั้น ซึ่งในการสร้าง Screen Decorator สามารถสร้างได้ดังนี้

1. ในเทมเพลนมีส่วนที่ซ้ำกันทุกหน้าคือ header และ footer ให้ทำการแยกโค้ดในส่วนของ header และ footer </summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/7799317337665135843/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/06/blog-post.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/7799317337665135843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/7799317337665135843'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/06/blog-post.html' title='การสร้างและการเรียกใช้งาน Screen Decorator ใน OFBiz'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-1541081144306510468</id><published>2010-06-07T07:32:00.000-07:00</published><updated>2010-07-05T18:47:33.034-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OFBiz'/><category scheme='http://www.blogger.com/atom/ns#' term='postgresql'/><title type='text'>การติดตั้ง OFBiz โดยใช้ PostgreSQL เป็นฐานข้อมูล</title><summary type='text'>PostgreSQL คือ ระบบจัดการฐานข้อมูลเชิงสัมพันธ์ (Object-Relational DataBase Management System หรือ ORDBMS) มีความสามารถในการทำงานร่วมกับ OFBiz ได้อย่างดี ทั้งนี้ยังเป็นซอฟต์แวร์ฟรีอีกด้วย จึงสามารถนำมาช่วยลดค่าใช้จ่ายในองค์กรได้

จากบทความเรื่องการติดตั้ง OFBiz ได้ใช้ฐานข้อมูล Derby ซึ่งเป็นฐานข้อมูลขนาดเล็กที่มาพร้อม OFBiz มีความสามารถในระดับหนึ่ง แต่ไม่เทียบเท่า PostgreSQL </summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/1541081144306510468/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/06/ofbiz-postgresql.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/1541081144306510468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/1541081144306510468'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/06/ofbiz-postgresql.html' title='การติดตั้ง OFBiz โดยใช้ PostgreSQL เป็นฐานข้อมูล'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-2978090358281079931</id><published>2010-06-07T06:19:00.000-07:00</published><updated>2010-06-07T06:20:58.752-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='svn'/><title type='text'>การใช้ Subversion ในการควบคุม Source Code</title><summary type='text'>ในการสร้างโปรเจ็ค ควรจะทำการควบคุม source code เพื่อป้องกันความผิดพลาดจากการลบไฟล์โดยไม่ได้ตั้งใจ และเพื่อสามารถย้อนกลับไปใช้ซอร์สโค้ดเดิมได้ หากมีข้อผิดพลาดเกิดขึ้นกับ souce code เวอร์ชั่นไหม่

ในบทความจะแสดงวิธีการใช้งาน Subversion (svn) ควบคุม source code บนพื้นที่ฟรีเช่น google code สามารถทำได้ดังนี้

1. เปิดเว็บไซต์กูเกิ้ลโค้ด โดยเข้าไปที่ http://code.google.com
2. เลือก Project Hosting
3. </summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/2978090358281079931/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/06/subversion-source-code.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/2978090358281079931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/2978090358281079931'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/06/subversion-source-code.html' title='การใช้ Subversion ในการควบคุม Source Code'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-4105191075290379957</id><published>2010-06-04T21:22:00.000-07:00</published><updated>2010-06-05T22:06:49.842-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='create ofbiz component'/><category scheme='http://www.blogger.com/atom/ns#' term='freemarker'/><category scheme='http://www.blogger.com/atom/ns#' term='erp'/><title type='text'>การนำเอา FreeMarker Template Engine มาใช้ใน OFBiz</title><summary type='text'>FreeMarker เป็น Template Engine ที่ใช้แนวคิด MVC เพื่อแยกส่วนแสดงผลออกจากส่วน source ของ java สามารถศึกษารายละเอียดเพิ่มเติมได้ที่ http://freemarker.sourceforge.net/ในบทความจะแสดงตัวอย่างในการนำเอา freemarker มาใช้งานใน OFBiz projectโดยปกติแล้วหน้าเพจมักจะมีส่วนที่ซ้ำซ้อนกันที่ต้องแสดงทุกหน้า อย่างเช่น เมนู, วันที่ ฯลฯ เราสามารถ assigned ค่าให้กับค่าตัวแปรที่มีการแสดงผลซ้ำๆ กัน </summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/4105191075290379957/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/06/freemarker-template-engine-ofbiz.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/4105191075290379957'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/4105191075290379957'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/06/freemarker-template-engine-ofbiz.html' title='การนำเอา FreeMarker Template Engine มาใช้ใน OFBiz'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_LSF2YHPdtow/TAssT-3ZcFI/AAAAAAAAAAc/xfVFGK5b7HA/s72-c/Screenshot.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-3508795878227107071</id><published>2010-06-04T20:49:00.000-07:00</published><updated>2010-06-14T05:27:27.606-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mvc in OFBiz'/><category scheme='http://www.blogger.com/atom/ns#' term='OFBiz'/><title type='text'>การเพิ่ม page ใน OFBiz</title><summary type='text'>webapp ของ OFBiz อาศัยหลักการ MVC หรือ Model-View-Controller ในการแสดงผล โดยแยกออปเจคที่เก็บข้อมูล (model) ออปเจคที่แสดงข้อมูล (view) และออปเจคที่ติดต่อกับผู้ใช้ (controller) ออกจากกันอย่างชัดเจน โดย webapp ใน OFBiz จะมีไฟล์ชื่อ controller.xml ในโฟลเดอร์ WEB-INF เป็นตัวกำหนดว่าจะเรียก view ไหนขึ้นมาแสดงผล เมื่อถูก request ผ่านทาง url

ทดลองสร้าง views ขึ้นมาใน webapp ของ component </summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/3508795878227107071/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/06/page-ofbiz.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/3508795878227107071'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/3508795878227107071'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/06/page-ofbiz.html' title='การเพิ่ม page ใน OFBiz'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-2105579378407090549</id><published>2010-06-03T23:32:00.000-07:00</published><updated>2010-06-05T20:47:36.374-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='create ofbiz component'/><category scheme='http://www.blogger.com/atom/ns#' term='OFBiz'/><category scheme='http://www.blogger.com/atom/ns#' term='erp'/><title type='text'>การสร้าง Component ใน OFBiz</title><summary type='text'>ในการพัฒนา OFBiz จะเรียกการสร้าง application หรือ module ว่า component โดยแต่ละ component จะเป็นอิสระต่อกัน และแต่ละ component จะมี data model, views, controller เป็นของ component เอง แต่สามารถทำงานร่วมกับ component อื่นได้component หลักของ OFBiz จะอยู่ใน folder ชื่อ applications ส่วน component ที่ถูกสร้างขึ้นจะถูกสร้างไว้ในโฟลเดอร์ hot-deploy โดยขั้นตอนในการสร้าง component สำหรับ OFBiz มีดังนี้1</summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/2105579378407090549/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/06/component-ofbiz.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/2105579378407090549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/2105579378407090549'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/06/component-ofbiz.html' title='การสร้าง Component ใน OFBiz'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-962251851774466156</id><published>2010-06-02T09:03:00.000-07:00</published><updated>2010-06-05T20:41:10.244-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ofbiz installation'/><category scheme='http://www.blogger.com/atom/ns#' term='linux installation'/><category scheme='http://www.blogger.com/atom/ns#' term='eclipse installation'/><title type='text'>Linux, OFBiz and Eclipse Installation</title><summary type='text'>ที่ Orange Gears พัฒนาและทำการปรับแต่ง OFBiz ให้ตรงกับความต้องการของลูกค้า โดยใช้สิ่งแวดล้อมในการพัฒนาคือ1. Ubuntu Linux2. Eclipse IDE3. Subversion4. Sub Java 1.5+ SDK5. PostgreSQL6. Apache OFBiz ERPLinux Installation for OFBiz Development มีขั้นตอนดังนี้1. ดาวน์โหลด Ubuntu Linux เวอร์ชั่น 10.04 จากเว็บไซต์ http://www.ubuntu.com/2. install ubuntu 10.04 และอัพเดตไฟล์ที่จำเป็นของระบบ (Update </summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/962251851774466156/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/06/linux-ofbiz-installation.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/962251851774466156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/962251851774466156'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/06/linux-ofbiz-installation.html' title='Linux, OFBiz and Eclipse Installation'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1007023164321475350.post-8018236778476522544</id><published>2010-06-01T08:37:00.000-07:00</published><updated>2010-06-04T23:10:47.408-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OFBiz'/><category scheme='http://www.blogger.com/atom/ns#' term='erp'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><category scheme='http://www.blogger.com/atom/ns#' term='opensource'/><title type='text'>Apache OFBiz ERP/Framework</title><summary type='text'>ERP เป็นการวางแผนการจัดการทรัพยากรขององค์กร เพื่อให้สามารถจัดการทรัพยากรของระบบให้มีประสิทธิภาพและเกิดประโยชน์สูงสุดต่อองค์กรโดยทั่วไปในองค์กรมักจะใช้ซอฟต์แวร์สำเร็จรูปในการจัดการข้อมูลในองค์กร ทำให้เกิดความไม่เป็นอันหนึ่งอันเดียวกัน และข้อมูลไม่เป็นรูปแบบเดียวกัน เมื่อมีความต้องการจะนำเอาข้อมูลมาใช้ ความหลากหลายของซอฟต์แวร์ทำให้เกิดความไม่สะดวกในการเรียกข้อมูล </summary><link rel='replies' type='application/atom+xml' href='http://orgtoon.blogspot.com/feeds/8018236778476522544/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://orgtoon.blogspot.com/2010/06/apache-ofbiz-erpframework.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/8018236778476522544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1007023164321475350/posts/default/8018236778476522544'/><link rel='alternate' type='text/html' href='http://orgtoon.blogspot.com/2010/06/apache-ofbiz-erpframework.html' title='Apache OFBiz ERP/Framework'/><author><name>ToonZtudio in the OFBiz World</name><uri>http://www.blogger.com/profile/10939610646760644452</uri><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>0</thr:total></entry></feed>
