Populating the data grid

OK I think that is resolved but I cannot pull the Data.
The Grid does not populate with data......Just keeps trying to pull it.
THE CFC FUNCTION:
<cffunction name="comments" access="remote" returntype="struct">
  <cfargument name="page" required="true">
  <cfargument name="pageSize" required="true">
  <cfargument name="gridsortcolumn" required="true">
  <cfargument name="gridsortdirection" required="true">
   <cfquery name="selectAll" datasource="#dsn#" dbtype="#i#">
    SELECT autoid, CONVERT(VARCHAR(10), sDate, 101) as sDATE, DAGRSN, branch,
      DODAAC, clin, hours
    FROM reporting.DAGRSCRAPS
   </cfquery>
  <cfreturn queryconvertforgrid(selectAll,page,pagesize)/>
</cffunction>
THE DATA GRID ITSELF:
<cfform name="myform" id="myformid">
<cfgrid
name = "myGrid"
format="html"
bindOnLoad="yes"
bind="cfc:pdgps.admin.backoffice.components.Data.comments({cfgridpage },{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection})"
pageSize="10"
preservePageOnSort="true"
selectMode="single"
selectOnLoad="no"
font="Verdana"
fontsize="11"
label="True"
stripeRows="true"
stripeRowColor="##D9CCFF"
selectColor="##994FE6">
  <cfgridcolumn name="autoid" display="no" >
  <cfgridcolumn name="branch" header="SERVICE" type="string_noCase" >
  <cfgridcolumn name="DODAAC" header="DODAAC" type="string_noCase" >
  <cfgridcolumn name="DAGRSN" italic="yes" display="yes" header="DAGRSN">
  <cfgridcolumn name="sDATE" display="yes" header="Date" mask="EEE DD-MMM-YY H:NN A">
  <cfgridcolumn name="clin" width="35" display="yes" >
</cfgrid>
</cfform>

<cfargument name="gridsortdirection" required="true">
<cfset var selectAll = "">
<!--- this 'var' scopes the selectAll variable to be local to this function --->
<cfquery name="selectAll" datasource="#dsn#" dbtype="#i#">
Also, where are the 'dsn' and 'i' variables defined.  They do not appear to be part of this function.  Using a CFC function remotely has a great effect on what variables scopes may or may not be accessed.

