1. Get rid of all advertisements and get unlimited access to documents by upgrading to Premium Membership. Upgrade to Premium Now and also get a Premium Badge!

How to use hypertext content server forms (HCSF) in stellent content server ??

Discussion in 'Oracle Webcenter Suite (formerly Oracle ECM)' started by yaznesh, Feb 11, 2009.

  1. yaznesh

    yaznesh Forum Advisor

    Messages:
    61
    Likes Received:
    2
    Trophy Points:
    160
    Location:
    Hyderabad
    HI,

    How to use hypertext content server forms (HCSF) in stellent content server ??

    Actually, i want to CheckIn a form( HCSF page) inside the content server .
    as per my requirement, We have to create a workflow , in that a CEO need to approve that form then only it comes to released.

    For this purpose i just want to know that :

    1) how to write idocscript (form page in hcsf),
    2) How to create workflow for CEO approval
    3) How to check in that hcsf into content server.

    anybody, please let me know with a detail description and provide any document.

    regards,
    yaznesh.
     
  2. Sadik

    Sadik Community Moderator Forum Guru

    Messages:
    1,906
    Likes Received:
    252
    Trophy Points:
    1,455
    for workflow, you should use a criteria workflow which you can probably invoke by a custom metadata field. Or you can create a new content type for that form if it's to be a heavily used content type and create a criteria workflow based on the content type.

    you can check in a hcsf page like any other content item.
     
  3. yaznesh

    yaznesh Forum Advisor

    Messages:
    61
    Likes Received:
    2
    Trophy Points:
    160
    Location:
    Hyderabad
    hi,
    i want clear steps and procedure with an example wise for above requirement ..

    please send me some examples ...

    regards,
    yaznesh
     
  4. markH

    markH Forum Advisor

    Messages:
    88
    Likes Received:
    10
    Trophy Points:
    180
    Location:
    Kansas
    That's not a very polite way way of asking when you need help, nobody is getting paid here to help you!

    anyways, the handson documents i posted earlier has a step by step example shown with screen shots for criteria workflow. Check PRACTICE 17-1 on handson4.pdf from this Oracle UCM or stellent Beginner's Documents and tutorials thread.
     
  5. markH

    markH Forum Advisor

    Messages:
    88
    Likes Received:
    10
    Trophy Points:
    180
    Location:
    Kansas
    for hcsf pages you need to read the book "The Definitive Guide to Stellent Content Server Development" by Brian Huff. It has some excellent examples. I am showing you the code for displaying a simple hcsf form from Bex's book.
    Code (Text):

    <html>
    <head>
    <!--$include std_html_head_declarations-->
    <!--$idcbegindata-->
    <idcformrules />
    <formTitle></formTitle>
    <formData></formData>
    <!--$idcenddata-->
    </head>
    <!--$include body_def-->
    <!--$include std_page_begin-->
    <!--$c="Determine if this is the original HCSF or the HCSP, and if so
    make every field read only. Otherwise, if it's the original HCSF,
    only make the date and author fields read only."-->
    <!--$if ref:dExtension like "hcsp" -->
    <!--$isHcsp = 1-->
    <h3>Submitted Data From Simple Form</h3>
    <!--$else-->
    <h3>Simple Form</h3>
    <p>This page will allow a user to fill out a form, and check the
    data into the Content Server.</p>
    <!--$endif-->
    <form name="SimpleForm" method="POST" action="<!--$HttpCgiPath-->">
    <input type=hidden name="IdcService" value="SUBMIT_HTML_FORM">
    <input type=hidden name="dID" value="<!--$SourceID-->">
    <input type=hidden name="isFormFinished" value="1">
    <input type=hidden name="FormDocTitleScript"
    value="&lt;$UserName &amp; '-' &amp; formTitle$&gt;">
    <table>
    <!--$c="If this is the original HCSF, show a form, otherwise it is
    a HCSP, so just show the data."-->
    <!--$if isHcsp-->
    <tr>
    <td>Title:</td>
    <td><!--$formTitle--></td>
    </tr>
    <tr>
    <td>Data:</td>
    <td><!--$formData--></td>
    </tr>
    <!--$else-->
    <tr>
    <td>Title:</td>
    <td><input name="formTitle" size="50"></td>
    </tr>
    <tr>
    <td>Data:</td>
    <td><textarea name="formData" rows="8"
    cols="40"></textarea></td>
    </tr>
    <tr>
    <td colspan=2 align=center>
    <input type=submit>&nbsp;&nbsp;
    <input type=reset>
    </td>
    </tr>
    <!--$endif-->
    </table>
    </form>
    <!--$include std_page_end-->
    </body>
    </html>
     
     
  6. marcos

    marcos Guest

    Hi,

    I'm having a problem with the HCSF example in the previous post. After .hcsf file (with the code copy-pasted from the example) is checked in, and a form is submitted with some values, this is returned:

    Content item <undefined> was not successfully checked in. The content ID must be specified.

    My understanding was that a new content ID should be generated by the server after a form is submitted, i.e. a new HCSP item is created with it's own content ID. I'm new to UCM - does anyone have an idea what could be the problem here?
     
  7. sama

    sama Active Member

    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    55
    hello :
    you must make it NOT mandatory field "from admin server >> configration " so it will take it automatically ,,
    i hope that will help you :)