Data Service - only returning 256 chars on text field

Using FlashBuilder Data Services - PHP service all working fine.
Except the service is only returning the first 256 chars of a "text" field of my db table.
The field has more than 256 chars and is marked up via the RTE component
<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#000000" LETTERSPACING="0" etc...
The generated code looks like(memberservice.php)
public function getAllMember_content() {
        $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename" );       
etc....
Have tried a few conversions on the sql statement to no avail
select *, convert(text,data) as data from members
Any ideas on why this is happening - debugged in charles and its cut off in the response from ZEND/PHP so it in not Flex doing it
this one is killing me :-)
rgds
m

ok solved - kind of
phew - it's the generated service code it appears - not sure why it's working for some and not others! head scratching
this works
public function getAllItems() {
    $this->connect();
    $sql = "SELECT * FROM member_content";
    $result = mysql_query($sql) or die('Query failed: ' . mysql_error());
    return $result;
this does not
public function getAllMember_content() {
        $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename" );       
        $this->throwExceptionOnError();
        mysqli_stmt_execute($stmt);
        $this->throwExceptionOnError();
        $rows = array();
        mysqli_stmt_bind_result($stmt, $row->id, $row->title, $row->topic, $row->type, $row->data, $row->shortdesc, $row->date_created, $row->date_lastmod, $row->rank, $row->createdby, $row->content_source);
        while (mysqli_stmt_fetch($stmt)) {
          $rows[] = $row;
          $row = new stdClass();
          mysqli_stmt_bind_result($stmt, $row->id, $row->title, $row->topic, $row->type, $row->data, $row->shortdesc, $row->date_created, $row->date_lastmod, $row->rank, $row->createdby, $row->content_source);
        mysqli_stmt_free_result($stmt);
        mysqli_close($this->connection);
        return $rows;
thanks all for your help
many thanks
martin

Similar Messages

  • FB4, Data Services&PHP returned data is lost

    Hi,
    I set up an RPC call using the data services, all works fine so far. Fb built a dataType for me holding all the returned variables. Now I let Fb generate the communication forms for me. This results in a form where I put in the parameters and hit the button that triggers the call. And a second form that is supposed to show the results. Now whereas the call of the rpc works fine, the results are never shown. When I dump in the php what is supposed to be returned all looks fine.
    As far as I understand Fb sets up an RPCManager that is supposed to handle the result. But I do not understand how to trace the callback. (I used to use the HTTPService where I set up a callback event manually, this was easy to trace but I am kind of stuck with the RPCManager).
    Is there a possibility to track the callback function that is supposed to handle the return values of the rpc call? PHP returns an associative array, when I configure the Data service in Fb all fields are correctly identified. What could be a reason for the result form not to show anything? Using RPCs that return a single string only works fine!
    THX in advance.

    Just to add some infos:
    Configuring the service works fine: Fb shows that an object consisting of five strings is returned and this is exactly what happens.
    But when using this service the lastResult value is always NULL. That seems strange to me.
    old amfphp used to have a service browser is there anything comparable for the ZendFramework? I´d love to find out where the data is lost. Resp. what the difference is between the calls when configuring and the calls coming from the application...

  • How to handle carriage return/linefeed embedded in text field as first char

    Hi,
    I am trying to use sqlldr to import text that is comma-separated and double quote-enclosed, but contains embedded carriage return/linefeed pairs. I have a control file which works for most cases and looks like this:
    LOAD DATA
    INFILE './foo.new'
    APPEND
    CONTINUEIF LAST PRESERVE (<>'"')
    INTO TABLE <tablename>
    FIELDS TERMINATED BY "," ENCLOSED BY '"'
    TRAILING NULLCOLS
    Unfortunately, this fails when the very first character of the text field is a carriage return/linefeed pair, e.g.,:
    "11","22","33","\r\nThis is the fourth field","","","","",""
    In that case, what is actually the opening double-quote for the fourth field, is interpreted by the CONTINUEIF clause as the end of that line. Can anyone please point me to a solution?
    thanks.
    stan.

    Thanks for the suggestion. Unfortunately, I've already tried it, and it doesn't help. I believe the problem is that sqlldr tries to figure out where each record is delimited before it parses out the field. So, any field-level trimming depends on sqlldr first determining that the cr/lf is actually part of that record, and not an indication of the start of a new record (and it's doing the latter right now). Fwiw, Python's csv parser will handle this type of record just fine.
    regards.
    stan.

  • Populate a drop down list with data from Excel and fill in a text field, based on drop down selectio

    Hi!
    I have a problem with a PDF form: There's a drop down list that I populate with Excel data that I've put in an XML file through an XSD file -- no problem here. The drop down list has a data binding to the XML file, so that a choice in the drop down list can be associated with an object in the XML file. So, when I make a choice in the drop down list, a corresponding object value is fetched from the XML file and put in a text field on the form.
    How to do this is described by Stefan Cameron here:
    http://forms.stefcameron.com/2006/07/29/dynamic-properties/
    There's a snag, though, and to describe it more clearly:
    The XML file contains three types of objects: role, role number, and role cost center. Of these I use the first and the third, i.e. the role and the role cost center. The drop down list contains the roles, and when I select a role, the corresponding cost center is filled out in the text field. So far, so good!
    But -- if the cost center has the same value for two or more roles, all of these roles "bounce back" into the drop down list, that is, they are all selected in the drop down list. How many of these you can see depend on the height of the drop down list -- if it's low you'll only see the first one.
    If I modify Stefan Cameron's data in his example I get the same behavior, so the problem seems to have to do with how XML data are fetched.
    I'm sure there's a workaround, but I can't find it! I've spent many hours browsing the web without finding anyone with a similar problem.
    Any suggestions appreciated!

    Although your issue is far beyond mine, I was hoping you can help me out.....
    I need to create a drop down list of names which I wish to somehow link to an Excel spreadsheet.
    Please let me know the steps I need to do.  I've tried several things, but nothing seems to work and I'm not sure what I am doing wrong.
    Thank you

  • Select only first 10 chars from the field in a table while writlng a selec

    hi experts,
    In a table  one field contains a value of above 10 characters (ex 10 or 15 or 20 characters).But i want to select
    only first 10 characters from this field while writing a select statement.
    This logic should be included in select statement.
    please gime immediate solution.
    My question is understood.

    Hi,
    Try this one
    data : begin of itab occurs 0,
            maktx(10) type c,
    end of itab.
    " though the length of MAKTX is 40 you only get 10 chars
    select maktx from makt into table itab up to 10 rows.
    if sy-subrc is initial.
    endif.
    " Suppose the field name of table you want to select is MAKTX then declare
    " Your internal table in the above manner, it will automatically fit into it and will get 10 Chars only
    " Instead of burding the select query / DB interface use the above.
    Cheerz
    Ram

  • I am in Paris and have no voice or data service (only text) and I cannot contact customer service via web (live chat). I am completely cut off. What can I do?

    I am so frustrated that I am almost guaranteed to switch service as soon as I get back to the states.  I corresponded with Verizon 2 weeks before I left on the trip and they told me everything would work fine and told me the rates I would pay to have service in Europe.  Now I am here and I can't make calls, use email, or access any apps like Google maps!  I was lost for a good hour when I got here yesterday because I couldn't access any of the apps I had used to plan my travel and I didn't think to print maps before I left.  Fine, good, I'm not lost anymore, but I still have a week to go and travel to do and I would like help but I cannot reach service using the web.  I can't call from my phone.  I can't find a number to text.  I sure as hell am not going to call from the hotel as they charge something like 4 bucks a minute to call the states.  What do i do?

        Hi ach.wireless.account,
    I apologize you're having issues with your service overseas! Which device are you using? I can give you a link for contacting global support to get assistance with this concern http://vz.to/1nhqgn3. I am sure once you are able to contact them they can help with getting your service working. 
    Thank you!
    EdW_VZW
    Follow us on twitter @VZWSupport

  • PreparedStatement only returning 256 results

    Hi!
    I'm working on a project where the user can enter up to 1000 ids to fetch the corresponding objects from our Oracle database, connected using the 11.1.0.7.0 jdbc drivers. However, only 256 rows were available in the result. So I made a simple test, like so:
    public static void main(String[] args) throws Exception {         Class.forName("oracle.jdbc.OracleDriver");         Connection connection = DriverManager.getConnection("jdbc:oracle:thin:myuser/mypassword@myurl:1521:mydb");     PreparedStatement select = connection.prepareStatement("SELECT id FROM t01abc_regenh WHERE id in (?, ?,..., ?)"); // 1000 ?s         String[] idArray = new String[] {"010000010", "010000026", ..., "010000981"}; // 1000 ids         for(int i = 0; i<idArray.length; i++) {       select.setString(i+1, idArray);
    ResultSet result = select.executeQuery();
    boolean hasNext = result.next();
    for(int i = 1; hasNext; i++) {
    System.out.println(i + " : " + result.getString(1));
    hasNext = result.next();
    result.close();
    select.close();
    connection.close();
    The database logs show that the query is using the 1000 ids, but only the first 256 results were printed. So I tried again, using a non-prepared statement:
    public static void main(String[] args) throws Exception {
    Class.forName("oracle.jdbc.OracleDriver");
    Connection connection = DriverManager.getConnection("jdbc:oracle:thin:myuser/mypassword@myurl:1521:mydb");
    Statement select = connection.createStatement();
    String[] idArray = new String[] {"010000010", "010000026", ..., "010000981"}; // 1000 ids
    StringBuilder query = new StringBuilder("SELECT id FROM t01abc_regenh WHERE id in (");
    for(int i = 0; i<idArray.length; i++) {
    query.append('\'').append(idArray[i]).append("', ");
    query.delete(query.length() - 2, query.length());
    query.append(')');
    ResultSet result = select.executeQuery(query.toString());
    boolean hasNext = result.next();
    for(int i = 1; hasNext; i++) {
    System.out.println(i + " : " + result.getString(1));
    hasNext = result.next();
    result.close();
    select.close();
    connection.close();
    This time the full 1000 results where printed. Is this a general thing with prepared statements or is it an issue with the Oracle database or the jdbc drivers? Is there a way to increase the number of returned results? Please help!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    >
    Is this a general thing with prepared statements or is it an issue with the Oracle database or the jdbc drivers?
    >
    None of the above - it is an issue with your code. You are comparing apples to oranges; an invalid comparison.
    The queries are not identical so you should not expect identical results.
    You are using this data
        String[] idArray = new String[] {"010000010", "010000026", ..., "010000981"}; // 1000 idsin two different queries.
    The first test constructs a query of the form
        "SELECT id FROM t01abc_regenh WHERE id in (010000010, 010000026,..., ?)"); // 1000 ?sAnd the second constructs a query of the form
        "SELECT id FROM t01abc_regenh WHERE id in ('010000010', '010000026',..., ?)"); // 1000 ?sThat is the first query uses numeric values for the IN clause and the second query uses string values.
    If the actual data is VARCHAR2 these will not match the same values.
    A string value of '010000010' will not match a numeric value of 010000010 because when 010000010 is converted back to a string for the comparison there will be no leading zeroes so the converted value will be '10000010'
    So the first query tries to match '010000010' with '10000010' and they do not match.

  • How can I get rid of a type generated by the Data/Services return type wizard?

    Hi All,
    I have a JSON service that returns an object called "error".  The Data/Services "Configure Return Type" wizard automatically turned this into a class "Error".
    However, this caused over a hundred errors to show up inside the generated classes, "Call to a possibly undefined method Error."  That's because of lines like this:
    throw new Error(propertyName + " is not a data property of entity Agreements"); 
    It's trying to throw a regular "Error" object, but now that there's an "Error" class in the same package, that is taking precedence--and that Error object doesn't have a constructor with a single parameter.  At least, that's what I think is going on.
    I tried to fix it by deleting _ErrorEntityMetadata.as, _Super_Error.as, and Error.as from the valueObjects package.  I then opened the FML file and deleted the definition for the entity "Error" and every reference to the Error entity (class) in my FML file.
    I then changed my JSON service so that it returns an object called "serviceError" instead of just "error".
    But, whenever I re-run the "Configure Return Type" wizard, it regenerates the Error class, even though I've deleted it from everywhere I can find it.  That breaks my project completely!  How can I end this and get Flash Builder to *stop* generating this type!
    In the "Configure Return Type" wizard I very carefully inspected the type of every bit of data coming back to make sure none of them show up as type "Error."  And they don't (as expected, since I changed the object's name to serviceError--now the type of that object is ServiceError.
      -Josh

    I think you are facing this known issue https://bugs.adobe.com/jira/browse/FB-29770
    Please vote it.
    Thanks for the link--I just voted for it.
    To avoid this, in the last page of "Configure Return Type", edit return type name to something else (You can also edit subnodes's name too in the wizard).
    Actually, that's exactly what I saw doing; I apologize if that wasn't clear in my post.
    I closed and restarted Flash Builder, and once I did that Flash Builder stopped generating the Error class.  My guess is that the FML file, even though I had updated it (by deleting all references to the Error class), was cached in some fashion by Flash Builder, and restarting Flash Builder forced it to reread the FML file?
    Additional point of clarification: my understanding is that the FML file stores all the metadata about the services that Flash Builder has been able to figure out so far, and when you run the Configure Return Type wizard, it will regenerate *every* type in the FML file, even if that type is not mentioned anywhere in the particular return value that you are working with.
    Edited to provide additional thoughts on FML file.

  • How to "encapsulate" a data from a text field in a JSP form

    Hi. I'm trying to make a user's registration jsp page and I'm not sure how I could get the data from a JSP form from the user and store that into some variable that I could later pass to a query to modify the database. I've been using a JavaBean, but I get null values for all the fields of the jsp page. That's logical, since I cannot find a method that will read the user's input and store that into some variable. In my JavaBean, I have get and set methods that will return a String for each of the form fields such as first name and email. The set method will have in a String as a parameter to set that field value (whichever field it is) to the value of the input parameter, but I don't know if there is a method or a way to read and store the values entered by the user into the jsp form. This is a code snippet of the jsp form:
    <TR><TD>First Name: </TD>
    <TD><INPUT TYPE="TEXT" NAME="fname"
                   VALUE="<%= newUser.getFirstName() %>"></TD></TR>
    Here, the getFirstName() method simply returns the value of a String value related to the user's first name, which is initialized as null in the JavaBean. newUser is the name of the JavaBean that I'm using.
    Any suggestions? Thanks.

    haha...nevermind this question also guys...I found out that I could use the request.getParameter("some_String") method with my JavaBean to read and store data entered by the user in a text field.

  • Data Services communication with SAP - physical/logical server name

    Iu2019m having trouble connecting Data Services to SAP.
    Environment details:
    Data Services version 12.2.1.2 on Windows 2008 SP2
    ERP and SRM on Windows 2008 (database SQL Server 2008 SP1)
    Repository on SQL Server 2008 SP1
    All servers (SAP and Data Servers) have had logical systems defined over the physical system names and they use these logical names to communicate with each other.  The Data Services server, hence has two names (logical and physical) and two corresponding IP addresses. 
    The problem weu2019re having is that when the SAP server communicates back to the Job Server it needs to use the logical server name and corresponding IP address.  Currently it is using the physical server name and IP address, causing communication failures. 
    When I run the host_name() function within Data Services it returns the physical host name.
    Is there a way to determine how Data Services identifies itself and whether this can be manipulated?  Is it possible to configure Data Services to run in a logical environment?
    Any thoughts or commends would be appreciated. Thanks

    Looked at this from another angle.  We were using Direct Download transport method which processes in the foreground and uses the SAPGUI for communication.  It seems as though it was how SAPGUI communicates with the SAP server on Data Services behalf that was causing the problem.
    We managed to motivate to get a share setup between the SAP server and the Data Services box which allows us to use Shared Directory transport method.  This also allows for background processing - eliminating the part of the SAPGUI communication that was causing the problem.

  • How to blur a text field populated by a date picker

    Hello,
    I have a text field, it is displayed as a date picker.
    The date picker can populate the said text field as normal.
    However, I have a onBlur="javascript:func" for this text field.
    When the date picker has populated or changed the
    text field, the JavaScript function is not called.
    How can I call the JavaScript function after date picker window closes?
    Or, is it possible to modify
    wwv_flow_utilities.SHOW_AS_POPUP_CALENDAR procedure?
    I do not want to submit the page.
    My JavaScript function uses Ajax to save the text in the text field.
    Thanks in advance!
    Message was edited by:
    mzshen

    vdesign is correct. If you look at the javascript for the date picker it is specifically looking for onChange so that if one exists it will call it. I believe this is the only attribute that can be added by default to a date picker....(i found this out cause I had to build a custom date picker that let the user pick months, but had to look and function just like the delivered one)

  • LOV return value to submit multi LOV/Text field order by value!

    I have nested LOV and return value reflected to another LOV/Text field by order wise.
    My problem,
    The return value LOV or Text field should be dispay with one by one values order by (Dynamic).here i using the query in each LOV source.
      select DMS_DD_ENG_DESC dis, DMS_DD_ID ret from DMS_DEPT_DETAILS
    where DMS_DD_DT_REF_ID=:P3_DETAILS
    Workspace          :RAM_R&D
    User Name/Password :aramani/apex
    App                http://apex.oracle.com/pls/apex/f?p=36167:3I should do the dynamic action for this case?
    anyone can help me plz.
    Thanx,
    Ram

    Hi Ram,
    I changed your application and i think it is working the way you want.
    I don't know if it exactly what you need but take a look and let me know.
    Regards,
    Kees Vlek
    <tt>Company: http://www.orcado.nl
    Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
    Twitter: http://www.twitter.com/skier66</tt>
    If the question is answered please change it to answered and mark the appropriate post as correct/helpfull.

  • How do I 'commit' a value in a text field with GUI scripting?

    I have a script to change the dates of a "Roll" in iPhoto. I can insert the text into the proper field, but it doesn't 'stick'. When I click on another item, the text field returns to the old date. If I click on the text field before I run the script, then a Tab or Return from the keyboard will set the field properly.
    Do I need to programatically set the 'focus' on the field first? Without setting the focus first, a "keystroke return" is caught by the top window and either beeps or opens a photo for edit (as one might expect).
    tell text field 2
    set value to rDate -rDate is a string "4/30/06"
    keystroke return
    end tell

    Thanks for the reply. Backstory: My iPhoto library got corrupted, so I created a new one and dragged in the old Library. The Rolls all have the date the new rolls (directories) were created; all the same in this case. Sorting the rolls by date is thus nonsensical. The AppleScript for iPhoto doesn't handle what I want to accomplish, but the UI scripting might help me out.
    When the whole Library is picked, you can 'view' by "Film Rolls" and the date appears in the bar above each roll of photos. You can change the date in the "Information" area available at the lower left. (The same area you change the title of the rolls or photos, too.) I want to change the roll dates to match the photos' dates.
    So I fired up UI scripting and figured out that I can fetch the date range of the photos in a roll and then set a date for the roll. I can see the date change in the text field, but it doesn't 'stick'. Only if the field has been clicked on prior to running the script, can I "keystroke return" to 'enter' the field. Otherwise I'm looking for suggestions.
    Slightly off topic: The whole right side of the iPhoto screen is a big black hole for UI events. You can't tell anything about it with the UI Element Inspector. I can't automagically 'pick' anything in there, so I can't 'select' the rolls from a script. I'll settle for clicking on a roll and then running a script to correct its date.
    Here's the whole script, without a bit that verifies that the 'assistive devices' box has been checked in the Universal Access pref.
    tell application "iPhoto"
    activate
    end tell
    tell application "System Events"
    tell process "iPhoto"
    activate
    tell window "iPhoto - rebuilt Library"
    tell group 1
    tell splitter group 1
    tell splitter group 1
    tell static text 5 --either 'from' or 'date'
    set theLabel to value
    end tell
    if theLabel is "date" then
    tell static text 6
    set rDate to value
    end tell
    else --get date from 'to' field
    tell static text 8
    set rDate to value
    end tell
    end if
    tell text field 2 --roll's date
    set value to rDate
    keystroke return --might not work
    end tell
    end tell
    end tell
    end tell
    end tell
    end tell
    end tell

  • Is there a way to get the cursor position index of html text field

    I'm trying to work on a text pad like MC with "insert text at
    position X" and "find and replace" can anyone tell me how to find
    the cursor index of an html text field. Selection.getBeginIndex() ,
    Selection.getEndIndex(), Selection.getCaretIndex() as far as I know
    these methods only work with text and not htmltext.
    What I'm trying to do is assign different parts of the string
    to variables so that I can combine them to reconstitute my html
    string.

    enfantterrible:
    If I understand correctly, you want the corresponding
    position in the
    htmlText propery of the caret index (which as you point out
    is only the
    position in the plain text version of the textfield content).
    Below is how I would do it. Maybe there's an easier or more
    efficient
    way (using XML objects etc), but I don't know it. You could
    conduct all
    your string searches in the plain text and then convert the
    result to
    the html positions. I didn't build this to accept negative
    parameters
    for the pos parameter (e.g. from end of string backwards) but
    the
    function could be adapted to do this too if necessary. The
    test data is
    not proper html from a text field, but it doesn't really
    matter what it
    is so long as its formatted correctly. It just separates the
    tags from
    the content to enable apples with apples comparison.
    //some test data
    var testStringXML = "<format>Hel<b>lo i can't
    t<i>ell you h</i>ow hap</b>py I
    am.</format>";
    var undecoratedString = "Hello i can't tell you how happy I
    am.";
    //the conversion function
    function findDecoratedPosition(pos:Number, xmlString:String,
    test:Boolean):Number {
    //anything between '<' and '>' should be excluded from
    plain text search.
    //create an array of array elements (n=2) consisting of tag
    then plain text
    //requires correctly formatted xml/html
    var tempArr:Array = xmlString.split("<");
    for (var aa = 0; aa<tempArr.length; aa++) {
    tempArr[aa] = tempArr[aa].split(">");
    //remove the first and last elements of the new array (these
    are empty)
    tempArr.pop();
    tempArr.shift();
    //find the corresponding plaintext location and calculate
    the "decorated" position
    var retPos:Number = 0;
    var posCount:Number = 0;
    for (var aa = 0; aa<tempArr.length; aa++) {
    retPos += tempArr[aa][0].length+2+tempArr[aa][1].length;
    //+2 allows for missing < and >
    posCount += tempArr[aa][1].length;
    if (posCount>pos) {
    return (retPos+(pos-posCount));
    //out of range
    return -1;
    //test code:
    for (var aa = 0; aa<undecoratedString.length; aa++) {
    var altPos = findDecoratedPosition(aa, testStringXML);
    trace(undecoratedString.charAt(aa)+" in position "+aa+"
    plainText equates to position "+altPos+" in the decorated version
    ["+testStringXML.charAt(altPos)+"]");
    }

  • HTMLD_ITEM.DATE_POPUP  - Disabling text field AND Datepicker.

    Hi all,
    Need help with the following.
    I am using APEX 3.2.100.12 (this is in production and won't be upgraded soon).
    I have a report, that creates dynamically date_popups.
    My query goes like this:
    select
    case
    when trunc(ddc_delivery_date) <= trunc(sysdate) then HTMLDB_ITEM.HIDDEN(3,PTD_PA_MONTH_ID) || HTMLDB_ITEM.HIDDEN(4, to_char(SYSDATE, 'DD-MON-RRRR')) || HTMLDB_ITEM.DATE_POPUP(2,ptd_pa_month_id,'','dd-MON-yyyy', 10, 11, 'DISABLED')
    else HTMLDB_ITEM.HIDDEN(3,PTD_PA_MONTH_ID) || HTMLDB_ITEM.HIDDEN(4, to_char(SYSDATE, 'DD-MON-RRRR')) || HTMLDB_ITEM.DATE_POPUP(2,ptd_pa_month_id,'','dd-MON-yyyy', 10, 11, 'onBlur="valiDate(' || rownum || ');"onChange="setFocusItself(' || rownum ||');"')
    end as "Example"
    from Table;
    Let's assume all those names there work as it is.
    The first "when trunc... " should show the date_popup item, but should be shown disabled; which totally happens, but only on the text field; I also need the datepicker to be void or something, and no popup be allowed to show up, something like: "('IP_CLOSED_DATE').parentNode.nextSibling.firstChild.href="javascript:void(0)", which can be used to not allow a popup be displayed.
    The thing is, I've tried to add another parameter (as I've seen it is possible), including words like disabled, void, 0, etc... and none of them work. So I would like to know if anyone has encountered the same issue and has been able to solve it.
    What I need, is not only the text to be disabled but also the popup.
    Thanks a lot!!
    Jorgelina

    Just noticed that you are on apex 3.2 and that JS code relies on JQuery(builtin to Apex 4.0)
    So we ll try another approach and this does not use any JS
    From your report query, I can see that you column has to be read only when <u>trunc(ddc_delivery_date) &lt;= trunc(sysdate)</u>. In this case you want those row's column to be a readonly text-field. So <b>we use a different API in those cases, i.e APEX_ITEM.TEXT instead of APEX_ITEM.DATE_POPUP</b>
    select
        case
        when trunc(ddc_delivery_date) <= trunc(sysdate) then
            HTMLDB_ITEM.HIDDEN(3,PTD_PA_MONTH_ID) || HTMLDB_ITEM.HIDDEN(4, to_char(SYSDATE, 'DD-MON-RRRR')) || HTMLDB_ITEM.TEXT(2, TO_CHAR(<date column>,'dd-MON-yyyy', 10, 11 ,'read_only="read_only"')
        else
           HTMLDB_ITEM.HIDDEN(3,PTD_PA_MONTH_ID) || HTMLDB_ITEM.HIDDEN(4, to_char(SYSDATE, 'DD-MON-RRRR')) || HTMLDB_ITEM.DATE_POPUP(2,ptd_pa_month_id,'','dd-MON-yyyy', 10, 11, 'onBlur="valiDate(' || rownum || ');"onChange="setFocusItself(' || rownum ||');"')
        end as "Example"
    from <table>;
    Note: Change <date column> to the name of the date column whose value has to be shown
    For readonly date row columns, you would see a text field alone, without a date picker

Maybe you are looking for

  • Custom control in custom page layout not getting shown

    Hi, I have created a site column for Date field: <Field ID="{GUID}" Name="MyCustomPageLayoutDate" StaticName="MyCustomPageLayoutDate" Group="TestGroup" Type="DateTime" Format="DateOnly" DisplayName="Date" Required="FALSE" ><Field ID ="{guid}" Name ="

  • Uninstall itunes

    I have windows 8 and I cannot update or uninstall itunes. Any suggestions?

  • Regarding PO Module Data Fields

    Hi, I am working in Reports for Purchasing module. I have issue to find the following data fields in the Purchasing responsibility front end.Could you please help me regarding this... 1. Bill to Phone 2. Bill to Fax 3. Ship to Phone 4. Ship to Fax 5.

  • DVT X Axis Date Formatting using tabular data

    Hi, I have a curious question about the <dvt:attributeFormat>. I wanted to format my bar graph x-axis with locale sensitive date formatting. I saw this attribute <dvt:attributeFormat> which I think is the best tool for the job. <dvt:barGraph id="wsss

  • Problems downloading Photoshop elements 11 onto Mac running snowleopard

    please can anyone help me with this problem entered the redemption code on adobe website, and then received the Serial Number for photoshop elements 11 then clicked on the download file, which sent me to Arvato link for zip file downloaded the zip fi