Similar Messages

  • Populating the data

    populating the data to the data base table .... which i created using only reports ...
    can any body tell the approach ....... if possible coding also plz help me out ..
    but using only general reports ..

    Are you talking about loading data to an internal table from a database table or poplulating a database table?
    If the former, the previous response is correct.
    If you are attempting to load data into a database table, there are a number of approaches, including CATT and BDC.
    I have frequently used BDC.
    Both approaches have the data initialing in a flat file, such as a tab-delimited file output from Excel with the data to be loaded into the table.
    The program then loads the data from the PC and creates a BDC session, which simulates data input into the appropriate transaction for updating the table in question.
    You can also use a more straightforward technique if you are loading a Z table that does not require the standard edit checking and control you get with CATT or BDC.
    Please clarify your request.
    Good luck
    Brian

  • Hot to use the data grid to edit column objects

    I have a simple object type:
    CREATE OR REPLACE TYPE TIMESLICE AS OBJECT
    SINCE TIMESTAMP (6),
    UNTIL TIMESTAMP (6)
    And a simple table with one column containing objects of this type:
    CREATE TABLE TABLE1
    COLUMN1 TIMESLICE
    I can insert into the table:
    INSERT INTO SLICES VALUES (timeslice (NULL, NULL));
    But when I try to use the data grid and write there the same string "timeslice (NULL, NULL)" as value I get the following error during commit:
    One error saving changes to table "TABLE1":
    Row 1: ORA-06550: line 1, column 55:
    PL/SQL: ORA-00932: inconsistent datatypes: expected UDT got CHAR
    ORA-06550: line 1, column 7:
    PL/SQL: SQL Statement ignored
    The data grid interprets the value as characters instead of an expression.
    How do I have to enter the object in the data grid?

    Is it possible to access the cache datasource inside the script component which is available in the same data flow task??
    Thanks in advance,
    Saravanan

  • How to validate the field when i am populating the data cursor to block

    Hi,
    I am populating data cursor to multi record block.
    Block contain 5 items. I am populating data cursor to block for 4 items. User will enter one item value that is quantity field.
    If user enter negative values and decimal points in quantity filed i need to display message to user item level.
    Please do the needful how to do it.

    902434 wrote:
    Hi,
    I am populating data cursor to multi record block.
    Block contain 5 items. I am populating data cursor to block for 4 items. User will enter one item value that is quantity field.
    If user enter negative values and decimal points in quantity filed i need to display message to user item level.
    Please do the needful how to do it.If you want to validate at entry level then use When-Validate-Item trigger and check the input and show message. Like
    If :quentity <0 then
    message('do not enter negative value');
    message('do not enter negative value');
    raise form_trigger_failure;
    end if;Why u open same thread again ? not closing one.. check this one
    </a>
    How to validate the field when i am populating the data cursor to block
    Hopes this helps
    If someone's response is helpful or correct, please mark it accordingly.

  • Problem rendering a combo box in the data grid

    Hi,
    I am rendering a combo box in the data grid control using an
    item renderer. When I click on it to select a value from the drop
    down, the combo box immediately closes giving no time to even click
    on the dropdown. This doesn’t happen every time the combo is
    clicked, although it happens frequently. What I think is that the
    problem arises because the data grid tries to refresh the renderers
    and during this process, the existing combo is removed, thereby
    getting closed automatically. Please let me know of a work around.
    Thanks,
    Cheree

    hi hiwa,
    i have to add combo box in datagrid dynamically.
    it should append as and when i add the data in the above text boxes.
    thanks in advance.

  • How can change the font in the script output and the data grid ?

    How can change the font in the script output and the data grid in Sql Developer?

    You can't easily unless you have the latest version (2.1.1).
    If you do have this version then changing the font in the Tools/Preferences menu under the code editor/fonts section will also change the font of the data grid.
    For details of changing the fonts in an earlier version then see Sue's post below.
    http://sueharper.blogspot.com/2010/03/back-to-basics-changing-font-setting-in.html

  • How to determine # of recs in the data grid - with filter being used

    Say I'm looking at table or view that has 10,000 rows. I put a filter on the filter line such as state = 'WA'. Let's say the data grid (where I see the data clicking the 'data' button) now has 2,500 rows with the filter in effect.
    So, how do I tell how many rows are in the data grid now? I can see how to retrieve the total number of rows for the table or view, but how when a filter is in effect.
    Thanks.

    Okay thanks.
    Sure would have preferred to see (dare I say ... like TOAD) where you can just right click in the data grid and choose record count.
    But thanks - I'll use the COUNT method (till of course it's added 8-)
    Russ

  • Extract all the data grids in one click

    Hi All,
    I need to download all the data forms that i have in the system.
    We have a fat hierarchy and i'm looking for a short way to extract all the data grids without extracting from every folder in the hierarchy separately.
    I don't care about the type of the file/files. it can be one long file...
    Do you know what action i can perform here?
    Thanks,
    Orit

    Hi,
    What operating system are you using?  What version of Excel are you using?  It's possible you are using a version of Excel we do not support.  Also, can you send me an email with your exported Excel file, so I can try opening it myself?  My email address is [email protected]
    Thanks,
    Todd

  • Populating the data tab field for the FM IDOC_INPUT_CREDITOR

    HI
    I need to use the function module IDOC_INPUT_CREDITOR .
    When i am populating the idoc data table i need to update the field sdata  for the segment E1LFA1M.
    What is the best way to populate the field .
    Is there a function module which  will get the import structure of the table LFA1into the the sdata field.
    Thanks a lot in advance.
    Anjali

    Check for the user exit of the idoc function module. You can check for - EXIT_SAPLKD02_001 & include -  zxvsvu04.

  • Auto populating the Date/Time Field in a Column

    I'm having an issue with the a Date and Time Column type auto populating the current date and time correctly.  I've put the =Now() function in the calculated value box.  I get the correct date and I get a time but the time is wrong,  its
    on Pacific Time and my regional settings on the site are Central Time.  I can't find any way to specify use central time.  is this a bug on microsoft's end or mine?  It was working yesterday and not today.

    check what time zone is your central admin is set to 
    using 
    http://<CentralAdminUrl>/_layouts/regionalsetng.aspxand if its pointing to pst you will get pst result .you will see the options wil time zone selected and also some other like calender etc
    if you want to change reginaol time for your site so to site settings ==> under site adminstration 
    you will see regional settings where you can set the time zone it will look like this :

  • Populating the date field

    Hi All,  I am trying to populate the "datefield" (cv58) when the "validated" field (cv55) is set to a specific string from the dropdown menu. I have used the following code in the change event of (cv55).    if (form1.P1.client.variable_option_client.cv55.rawValue == "Validated")      then form1.P1.client.variable_option_client.cv58.rawValue = num2date(date(), "YYYY-MM-DD") endif  if (form1.P1.client.variable_option_client.cv55.rawValue == "Pending" OR form1.P1.client.variable_option_client.cv55.rawValue == "Not Validated"      OR form1.P1.client.variable_option_client.cv55.rawValue == "null")      then form1.P1.client.variable_option_client.cv58.rawValue = "null" endif     This does not pupulate anything into my datefield.  I need the datefield to populate with today's date when (cv55) is set to "Validated" else it should not not set the date to anything.  Please help  Joey

    Hi,
    the rawValue is only applied when you exit the drop down box.
    Use xfa.event.newText instead.
    if (xfa.event.newText eq "Validated") then
    form1.P1.client.variable_option_client.cv55 = Num2Date(date(), "YYYY-MM-DD")
    else
    form1.P1.client.variable_option_client.cv55 = null
    endif

  • Populating the data into idoc

    Hi
    Could you plz tell me the ways through which we can populate the data into idoc ?? I can think of two ways.
    1. By writing the report program and executing the same
    2. By change pointer concept.
    Are there any ways through which we can populate the data into idocs ??
    thanks
    Kumar

    Hi,
    Others are
    1. Creation through NAST message control
    2. Creation through workflow
    aRs

  • Executing the ETL for populating the data in the Warehouse schema

    i have developed an ETl and executed it to populate the data but it keep on running for the whole day and no end result. moreover how i can edit the ETL queries myself.

    This forum is for feedback about OTN content and services. Please post your question in the Oracle Warehouse Builder forum:
    Warehouse Builder

  • How to enter values like SYSDATE in the Data Grid Editor

    I would need to insert sysdate in a field via the Data editor.
    When I do this, it replaces it by to_Date('sysdate', blabla...)
    Is there a way to tell sqldeveloper sysdate is a key value (like :sysdate in forms) ?
    Regards
    Gilles

    Sorry, I did not understand.
    I just have a DATE field, which I want to update with the current date (sysdate).
    How do I do that with sql developer and the data editor ?

  • Needed Enhancement in IW31 for populating the date fields

    Hi,
    We need to populate the date fields like RELEASE DATE, TECHNICAL COMPLETION DATE via Enhancement for the Transaction IW31.
    We are using LSMW to upload the data.
    Can anyone provide more insight in this.
    Vijayanand.

    hi
    This exit is available for IW31..
    Exit Name           Description
    IWO10012            Maintenance order: Priority handling on central header
    If this is not applicable you would have to go for badi's
    To search for a badi, go to se 24 display <b>class cl_exithandler.</b>
    double click on method get_instance, get a break point on case statement.
    execute and start the required transaction in new session.
    look for variable <b>exit_name.</b> It would show the available badi's.
    Hope this helps
    if it helped, you can acknowledge the same by rewarding
    regards
    dinesh

Maybe you are looking for

  • How do I use SQL statements to perform calculations with form fields????

    Please help!!! I don't know how to use a SQL statement within my APEX form...... My form is below. The user will enter the values in the form. Click on Submit. Then we need to run a SQL select statement with those values. Our form looks like this: St

  • Xcode crashed while building the hello world app

    I installed xcode 5.0.2 on imac 2013 with osx 10.9. Created a new helloworld xcode project. While creating no issues, while building the app getting the following error. XCode quit unexpectedly. Why it happens and what is the solution. Tried all work

  • Reg:Mapping  (IDOc Segment)

    Hi Guys, In my mapping has many segmants at sender but i need to map one field from one segment to one target filed thats fine if ,but i want to map same fields from all segments to target field. please give me solution Thanks

  • Error in Group Asset Creation

    When Iam trying to create Group Asset, it's giving below mentioned warning message. Is that only one depreciation area will be assigned in one complete client? I tried to fix through this navigation but couldn't able to fix it ? Please let me know. C

  • Ipod mini keeps turning itself on???????

    My 4GB ipod mini keeps turning itself on. It does this even when it is locked. This is a real pain as it keeps running the battery completely flat. Can anyone suggest why this happens & how to stop it? Many thanks.