Images on Jheadstart

Hi, I'm trying to add support for uploading an image in the database I'm building, I'm using Oracle XE and I defined the datatype as blob. In the Jheadstart definition, I defined the attribute as an OrdImageDomain. Then I generated the application, but when I try to put images as I create the object I get this error.
Error
OJI-05001: oracle.jbo.domain.BlobDomain object is not of interMedia domains.
OJI-05001: oracle.jbo.domain.BlobDomain object is not of interMedia domains.
Do I need to define the object differently. Also is it possible to add a hyperlink to the image instead of adding the image itself.

I have ORACLE XE thought, and it doesn't have intermedia, is there intermedia available for ORACLE XE?

Similar Messages

  • How to bind dynamic columns in ADF table to view object

    In the below piece of code i am trying to bind a dynamically added column to my newly added attribute in view object, but the value expression does not set the value of this attibute in the view object please help on what is wrong in this code ??
    <af:table value="#{bindings.ViewObj1.collectionModel}" var="row"
    rows="#{bindings.ViewObj1.rangeSize}"
    emptyText="#{bindings.ViewObj1.viewable ? 'No rows yet.' : 'Access Denied.'}"
    fetchSize="#{bindings.ViewObj1.rangeSize}"
    filterModel="#{bindings.ViewObj1Query.queryDescriptor}"
    queryListener="#{bindings.ViewObj1Query.processQuery}" varStatus="vs"
    selectedRowKeys="#{bindings.ViewObj1.collectionModel.selectedRow}"
    rowSelection="single"
    binding="#{backingBeanScope.backing_createDTpg1.table1}"
    id="table1"
    columnSelection="single"
    partialTriggers="::addCol ::addColAfter ::addColBefore ::removeCol ::addRow ::addRowAfter ::addRowBefore ::removeRow ::addAction ::addActionAfter ::addActionBefore ::deleteAction :::dialog1 :::d1"
    allDetailsEnabled="true" verticalGridVisible="false"
    horizontalGridVisible="true" width="100%" disableColumnReordering="true"
    selectionListener="#{bindings.ViewObj1.collectionModel.makeCurrent}"
    immediate="true" contentDelivery="immediate"
    editingMode="clickToEdit" autoHeightRows="-1">
    <af:column sortProperty="Sno" filterable="false" sortable="false"
    headerText="Sno"
    align="center" width="28" rowHeader="true"
    inlineStyle="font-style:italic;" frozen="true"
    id="sno" selected="true" headerNoWrap="true"
    displayIndex="0">
    <af:outputText id="ot0" value="#{vs.index+1}"/>
    </af:column>
    <af:column id="separatorColumn" align="center"
    width="15" frozen="true" displayIndex="1"
    rowHeader="unstyled" sortable="false"
    filterable="false" selected="false"
    inlineStyle='background-image:url("jheadstart/images/jsp_forward.png"); background-repeat:no-repeat; outline-color:InactiveCaption; outline-style:solid; outline-width:thin;'
    headerText=""/>
    </af:table>
    DCBindingContainer dcBindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iterBind =
    (DCIteratorBinding)dcBindings.get("ViewObj1Iterator");
    ViewObject decisionTableView1 = iterBind.getViewObject();
    System.out.println("before getAttributeCount :"+decisionTableView1.getAttributeCount());
    int counter = decisionTableView1.getAttributeCount() + 1;
    AttributeDef attribute =
    decisionTableView1.addDynamicAttribute("condition_" + counter);
    RichColumn column = new RichColumn();
    column.setId("condition_" + counter);
    column.setHeaderText("condition_" + counter);
    column.setNoWrap(true);
    RichInputText inputtext = new RichInputText();
    inputtext.setId("condition_"+counter);
    inputtext.setAutoSubmit(true);
    inputtext.setValueExpression("condition_"+counter,
    getValueBinding("#{row.bindings.condition_" +
    counter +
    ".inputValue}"));
    column.getChildren().add(inputtext);
    RichCommandImageLink headerLink = new RichCommandImageLink();
    headerLink.setText("<<Select Fact>>");
    headerLink.setId("conditionLink_" + counter);
    column.setHeader(headerLink);
    List columnList = this.table1.getChildren();
    int separatorColumnIndex =
    findColumnIndex(columnList, "separatorColumn");
    if (columnIndex == -1 || columnIndex > separatorColumnIndex) {
    columnIndex = separatorColumnIndex;
    System.out.println("Column Index :" + columnIndex);
    column.setDisplayIndex(columnIndex);
    this.table1.getChildren().add(columnIndex, column);

    Sorry Frank i could not figure out what u rtrying to say.
    In my case i have ADF table with two predefined coulmns :
    1 : a serial number read only column
    2 : a separator coumn
    I need help to bind the newly created dynamic attribute in the VO with my newly created column in the ADF table which has a input text as child.
    My problem is binding the is not working properly as values entered in the Table are not reflected in the VO.
    And when i insert a new column in between two columns which has already filled values the data in the rows does not shift coreespondingly..
    Edited by: user10281080 on Jul 27, 2009 12:22 AM

  • JHS setting for the Display Type of Rich Text Editor

    In the "Display Type" settings for an item, there is no option in the JHS Definition Editor to choose a "Rich Text Editor" type. Is that intentional or an oversight?
    Thanks,
    Gary

    Gary,
    don't know why it's left out, but you can implement a rich text editor with a custom template (that's the answer I got when I asked the question several months ago). Here's the template code I use for implementing a rich text editor in a table:
    #macro (EDITOR_POPUP)
    <af:popup id="${JHS.current.item.bindingName}Popup" contentDelivery="lazyUncached" eventContext="launcher">
    <af:dialog modal="true" resize="on" title="#TEXT_EDITOR_TITLE()" id="${JHS.current.item.bindingName}Dialog">
    <af:richTextEditor rows="10" columns="100" #ITEM_VALUE_IN_FORM()
    simple="true" id="${JHS.current.item.bindingName}EditorText"/>
    </af:dialog>
    </af:popup>
    #end
    #set ($popupId = ${JHS.page.addPopup("${JHS.current.item.bindingName}Popup","${JHS.engine.fullNamingContainerPath}","#EDITOR_POPUP()")})
    #set ($popupDialogId = ${popupId.replaceAll("Popup","Dialog")})
    <af:panelLabelAndMessage #ITEM_RENDERED_IN_TABLE() #ITEM_PARTIAL_TRIGGERS() #ITEM_HINT()>
    <af:richTextEditor #ITEM_ID_IN_TABLE() #ITEM_VALUE_IN_TABLE() #ITEM_PROMPT_IN_TABLE()
    #ITEM_REQUIRED_IN_TABLE() #ITEM_ROWS() #ITEM_COLUMNS()
    #ITEM_READ_ONLY_IN_TABLE() #ITEM_ADDITIONAL_PROPERTIES()
    #ITEM_DISABLED_IN_TABLE() #DEPENDS_ON_ITEM_PROPS_TABLE()
    simple="true" partialTriggers="${JHS.current.item.bindingName}EditorLink ${popupDialogId}">
    #REGULAR_EXPRESSION_VALIDATOR()
    #VALIDATOR_BINDING_IN_TABLE()
    #NUMBER_CONVERTER()
    </af:richTextEditor>
    <af:commandLink id="${JHS.current.item.bindingName}EditorLink"
    #JHS_PROP("rendered" $JHS.current.item.renderEditorLinkInTable)
    immediate="true" partialSubmit="true">
    <af:showPopupBehavior popupId="${popupId}"/>
    <af:image source="/jheadstart/images/editor.gif" id="${JHS.current.item.bindingName}Icon"
    clientComponent="true"/>
    </af:commandLink>
    </af:panelLabelAndMessage>
    #ITEMS_DISPLAYED_AT_RIGHT_IN_TABLE()

  • Display image in detail groups in jheadstart 11.1.1.3.35

    Hi, I've been trying to make a project that should display one picture in one of the detail groups. but when i generate the jheadstart definition editor and run the project, it shows an empty box for the image (image is not loaded).
    I've seen the source code and every thing seems right and when i use that detail group as a master group the image display just fine.
    is jheadstart 11g have a problem for displaying image in detail groups? because I've heard this option works in 10g pretty fine.
    please help me how i can fix this problem and i have to say my project deadline is coming :(

    We are not aware of such a problem.
    To really check whether it is related to a detail group, can you temporarily make the detail group a top-level group, generate and run your application to see whether the problem goes away?
    Make sure you first uncheck the Same Page checkbox before you drag and drop the detail group to become a top group.
    There is a known ADF issue that when you upload a new image, the new image is only shown when you restart the session.
    Steven Davelaar,
    JHeadstart Team.

  • Filename of uploaded images

    I can see a couple of posts that have already been made about the filename used in the "Save As" dialog box after clicking on a FileDownload link but I can't see a resolution being supplied for this.
    I am using JHeadstart 10.1.2.0 and JDeveloper 10.1.2.0.0.
    I have created a table with im_orddoc ordsys.orddoc, filename varchar2(100).
    In my view object I created a transient attribute to be used as the file download. Within the JHeadstart property editor, the im_orddoc is set to displayType of fileUpload and File Name Attribute to Filename. The transient download_orddoc is set to displayType of fileDownload and File Name Attribute to Filename.
    The filename is being stored correctly and being displayed correctly as the file download link, only, when you click on the link, in the file download box (using IE), the file name reverts to "ordDeliverMedia.xxx".
    How can I get the correct filename to be displayed in the save as dialog box instead of this generic name ?
    Also, I want to be able to display a link within a form for all types of uploaded media (ie doc, exel, jpg etc...). If an image has not been uploaded, a link is displayed. If an image has been uploaded, then the image is rendered rather than a link. How can I ensure that a link is always shown regardless of media type ?
    Cheers,
    Brent Harlow

    Brent,
    Yes, we noticed this too. Both issues are caused by the "magic" of the UIX <media> tag. It automatically recognizes the file type and displays an image as image instead of download link (a user can still right-mouse-click on the image and choose Save as..."). The issue with the filename in the download box is probably a combination of <media> tag and IE, in Firefox it works fine. Could you please repost your questions on the JDeveloper forum, may be the UIX guys know of additional settings on the <media> element to get the behavior you want.
    Steven Davelaar,
    JHeadstart Team.

  • How to set a uniform display size of multiple intermedia image types - wher

    I have read "If you want to limit the size of the file that can be uploaded, you can do this as a post generation
    step, by adding the maxFileSize property to the <controller> element in the struts-config:
    This does not address how to limit the *** display size *** where you have multiple intermedia image types - where the original size is not uniform.
    If an image is uploaded where the true image display size is 1024 x 768 - it will display that way in the table/table-form. This will create un-even display size's where previous images sizes where different 384 x 384 and so on.
    Is there a way to encode the display size so that *** ALL *** images regardless of their true size are displayed uniformly at least on one dimension (64 x ???)? This is possible when using products such as Dreamweaver or Flash.
    BTW - JHS/***JDev*** synergy is truely magnificient!!! Way-To-Go Oracle!!!!!!!!!!! Keep it up!!!!
    BG...

    Bill,
    I did some tests, and was able to reproduce it. The problem is that JHeadstart distinguishes between display types fileDownload and image, but UIX uses the same <media> tag to handle both display types. It will look at runtime whether it must render a hyperlink to download the document, or to render it right away as an image.
    To get all images the same size, you can set the display width and height, AND the display type must be set to image.
    However, to get the file name used as download link, you must set the FileName attribute AND the display type must be set to "fileDownload" ..
    So, to solve your problem, it is easiest to set the displayType to "fileDownload" and set the width and height properties post-generation in the generated UIX page.
    In the next release of Jheadstart, we will fix this, and always pick up width, height and fileName settings regardless of the display type.
    Note that you should also set the FileName property against the attribute you are using to upload the file.
    Steven Davelaar,
    JHeadstart Team.

  • How to display image in database using html or php

    i've try already to work this thing but i can't do it. anyone that can help me or give me any example or reference to resolve my problem to retrieve or display image(blob) from database. hope that all of you help me

    Using JHeadstart, you can display a BLOB column from the database in HTML, by way of ADF. Check out the JHeadstart Tutorial at http://www.oracle.com/technology/products/jdev/tips/muench/jhstutorial/index.html to get started, then do the same for your own database tables that include the BLOB column. JHeadstart will take care of rendering it as a file upload or image, depending on the display type you set at the attribute level.
    Hope this helps,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting

  • Tabbed child form with image

    Hello, forum!
    Help, please!!!
    I use JhsTabbedChildrenTemplates.jtp to generate master with five details on the same page.
    Layout style of two of the detail groups is form layout. I use for this tabbedformChildGroup.jut. I have successfully used this template for all groups except when using the group with image. If I use table-layout for this group all works fine. But when I use form layout for this child group there is error on the page when i run it.
    When I generate this group as form on the different page (unchek same page) all
    works fine too.
    Help, please.
    tabbedformChildGroup.jut:
    <header id="$GROUP_NAME$Header" text="$FORM_GROUP_TITLE$" rendered="${ui:cond('$GROUP_NR$'=='1',param.selectedTab==null or param.selectedTab=='' or param.selectedTab=='1',param.selectedTab=='$GROUP_NR$')}">
    <contents>
    $SEARCH_REGION$
    <rowLayout rendered="${!createMode$GROUP_NAME$ and bindings.$GROUP_NAME$Iterator.currentRowIndexInRange!=-1
    and bindings.$GROUP_NAME$Iterator.findMode!='true'}">
    <contents>
    <image source="${requestContextPath}/cabo/images/srmvall.gif" onClick="doEvent('First$GROUP_NAME$');"/>
    <spacer width="4" height="1"/>
    <image source="${requestContextPath}/cabo/images/srmv.gif" onClick="doEvent('Previous$GROUP_NAME$');"/>
    <spacer width="4" height="1"/>
    <styledText styleClass="OraPromptText"
    text=" [${bindings.$GROUP_NAME$Iterator.rangeStart+bindings.$GROUP_NAME$Iterator.currentRowIndexInRange+1} / ${bindings.$GROUP_NAME$Iterator.estimatedRowCount}] "/>
    <spacer width="4" height="1"/>
    <image source="${requestContextPath}/cabo/images/smv.gif" onClick="doEvent('Next$GROUP_NAME$');"/>
    <spacer width="4" height="1"/>
    <image source="${requestContextPath}/cabo/images/smvall.gif" onClick="doEvent('Last$GROUP_NAME$');"/>
    </contents>
    </rowLayout>
    <styledText text="${nls.NO_ROWS_FOUND}"
    styleClass="OraInstructionTextStrong"
    rendered="${bindings.$GROUP_NAME$Iterator.currentRowIndexInRange==-1}"/>
    $FORM_ITEMS$
    <!-- bug 3472400: for hidden field value binding, we cannot bind to a Boolean
    request attribute, has to be a string! -->
    <formValue name="createMode$GROUP_NAME$" value="${createMode$GROUP_NAME$String}" />
    $GROUP_BUTTONS$
    </contents>
    </header>
    P.S. I implemented group with image and image upload as described in 3 chapter
    of JHS developer's guide.

    Because of a UIX bug 4509014, tabbed children do not work when the form submits a multipart request (which is the case with image uploading).
    This is documented in the release notes of JHeadstart versions 10.1.2.1 and 10.1.2.2
    There is a patch avaliable for this bug:
    https://updates.oracle.com/ARULink/SimpleSearch/process_form?search_type=patch&patch_number=4509014&plat_lang=912P&display_type=&search_style=8&orderby=3&direction=d&old_type_list=&gobuttonpressed=&sortcolpressed=&tab_number=&c_release_parent=product&c_product_child=release
    Steven Davelaar,
    JHeadstart Team.

  • Problem to display image from database

    i also waiting when this practical will come to the end la..really boring..mrhanafi came 2 weeks ago..he didnt check anyhting..he was there for 15 mins only..hey dont play ponteng la..after this friday you ponteng how many days you want;)

    Using JHeadstart, you can display a BLOB column from the database in HTML, by way of ADF. Check out the JHeadstart Tutorial at http://www.oracle.com/technology/products/jdev/tips/muench/jhstutorial/index.html to get started, then do the same for your own database tables that include the BLOB column. JHeadstart will take care of rendering it as a file upload or image, depending on the display type you set at the attribute level.
    Hope this helps,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting

  • Problem displaying Blob column as an image

    Hi all,
    Ik have created an attribute (as part of an Entity Object and a View object) on top of a blob column.
    With JHeadstart I generated one insert group (display type fileUpload) and one query group (display type image).
    I managed to upload (and store) pictures.
    However when I query the pictures the folowing occurs:
    1. when I scroll through the records the first time the picture is shown OK
    2. the secod time when I scroll through the same dataset the picture is not shown...
    3. when I restart the pageGroup, the pictures are shown..
    Do you have any suggestions?

    A fix has been found, see the thread at Why the image only show first time?? for details.
    kind regards,
    Sandra Muller
    JHeadstart Team

  • Uploading images (photo's) using messageFileUpload?

    I'm trying to use images in UIX in combination with JHeadstart.
    Has anyone used the <messageFileUpload> in UIX? Is this the element to use if I want to upload a picture to the database?
    More-over, what things do I have to keep in mind if I use this eg. HOW do I use it and what column type should the db-column be?
    I guess I can display this column in UIX using the <image> element? Any examples are more than welcome.

    Bram,
    I'm trying to use images in UIX in combination with JHeadstart.
    Has anyone used the <messageFileUpload> in UIX? Is this the element to use if I want to upload a picture to the database?Yes, you can use this element.
    More-over, what things do I have to keep in mind if I use this eg. HOW do I use it and what column type should the db-column be?The DB column type should be a BLOB. Out of the box, the MVC Framework only supports file upload to a file server. Please address this part of your question to the Cleveland discussion forum on OTN. The Cleveland forum is the forum to ask questions about the MVC Framework. (The MVC Framework used to be called Project Cleveland).
    I guess I can display this column in UIX using the <image> element? Any examples are more than welcome. Yes, you can use the <image> element. What is your e-mail address? We can send you some sample code.
    JHeadstart Team

  • New record insert in JHeadstart application deployed to Tomcat

    Hello Friends,
    I developed an application with JHeadstart and it works well but when I deploy it into Tomcat a problem appears:
    I have some records -let's say employees- and I want to enter a new record. I click the "New Employee" button but the selected record seems in the form instead of empty form. This problem is seen in the first run of the program.
    How can I overcome this Tomcat problem, I need an immediate help.
    thanks...

    Dear Muller,
    THanks your reply, As my test to generate new jheadstrat application again that using JHEADSTART10.1.2.2.32 release, the problem be solve! but I follow /install.html to migration our exist application that using JHEADSTART10.1.2., the problem cannot be solve after did all migration procedure , the problem whether can be solve using migration path on exist application?
    the following is my migration procedure:
    For upgrading from a previous JHeadstart 10.1.2.0.x build, apply the following steps:
    1. Apply the steps in section Installation in the existing JHeadstart 10.1.2 Home, overwriting the old JHeadstart 10.1.2.x files.
    2. For each JHeadstart project where you want to make it possible to run JHeadstart Application Generator with all the new features and fixes, perform the following steps:
    * Select all JHeadstart Generator Templates (*.jut files, *.jjt files, and *.jtp files) in the JDeveloper (ViewController) Project and choose File - Erase from Disk. If you customized one or more templates, you should re-apply the functional changes you made.
    * Select all JHeadstart generated files in [HTML Root]\common in the JDeveloper (ViewController) Project and choose File - Erase from Disk. If you customized one or more of these files, you should re-apply the functional changes you made.
    * In each Application Structure File, for each Lookup of type "lov", turn on the new Generation Switch "Generate LOV Page?"
    3. Other upgrade steps to perform for each JHeadstart project, to ensure that the new JHeadstart Runtime will work correctly:
    * Correct the link to the JHeadstart documentation in index.html. In previous builds, this link was incorrect. It should be * Re-enable JHeadstart on each (ViewController) JHeadstart project. Choose Overwrite All and Yes to All, unless you know you have customized images or other supported files other than web.xml or uix-config.xml. A backup will always be made of those two files. If you customized the uix-config.xml or web.xml file, you will have to re-apply the customizations.
    * If you don't generate the Struts-Config Service-level Entries anymore (a setting in the JHeadstart Application Structure File), you should manually add the processorClass attribute to the <controller> element of your struts-config.xml file(s) like this: <controller ... processorClass="oracle.jheadstart.controller.strutsadf.JhsRequestProcessor"/>
    * If you subclassed any JHeadstart runtime classes in your own Java classes, check the overridden methods to see if they have changed. You might need to change the way you override the JHeadstart behavior as well.
    Note that if you have overridden classes in JhsDataAction just to override default behavior of the JHeadstart BindingUtils or ReportingUtils classes, the new JhsDataAction has a much easier way to achieve that. Just override JhsDataAction.getBindingUtils() or JhsDataAction.getReportingUtils(), and make sure that it returns your own subclass of BindingUtils or ReportingUtils.
    For upgrading from a previous JHeadstart 10.1.2.x build, apply the following steps:
    1. Apply the steps in section Installation in the existing JHeadstart 10.1.2 Home, overwriting the old JHeadstart 10.1.2.x files.
    2. Re-enable JHeadstart on each (ViewController) JHeadstart project. Choose Overwrite All and Yes to All, unless you know you have customized images or other supported files other than web.xml or uix-config.xml. A backup will always be made of web.xml and uix-config.xml. If you customized the uix-config.xml or web.xml file, you will have to re-apply the customizations.

  • Feedback from JHeadstart Workshop - Enhancement Requests

    Hi,
    We at AMIS just finished a six-day workshop on JHeadstart in combination with UIX & (primarily) JSP and BC4J & (primarily) Toplink. We have discovered a lot of things we can do rather easily using JHeadstart and the related frameworks and we feel pretty confident about using JHeadstart in the real world. In fact, in hindsight we feel that one of our recent projects could have been substantially accelerated had we been using JHeadstart with Struts and JSPs.
    Of course we have also discovered quite a number of things we would like to see improved in JHeadstart. Below I will list just a few that we would really like to see made part of the product.
    * Support for distinct display properties in VO Attributes for find/table/form-page
    * Generate Struts submodules
    * A strategy document outlining the best approach for (re-)generating later on in the project after having made manual changes (it seems we could not get the Application Generator to not overwrite the struts-config.xml even for groups that we explicitly excluded from regeneration of controller-logic); it seems that the main stumbling block for using JHeadstart in a serious project - or at least the generation capabilities- is not being able to deal with regeneration
    * Good explanation of the extension points of JHeadstart; Struts has very well defined and documented extension points; JHeadstart (generated) applications are somewhat less clearly extensible.
    * Better documentation on how to change the look&feel of the generated application - the pointers in the Developer's Guide are really quite meagre for this task.
    * Extend property persistentAttribute in VO Attributes to override the persistentAttribute property currently generated in Form Bean as always equal to the VO att name (you can override the DataObjectImpl.getAttribute() and allow different patterns to be passed for persistentAttribute, such as manager.department.location to get hold of the name of the department of the manager of the current employee
    * Support a diplay type of Image for Attributes (type BLOB or RAW) that contain Images; such images should be displayed as IMG where the src-attribute refers to a download action in the Struts-Controller.
    * Support a diplay type of File for Attributes (type CLOB, BLOB or RAW) that contain contents to be downloaded as file; such files should be displayed as download button or link where the href-attribute refers to a download action in the Struts-Controller.
    * Support a display type of Hyperlink for Attributes that contain a URL; in display only mode this attribute should be displayed as hyperlink, in insert/update mode the field should be accompanied by a small icon that allows navigation.
    * Allow the JAG to generate Resource Bundels for multiple languages at once, rather than rerunning several times for each language
    * Generate Breadcrumbs in JSPs
    * Generate Regions in JSPs
    * Allow static values for query type arguments to be provided - in struts config as action properties (for example for poplist population) - compare example Choosing Custom Query from Poplist in Tutorial where the page needs to provide the queryType bindparameter value; currently the value for the bindparameters used in the queryType need to be set in the session (typically from a form-field in the posted form); however, a queryType that can support for example all Domains in CG_REF_CODES with only the domain name bindparameter making the difference is very useful for populating poplists before displaying pages. It would be very handy if I can just specify the domainName as bindparameter in the getDataObjectSet action along with the queryType instead of forcing the value of the domainName into the Session.
    * generate lookup (hyperlink/navigation to (popup with) details for the indicated record (for example: navigate to departments details by clicking on the Departments name in the Employees(Table)Page
    * generate navigation buttons - new childtype in Application Structure file along with Regions: Navigation (Button); properties: targetGroup, possible page (table/form/child) and primary key of dataobject in target to be passed
    Thanks for implementing any of these suggestions!
    "The JHeadstart Team at AMIS!"

    Lucas,
    Thanks you very much for the useful feedback.
    The good news is that many of your enhancement requests are already on our radar screen.
    Your comments on the documentation are well taken. There is always room to improve the doc. If you have any specific topics/customizations that should be documented first, that would help us setting priorities on improving the doc.
    Here are more detailed comments on some of your suggestions:
    * Support for distinct display properties in VO Attributes for find/table/form-page
    Not sure about this one. You can already get this by using resource bundles, we generate sperate keys for table and form items
    * Generate Struts submodules
    We will generate forwardPattern="$P" in the next patch.
    * Support a diplay type of Image for Attributes (type BLOB or RAW) that contain Images; such images should be displayed as IMG where the src-attribute refers to a download action in the Struts-Controller.
    The runtime support for this is done. We hope to include generation of images in the patch release schduled for November.
    * Support a diplay type of File for Attributes (type CLOB, BLOB or RAW) that contain contents to be downloaded as file; such files should be displayed as download button or link where the href-attribute refers to a download action in the Struts-Controller.
    Same status as images.
    * Support a display type of Hyperlink for Attributes that contain a URL; in display only mode this attribute should be displayed as hyperlink, in insert/update mode the field should be accompanied by a small icon that allows navigation.
    Good idea, easy to do in read only mode.
    * Allow the JAG to generate Resource Bundels for multiple languages at once, rather than rerunning several times for each language
    Nice to have, not a top priority in our view.
    * Generate Breadcrumbs in JSPs
    Yes, not easy to do, but is already on our list for next major release.
    * Generate Regions in JSPs
    Same status as breadcrumbs.
    * Allow static values for query type arguments to be provided - in struts config as action properties (for example for poplist population) - compare example Choosing Custom Query from Poplist in Tutorial where the page needs to provide the queryType bindparameter value; currently the value for the bindparameters used in the queryType need to be set in the session (typically from a form-field in the posted form); however, a queryType that can support for example all Domains in CG_REF_CODES with only the domain name bindparameter making the difference is very useful for populating poplists before displaying pages. It would be very handy if I can just specify the domainName as bindparameter in the getDataObjectSet action along with the queryType instead of forcing the value of the domainName into the Session.
    Understand the value, we could do this by using single quotes to indicate constants within the attributeNames property.
    * generate lookup (hyperlink/navigation to (popup with) details for the indicated record (for example: navigate to departments details by clicking on the Departments name in the Employees(Table)Page
    We have designed a simple but powerful way to link groups, which effectively provides you the ability of unlimited nesting of groups. Design is ready, implementation has to start, but we very much would like to include this in the patch release. No promises though...
    * generate navigation buttons - new childtype in Application Structure file along with Regions: Navigation (Button); properties: targetGroup, possible page (table/form/child) and primary key of dataobject in target to be passed
    This is included in the design as mentioned in the previous item.
    Steven Davelaar,
    JHeadstart Team

  • JHeadstart 10.1.3.3.88 Tutorial

    Looking for end-to-end JHeadstart tutorial for 10.1.3.3.88. Links are not working on the Oracle web site. Cannot download the PDF from the web site. Links are no longer working. Wondering if anyone has the PDF and all the links for the course.
    The link to
    http://otn.oracle.com/products/jdev/tips/muench/jhstutorial/jhs-step-by-step.pdf
    does not work.
    It was supposed to be
    Building Enterprise JSF Applications with Oracle JHeadstart for ADF (10.1.3)
    A step-by-step, end-to-end tutorial on how to be effective immediately with J2EE application development using Oracle tools.
    The HTML version is here
    http://www.oracle.com/technetwork/developer-tools/jdev/index-091545.html
    but none of the images or links on this page are working anymore so it makes it hard to follow the tutorial with out the images.
    If either the HTML version could be fixed or they could just send us the PDF version that would be helpful.
    Please email me at the following email address.
    [email protected]
    Edited by: user10862933 on Apr 18, 2011 8:34 AM

    Catherine,
    I just sent you the pdf version.
    Steven Davelaar,
    Jheadstart team.

  • If image file not exist in image path crystal report not open and give me exception error problem

    Hi guys my code below show pictures for all employees
    code is working but i have proplem
    if image not exist in path
    crystal report not open and give me exception error image file not exist in path
    although the employee no found in database but if image not exist in path when loop crystal report will not open
    how to ignore image files not exist in path and open report this is actually what i need
    my code below as following
    DataTable dt = new DataTable();
    string connString = "data source=192.168.1.105; initial catalog=hrdata;uid=sa; password=1234";
    using (SqlConnection con = new SqlConnection(connString))
    con.Open();
    SqlCommand cmd = new SqlCommand("ViewEmployeeNoRall", con);
    cmd.CommandType = CommandType.StoredProcedure;
    SqlDataAdapter da = new SqlDataAdapter();
    da.SelectCommand = cmd;
    da.Fill(dt);
    foreach (DataRow dr in dt.Rows)
    FileStream fs = null;
    fs = new FileStream("\\\\192.168.1.105\\Personal Pictures\\" + dr[0] + ".jpg", FileMode.Open);
    BinaryReader br = new BinaryReader(fs);
    byte[] imgbyte = new byte[fs.Length + 1];
    imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
    dr["Image"] = imgbyte;
    fs.Dispose();
    ReportDocument objRpt = new Reports.CrystalReportData2();
    objRpt.SetDataSource(dt);
    crystalReportViewer1.ReportSource = objRpt;
    crystalReportViewer1.Refresh();
    and exception error as below

    First: I created a New Column ("Image") in a datatable of the dataset and change the DataType to System.Byte()
    Second : Drag And drop this image Filed Where I want.
    private void LoadReport()
    frmCheckWeigher rpt = new frmCheckWeigher();
    CryRe_DailyBatch report = new CryRe_DailyBatch();
    DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter ta = new CheckWeigherReportViewer.DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter();
    DataSet1.DataTable_DailyBatch1DataTable table = ta.GetData(clsLogs.strStartDate_rpt, clsLogs.strBatchno_Rpt, clsLogs.cmdeviceid); // Data from Database
    DataTable dt = GetImageRow(table, "Footer.Jpg");
    report.SetDataSource(dt);
    crv1.ReportSource = report;
    crv1.Refresh();
    By this Function I merge My Image data into dataTable
    private DataTable GetImageRow(DataTable dt, string ImageName)
    try
    FileStream fs;
    BinaryReader br;
    if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + ImageName))
    fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
    else
    // if photo does not exist show the nophoto.jpg file
    fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
    // initialise the binary reader from file streamobject
    br = new BinaryReader(fs);
    // define the byte array of filelength
    byte[] imgbyte = new byte[fs.Length + 1];
    // read the bytes from the binary reader
    imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
    dt.Rows[0]["Image"] = imgbyte;
    br.Close();
    // close the binary reader
    fs.Close();
    // close the file stream
    catch (Exception ex)
    // error handling
    MessageBox.Show("Missing " + ImageName + "or nophoto.jpg in application folder");
    return dt;
    // Return Datatable After Image Row Insertion
    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

Maybe you are looking for