omar_sabha بتاريخ: 18 ديسمبر 2006 تقديم بلاغ مشاركة بتاريخ: 18 ديسمبر 2006 السلام عليكم كيف يمكن وضع ال Icons على ال Buttons في Oracle 10gولكم جزيل الشكر اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
omar_sabha بتاريخ: 20 ديسمبر 2006 كاتب الموضوع تقديم بلاغ مشاركة بتاريخ: 20 ديسمبر 2006 هل من مساعده اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
asdk2003 بتاريخ: 20 ديسمبر 2006 تقديم بلاغ مشاركة بتاريخ: 20 ديسمبر 2006 السلام عليكم ورحمة الله وبركاتهاخي العزيز اظن انه هذه هي الطريقة الصحيحة كوني حصلت عليها ولما اجربها بعد موجود التفصيل في ملف الاكروبات المرفق اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
asdk2003 بتاريخ: 20 ديسمبر 2006 تقديم بلاغ مشاركة بتاريخ: 20 ديسمبر 2006 Oracle9LAS Forms ServicesHowTo Deploy Icons$Q_2UDFOH_:KLWHSDSHU_-XQH_______????__ _____ __ _ ________ _________ ___ ______________ __"!___#$_ _&%_' ____(__ )$__*$__+Oracle9LAS Forms Services – HowTo Deploy IconsIntroduction........................................................................................................3Don’t want to learn about the details? Just get started! ...............................3Entering the fast lane....................................................................................3Best Practices .................................................................................................4Using Icons in Oracle9L Forms applications .................................................5The “imagebase” parameter ........................................................................5Documentbase ..........................................................................................6Codebase....................................................................................................7Configuring Oracle9L Forms for Icon Deployment .....................................7Using Icons that are stored in the default documentbase (Oracle9LDSonly).................................................................................................................7Using Icons that are stored in a path defined in the Registry.dat file....8default.icons.iconpath = / images/ ........................................................8Defining virtual paths in Oracle9LDS....................................................8Defining virtual paths in Oracle9LAS....................................................8default.icons.iconpath = http:/ / myserver:port/ app1_images/ ........9Icons deployed in Jar files............................................................................9Troubleshooting...............................................................................................12I cannot find Forms default icons shown in the smart toolbar............12I cannot see my customs icons in Forms ................................................12Check the icon configuration................................................................12Verify that the correct icon name is referenced in Forms................12Icons stored in JAR files are not shown when running in preview.....12Icons stored in jar files don’t show in my Forms applications.............13Make sure the Java archive file is accessible from the Web .............13Check if your Forms application uses directory prefixes in iconnames........................................................................................................13Make sure that icon names in the jar files have the right case.........13Summary...........................................................................................................13????__ _____ __ _ ________ _________ ___ ______________ __"!___#$_ _&%_' ____(__ )$__*$__,Oracle9LAS_Forms Services – HowTo Deploy Icons,1752'8&7,21_Oracle9LAS Forms Services is a component of the Oracle9L Application Server(Oracle9LAS) and represents the runtime framework to deploy Forms applicationson the Web.Oracle9LAS Forms Services is also contained in the Oracle9L Developer Suite(Oracle9LDS) for testing purposes while developing Forms applications.Forms Applications deployed in Oracle9LAS Forms Services don’t use platformspecific image formats when displaying icons1 on buttons and tree item controls.This Whitepaper explores various options of deploying icons in Oracle9L Formsapplications. In its first chapter this paper provides an end-to-end example as ajumpstart to deploy icons in Oracle9L Forms.This paper does not discuss the Oracle9LAS Forms Services architecture in detail,but assumes a basic understanding of its architecture2.'21¶7_:$17_72_/($51_$%287_7+(_'(7$,/6"_-867_*(7_67$57('__You don’t have time to spend on learning about the background details but wantto get started immediately?The following end-to-end example explains how to deploy icons in Oracle9LForms applications using Java Archive (Jar) files, to get you started immediately.Oracle recommends deploying icons in Jar files.(QWHULQJ_WKH_IDVW_ODQH_You have an Oracle9L Forms application with many icons used on buttons and/ ora hierarchical tree control. The icons are all in GIF format and are stored in thec:\ myApp\ icons directory.x_ On the command line, navigate to the c:\ myApp\ icons directory and issue thefollowing command to store the icons in a Java archive:1 Throughout this paper the terms “image icons” and “icons” are use interchangeably.Both terms refer to images in GIF or JPG format to show icons in buttons and treecontrol items in Forms Web applications2 A Whitepaper about the Oracle9LAS Forms Services architecture can be found atotn.oracle.com/ products/ forms????__ _____ __ _ ________ _________ ___ ______________ __"!___#$_ _&%_' ____(__ )$__*$__-<Oracle Home>\jdk\bin jar –cvf myAppIcons.jar *.gifx_ The myAppIcons.jar file, created in the c:\ myApp\ icons directory, needs tobe copied to the <Oracle Home>\ forms90\ java directory.x_ Use a text editor to open the formsweb.cfg file in the <OracleHome>\ forms90\ server directory and add the myAppIcons.jar file in theapplication section[myApp]…archive_jini=f90all_jini.jar,myAppIcons.jarimagebase=codebasex_ Restart Form to see the deployed icons.%HVW_3UDFWLFHV_You should cleanly separate custom application files from the Forms defaultinstallation directories by doing the following:x_ Instead of storing the myAppIcons.jar file in the forms90/ java directory, copyit to the directory storing all the other custom Forms application files (fmx,pll). For this example, the directory is c:\ myApp.x_ Modify the archive_jini value in formsweb.cfg file to ensure that all entries areon one line[myApp]…archive_jini=…3,/forms90/myApp/myAppIcons.jarimagebase=codebasex_ Configure the HTTP Server and map the c:\ myApp directory to the virtualpath “/ forms90/ myApp/ ”.Note: To define a virtual directory such as / forms90/ myApp in Oracle9LDS,open the orion-web.xml file in the <Oracle9iDS Home>\ j2ee\ Oracle9iDS\application-deployments\ forms\ forms90web directory and add the followingline<virtual-directory virtual-path="/myApp"real-path=" c:\myApp" />3 f90all_jini.jar goes here????__ _____ __ _ ________ _________ ___ ______________ __"!___#$_ _&%_' ____(__ )$__*$__.Note that the “/ forms90/ ” directory prefix is automatically added to thevirtual path in Oracle9LDS.Note:To define a virtual directory / forms90/ myApp in Oracle9LAS, use a texteditor to open the forms90.conf file in the <Oracle9LASHome>\ forms90\ server directory and add the following line:# Forms image pathAliasMatch ^/forms90/myApp/(..*) " c:\myApp/$1"x_ Restart the HTTP Server for the virtual path “myApp” definition to becomeactive.x_ Test the virtual path in a browser with the following URL:http:/ / <host name>:<port>/ forms90/ myApp/ myAppIcons.jarx_ If successful, the Browser prompts you to download the Jar file. Press cancelto close this dialog.x_ Next, restart Forms.86,1*_,&216_,1_25$&/(_L_)2506_$33/,&$7,216_To deploy Forms applications on the web that contain icons in buttons and in treecontrol items, you’ll first need to convert the icon files into GIF (GIF 89a4) or JPGformat5.Unlike the client/ server model of previous versions of Forms, in Oracle9L Formsthere is no UI_ICON variable to locate icons used in Forms applications. Instead,image icons in Oracle9LAS Forms Services are referenced by a URL that isconstructed internally based on three things: the "imagebase" parameter in theformsweb.cfg configuration file, the icon name in the items property palette, andthe default icon path setting in the Forms registry.dat properties file.At runtime, icons in your Forms applications are referenced through the FormsJava Applet.7KH_³LPDJHEDVH´_SDUDPHWHU_Forms application specific settings, as well as default settings, are stored in theIRUPVZHE_FIJ configuration file, which islocated in the<Oracle_Home>6\ forms90\ server directory. The LPDJHEDVH parameter specifies the4 The older GIF 87a is not supported in Java5 You can search the Internet for conversion tools that create the supported image filesfrom Windows .ico formats6 The term <Oracle Home> refers to the Oracle9iDS Home and the Oracle9iAS Home????__ _____ __ _ ________ _________ ___ ______________ __"!___#$_ _&%_' ____(__ )$__*$__/location where Oracle9LAS Services looks for icons that are used in Formsapplications. The imagebase parameter can be set to one of the two values:“documentbase” and “codebase”.0_1_243_576_89;:=<?>=6The default value of the imagebase parameter7 is GRFXPHQWEDVH, which means thaticons are looked up in a directory relative to the directory from where the Formsstart HTML file was downloaded. It looks like this:[your_app_name]form=…imagebase=documentbaseBecause Oracle9L Forms uses the Forms Servlet to dynamically render the Appletstart HTML file, the default icon location is the Forms Servlet root directory_2UDFOH_L'6_+RPH!\ IRUPV__?M_HH?_IRUPV__DSS?IRUPV__ZHE. 8If you don’t want to keep your icons there, you’ll need to specify a differentlocation byx_ Using a directory that is virtually mapped in the HTTP server running theOracle9LAS Services;x_ Using an absolute URL that points to a server that stores the icon images.You specify these locations in the 5HJLVWU\_GDW properties file located in theIRUPV__?MDYD_?RUDFOH?IRUPV?UHJLVWU\ directory.At the bottom of the Registry.dat file the following two image properties can befound: GHIDXOW_LFRQV_LFRQSDWK_and GHIDXOW_LFRQV_LFRQH[WHQVLRQThe default value of default.icons.iconpath is left empty, which means that imagesare expected to be in the Forms Servlet root directory, which is IRUPV__?M_HH?_IRUPV__DSS?IRUPV__ZHE_in Oracle9LDS.x_ default.icons.iconpath=/ virtual_image_path/This setting expects image icons to be located in the physical directorymapped to / virtual_image_path/ in the HTTP Server configuration,.Forms uses the following path when searching for icons:http:/ / <download host>:<port>/ virtual_image_path/ <image name>.gifx_ default.icons.iconpath=http:/ / hostname:port/ virtual_image_path/This setting looks for images in the virtual directory defined by the7 The default value is set as a Forms Applet parameter in the “USER PARAMETERS”section of the formsweb.cfg file8 Because Oracle9LAS handles files using the Oracle HTTP Server and mod_oc4j, theServlet root directory cannot be accessed directly. Therefore, the default documentbasesetting only works within Oracle9LDS????__ _____ __ _ ________ _________ ___ ______________ __"!___#$_ _&%_' ____(__ )$__*$__@absolute URL. This option is useful if the image icons are not stored onthe same application server that runs the Forms application.The default.icons.iconextensions property is defaulted to GIF and defines theimage format used in iconic buttons and tree item controls. To use the JPG imageformat instead, change the value of this property to JPG.A 1_B_6_:=<?>=6imagebase=codebaseThe codebase parameter points to the IRUPV__?MDYD directory of the Oracle9LAS orOracle9LDS installation that contains all the Jar files that are used to run Forms onthe Web. The codebase parameter can be used for referencing image icons inForms applications when they are contained in a Java Archive file (jar). To use thecodebase parameter for referencing images within a Forms application, thefollowing parameters need to be added in the formsweb.cfg file for the particularapplication[your_app_name]form=…imagebase=codebasearchive_jini=f90all_jini.jar,<your_image_archive>.jar…_&21),*85,1*_25$&/(_L_)2506_)25_,&21_'(3/2<0(17_This sections explains the icon deployment options for Oracle9LDS FormsDeveloper and Oracle9LAS Forms Services.8VLQJ_,FRQV_WKDW_DUH_VWRUHG_LQ_WKH_GHIDXOW_GRFXPHQWEDVH__2UDFOH_L'6_RQO\__Images are searched in this directory only if no changes have been added to theRegistry.dat file and no additional path information is provided in the Forms itemproperty LFRQ_)LOHQDPH.To use this default configuration, you only need to copy the image icons used inthe Forms application to the IRUPV__?M_HH?_IRUPV__DSS?IRUPV__ZHE directory.If you use directory name prefixes in the Forms icon Filename property, make surethat the subdirectory of the forms90web directory has the same name9.9 Customer used directory prefixing in client/ server Forms because the UI_ICON pathalso only allowed one directory for storing icons????__ _____ __ _ ________ _________ ___ ______________ __"!___#$_ _&%_' ____(__ )$__*$__C8VLQJ_,FRQV_WKDW_DUH_VWRUHG_LQ_D_SDWK_GHILQHG_LQ_WKH_5HJLVWU\_GDW_ILOH_The Forms Registry.dat file can be used to define an icon path that is relative tothe documentbase, an independent virtually mapped physical directory on theapplication server, or another application server machine.All changes applied to the Registry.dat file don’t require a restart of the HTTPserver.B_6?D <_3_E 9;F G 21_8>_F G 21_8_H=<?9;I7JLK G 57<=M_6?>KIn this configuration, Forms expects the images to be stored in a physical directorythat is virtually mapped to the ‘images’ name in the configuration of the HTTPlistener.When a separate physical server directory outside of the Forms installation is usedto store icon files it cleanly separates custom files from the Oracle9L Formsinstallation directories.0N6?D;G 8_G 84M7O_G P 9;3=<_E=H=<?9;I>QG 87RSP <=24E 6=TVU 0NWIn Oracle9iDS, the Oracle HTTP listener is not available; instead the OC4J HTTPlistener is used. Therefore, configuring the virtual path for images needs to be donein the orion-web.xml file located in the <Oracle9iDS Home>\ j2ee\ Oracle9iDS\application-deployments\ forms\ forms90web directory. The following settingdefines a virtual directory IRUPV___LPDJHV_that points to the icon directory c:\ tempdirectory:<virtual-directory virtual-path="/images"real-path="C:\temp" />10You may wonder where the IRUPV__ piece in the virtual path is coming from:The name IRUPV___is the name defined for Forms during installation. In otherwords, _IRUPV____creates a virtual mapping to the directory <Oracle9iDSHome>\ j2ee\ Oracle9iDS\ application-deployments\ forms\ forms90web thatcontains the orion-web.xml file.110N6?D;G 8_G 84M7O_G P 9;3=<_E=H=<?9;I>QG 87RSP <=24E 6=TVU X_WVirtual path mappings in Oracle9LAS are configured in the IRUPV___FRQI_file12. TheIRUQV___FRQI_file is located in the <Oracle9iAS Home>\ forms90\ server directory ofthe Oracle9L_Application Server installation and contains all configurationsrequired to run Oracle9LAS Forms Services.10 Note that this needs to be provided in one single line11 A more technical explanation is that Oracle9LAS Forms Services is installed as a Webapplication in OC4J and runs within its own namespace. The Forms Servlet and theForms Listener Servlet are J2EE components that handle all Forms Webcommunication. Both components are accessible through the namespace suffix _IRUPV__12 The forms90.conf file does also exist in the forms90/ server directory of Oracle9LDSbut is not used there????__ _____ __ _Y ________ _________ ___ ______________ __"!___#$_ _&%_' ____(__ )$__*$__ The IRUPV___FRQI file is linked into the Oracle HTTP Server and read duringapplication server startup. This also means that the application server needs to berestarted after changes have been added to the IRUPV___FRQI file for the changes totake effect.To create a virtual mapping, for example IRUPV___LPDJHV, for images used inOracle9LAS Forms Services, open the forms90.conf file with a text editor and addthe following line:# Forms image pathAliasMatch ^/forms90/images/(..*) "D:\FormsIcons/$1"The physical directory on the server machine is specified as D:\ FormsIcons. Boththe virtual path13 name and the physical icon directory can be freely chosen.Don’t forget to restart the Oracle9i Application Server for the changes to takeeffect.The name of virtual directory path needs to be added as the value of theGHIDXOW_LFRQV_LFRQSDWK parameter in the registry.dat file.B_6?D <_3_E 9;F G 21_8>_F G 21_8_H=<?9;I7JQI9 9;H_Z K K 5\[_>=6_P O=6_P_Z H41_P 9 K <_H_H_]_^_G 57<=M_6?>KThis configuration is useful if you want to store all images on a central serverinstead of locating them on all servers running a particular Forms Web application.Using this approach, no changes are required on the Oracle9LAS Forms Servicesmachine or the Forms application modules. The virtual path to access the imageicons need to be configured on the server that hosts the images.,FRQV_GHSOR\HG_LQ_-DU_ILOHV_Saving the best for last, using a Java archive file (JAR) to store and deploy imageicons has some advantages over all the deployment options mentioned before:x_ Deploying icons in a Java archive file works the same in Oracle9LASForms Services as in Oracle9LDS and Oracle9LAS;x_ The configuration is the same and no HTTP server file needs to bechanged;x_ Jar files can be created for each application and therefore allow you togroup images by applications and avoid naming conflicts;x_ Jar files are downloaded the first time they are requested by a client. Afterthis ‘initial’ download, the archive files are permanently cached on theclient and don’t need to be downloaded again.13 Using _IRUPV___ as a prefix of the virtual path name ensures consistency in thenaming with all other mappings contained in IRUPV___FRQI file????__ _____ __ _Y ________ _________ ___ ______________ __"!___#$_ _&%_' ____(__ )$__*$_'_;aJar files are only renewed if the timestamp of the archive file has beenchanged or the cached file is removed from the client side cache. Thisapproach may have a performance benefit for applications that have manyiconic buttons or run on networks with small bandwidthUnlike Jar files that contain Java code, e.g. f90all_jini.jar, Jar files that containimages don’t need to be signed.Jar files that hold image icons must be copied to the forms90/ java directory inboth Oracle9LDS and Oracle9LAS installations.To create a Jar files for images, you need a Java Development Kit (JDK)installation, or a Java 2 Standard Edition Development Kit (J2SDK or SDK)installation. J2SDK is the new name for what used to be called the JDK in olderJava releases.It is important to note that you need to have a SDK or JDK installation and notjust the Java Runtime Installation (JRE) to create Jar files. The JRE contains onlyruntime components that the “jar” command is not a part of..Oracle9LDS and Oracle9LAS contain a JDK directory with the latest SDK in it.The bin directory of this JDK directory contains the Jar utilities that are needed tocreate or extract Jar files.To create a Jar file for the icon images that are used in your Forms Webapplication, issue the following command from the directory that contains theimagesjar –cfv <application_images>.jar *.gifThe output is a new Jar file that contains all the gif files in the current directory.The basic parameters used within this command are:x_ “c” for creating a new filex_ “f” to specify a filename for the outputx_ “v” for a verbose output written to standard outThe following command creates a new Jar file with the name app1Images.jar thatcontains all the GIF files in the current directory.jar –cvf app1Images.jar *.gifIt is recommended to call the Jar command from the directory that contains theapplication image icon files. Archives can be opened with the WinZip tool. Doingthis should only list the names of the image files contained in the archive withoutany directory names.????__ _____ __ _Y ________ _________ ___ ______________ __"!___#$_ _&%_' ____(__ )$__*$_'___You may need to call the Jar command by specifying the JDK directory in theOracle9LDS installation. The following command creates a Jar file ‘app1Images.jar’in the forms90\ java directory including all GIF files of the current directory<Oracle9iDS Home>\ JDK\ bin\ jar –cvf <Oracle9iDS Home>\ forms90\ java\ app1Images.jar *.gifNow that you have created the app1Images.jar files with the images required foryour iconic buttons and tree item controls, the next step is to configure theformsweb.cfg file to use this Jar in Forms.Use a text editor to open the IRUPVZHE_FIJ_file located in the forms90/ serverdirectory of the Oracle9LDS or Oracle9LAS installation. If you are usingOracle9LAS, you also can edit the formsweb.cfg file using Oracle9L EnterpriseManager.Forms applications are defined in named configuration sections within theformsweb.cfg files. Named configurations are located on the bottom of theformsweb.cfg file and inherit their default settings from the “System Parameter”and the “User Parameter” sections. To create a new named configuration for yourForms Services application, scroll to the bottom of the opened formsweb.cfg fileand add the following entry:[myForms]form=myModule.fmxuserid=scott/tiger@orclThis application is called on the Web using the following URLhttp:/ / <hostname>:<port>/ forms90/ f90servlet?config=myFormsFor this application to read the images for iconic buttons from the Java archivecreated, add the following lines to the Named User configuration:[myForms]form=myModule.fmxuserid=scott/tiger@orclDUFKLYHBMLQL I__DOOBMLQLW_MDU_DSS_,PDJHV_MDU_LPDJHEDVH FRGHEDVHThe Forms archive tag, archive_jini in this example, references the f90all Jar fileand the Jar file containing the image icons.The “imagebase” parameter is set to codebase which means that Forms looks forthe IRUP___MDYD URL when downloading images. Because Java first searches in Jarb_c d_e_f g_h_Y ij_k_l_c m_n_j_g_c o_p e_g_n_q_r_l_s_t_l"u_g_v$f l&w_x e_l_y_n z$d_{$g'|;}files that are located within the codebase directory, the images are read from theapp1Images.jar14 file.7528%/(6+227,1*_,_FDQQRW_ILQG_)RUPV_GHIDXOW_LFRQV_VKRZQ_LQ_WKH_VPDUW_WRROEDU_The Forms standard icons for the smart bar are stored within the f90all_jini.jar fileand are already deployed.,_FDQQRW_VHH_P\_FXVWRPV_LFRQV_LQ_)RUPV_This can have many reasons. There are several actions that can fix this commonproblem;~€==.4...;=.. .._.7.._..;. ._._ .?.;. ._.Check the configuration of your icons path. If your Forms application is usingicons that are referenced by the Forms documentbase, you should be able toaccess the images from the following URLImages located in the forms90web directory:http:/ / <host>:<port>/ forms90/ <image name>.gifImages located in a directory mapped in the registry.dat file:http:/ / <host>:<port>/ forms90/ <virtual path><image name>.gifFor icons stored in Jar files, make sure that there is no directory information storedwithin the Java archive file. Open formsweb.cfg file and make sure the imagebaseparameter is set to code base and the archive_xxx parameter contains the name ofthe archive file holding the images. Finally verify that the image archive file isstored in forms90/ java _;. . ..;=.?._.;=\.._; =.V.N. .._.Q.=.4.7.. .Q ?. _ _.4.?=... .Q.4._..\.Java is case sensitive which most often is a problem for users running on Windowssystem. The case used in the “icon FileName” property in Forms must be thesame as shown in the image name. On Windows, select the icon name and pressF2 as if to edit the icon name. This shows the “real” case of the icon name, whichmost often is the same as displayed in the Windows Explorer, but can differ.,FRQV_VWRUHG_LQ_-$5_ILOHV_DUH_QRW_VKRZQ_ZKHQ_UXQQLQJ_LQ_SUHYLHZ_The Run Form feature in Oracle9L Forms Developer allows you to run a Formsapplication on the Web for testing. The Web URL is constructed based in theForms Builder setting in the EditÆPreferencesÆRuntime menu option. Bydefault, the URL does not contain the config=<named configuration> parameterwhich means that the default imagebase setting, documentbase, is active. To show14 Or whatever the name of your Java archive file isb_c d_e_f g_h_Y ij_k_l_c m_n_j_g_c o_p e_g_n_q_r_l_s_t_l"u_g_v$f l&w_x e_l_y_n z$d_{$g'|;.images that are stored in Jar files while using Run Form, create a namedconfiguration that contains the following entries[preViewMode]archive_jini=f90all_jinit.jar,app1Img.jarimagebase=codebaseEdit the $SSOLFDWLRQ_6HUYHU_85/ setting on the Runtime menu option and append‘?config=preViewMode’ to the URL shown. For example:http:/ / <hostname>:8888/ forms90/ f90servlet?config=preViewModeIf no URL is shown in the $SSOLFDWLRQ_6HUYHU_85/_field, then press the ‘Set Default’button to obtain this URL.,FRQV_VWRUHG_LQ_MDU_ILOHV_GRQ¶W_VKRZ_LQ_P\_)RUPV_DSSOLFDWLRQV_. ._._.._._ ..;=..=.?.=.L._.4_. .=..;. . .. .\.=..??.._. ._. ..;._. .;=.¡¢_.Make sure that the Java archive file is accessible from the Web. Test it by enteringthe URL into a browser:http:/ / <host>:<port>/ forms90/ java/ <iconjar file>.jarIf this doesn’t open a download dialog in your browser then the Jar file cannot befound. If you followed the best parctice tip that is mentioned earlier, replace“/ java” with the virtual name you defined for images.~€==.4.L. ._?._._N.4._..\.\._£_£_. . .?.?.;. ._.Q..=?.7._. =.V.._ \£_ ?.;. ¤=?.Q. .Q. .._.Q.=.4.7?.If your application uses directory name prefixes in the icon names, then thesedirectories must either be removed or added to the Jar file.. ._._.._._ ..;=.?.N. .._.Q.=.4.7?.Q. .L.;=.¥ .__.;. . ?.Q=.?.=..;=.;. ._._.?.?.=Icon names in Java are case sensitive. Make sure that the case used for icon namesis the same in the Forms Developer and the Java archive. On Windows, select theicon name and press F2 to see if the internal icon name is the same as the onedisplayed in the Explorer.6800$5<_Because Web-based applications no longer use platform specific file formats foriconic buttons and tree controls, icons first need to be converted into GIF or JPGformat. It is recommended to cleanly separate image locations from the Formsinstallation directories if you’re not using Jar files.b_c d_e_f g_h_¦ ij_k_l_c m_n_j_g_c o_p e_g_n_q_r_l_s_t_l"u_g_v$f l&w_x e_l_y_n§&¨ y_g_}_©_©_.i ¨_ª « l_c ¬&k&c d_y&_®Vp m'v « p ¨ n¯?l_y ª c p ° ¨_ª p y_{_i ¨_ª « l_c n_¬_±_c d_y ª_² l_y_d_f ³$´ ² l_°$p y_µ_p m'm_g_c m_d_y&yb_c d_e_f g_¯?l_c v&l_c d ª p l_y¶ l_c f ³"r_g_d_³$• ¨ d_c ª g_c n¸ ©_©_b_c d_e_f g'z$d_c .s_d_w² g_³_s_l$l$³Nj « l_c g_n_´_¯_i¹h_º_©_» ¸¼V½ j ½ i ½¶ l_c f ³_s_p ³$g_x y_• ¨ p c p g_n_¬z « l_y_g$¬_¾$| ½ » ¸ © ½ ¸ ©_» ½ ¿ ©_©_©k_d_À_¬_¾$| ½ » ¸ © ½ ¸ ©_» ½ ¿ }_©_©s4s4s ½ l_c d_e_f g ½ e_l_mb_c d_e_f g_¯?l_c v&l_c d ª p l_y'v$c l&o_p ³$g_n ª « g_n_l_Á ª s_d_c gª « d ª v&l_s_g_c n ª « g_p y ª g_c y_g ª ½b_c d_e_f g_p n_d_c g_{_p n ª g_c g_³ ª c d_³$g_m_d_c _l_Á_b_c d_e_f g_¯?l_c v&l_c d ª p l_y ½. d_c p l ¨ nv$c l$³ ¨ e ª d_y_³'n_g_c o_p e_g_y_d_m_g_n'c g;Á g_c g_y_e_g_³ « g_c g_p y'm_d_w_°&g ª c d_³$g_m_d_c ;nl_Á_b_c d_e_f g_¯?l_c v&l_c d ª p l_y ½ i=f _l ª « g_c_v$c l$³ ¨ e ª d_y_³'n_g_c o_p e_g_y_d_m_g_nm_g_y ª p l_y_g_³_m_d_w_°&g ª c d_³$g_m_d_c ;n_l_Á ª « g_p c_c g_n&v&g_e ª p o_g_l_s_y_g_c n ½¯?l_v_w_c p { «_ª&à }_©_©_._b_c d_e_f gi=f _c p { «_ª n'c g_n_g_c o_g_³ ½ اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
mohammedelsheikh بتاريخ: 20 ديسمبر 2006 تقديم بلاغ مشاركة بتاريخ: 20 ديسمبر 2006 - أنشيء بتون (زر) 2 - خصاائص البتون يوجد Icon filename= أضف إمتداد الصورة save.Gif فقط3-إمتداد الصورة لا بد أن يكون Gif * مع الإنتباه لحالة الحروف كبيرة أم صغيرة عند حفظ الصورة أو كتابتها في Icon filename4- الذهاب إلى الأمتداد هذا C:\OraHome2\forms90\java\oracle\forms\registryوسوف تجد السطرين الأتيين : default.icons.iconpathdefault.icons.iconextensionوتظيف عليهما الأتيبعد الأضافة تكون default.icons.iconpath=/FORMS90/HTMLdefault.icons.iconextension=Gif 5 - ثم إظافة الصورة في هذا الأمتداد C:\OraHome2\tools\web90\htmlثم أعمل كومبايل اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
khalideed بتاريخ: 20 ديسمبر 2006 تقديم بلاغ مشاركة بتاريخ: 20 ديسمبر 2006 ابدا معي خطوه خطوة1- يجب ان تكون الايقونات من نوع GIF وكنت احب ان ارفق ملف به الايقونات ولكن الجهاز يرفض لا ادري لماذا 2- الذهاب الى المسار التالي HOM10G\FORMS90\SERVER ثم نفتح الملف FORMSWEB ونذهب الى السطر ImageBase نكتب الجملة التالية ImageBase=CodeBaseتكتب كما هي لا تغيير فيها شئ واكرر كما هي 3- ثم نقوم بنسخ المجلد الذى به icons من النوع gif فى المسار التالي HOM10G\FORMS90\java\oracle\formsاسف نكمل الخطوه التالية4- نذهب الى المسار التاليHOM10G\forms90\java\oracle\forms\registryونفتح الملف registry ونذهب الى السطر التالي ونكتب كما هو default.icons.iconpath=oracle/forms/iconsحيث ان icons هو المجلد الذى به الايقونات gif حيث اننا لا نكتب كامل المسار الذى وضعنا فى الايقونات فقط من هذا المسار ان شاء الله تعمل وتأكد انها تعمل عندى 100% وجربتها ولو لم تظهر يكون المشكلة فى نوع الايقونا لو احد يعرف كيفة تحميل الملفات ارسلك ملف به اكثر من 100 ايونة gifوهذه اسهل طريقة من بين ثلاث طرق ولا تنسانا فى الدعاء 1 اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
Recommended Posts
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.