Value shown in cfgridcolumn but not in cfinput

Hi all
I have two queries, the first one to select all information about companies from the database to show in my cfform and cfgrid and the second one to display a list of sectors that I use in a select. They both work fine.
company.sectorid is an integer to represent a sector name and this value is "connected" to sector.sectorid where there is a column called sector.sector that has the name of the sector. 
I can show the names of the sector in cfgridcolumn (using SECTOR).
I can also output the sectorid (integer) in a cfinput. However, I cannot seem to output the sector (name) in the cfinput. I have tried using sector instead of sectorid in the field but to no avail. Why does it show the name correctly in the cfgridcolumn but as an integer in the cfinput? Thank you
<!--- -QUERIES -->
<cfquery name="qNames" datasource="sales">
    select * from COMPANY, sector
where COMPANY.sectorid = sector.sectorid
<cfif structKeyExists(url,"sectorID")>
and sector.sectorid = #url.sectorid#
</cfif>
</cfquery>
<CFQUERY name="sector" datasource="sales">
SELECT sectorId, sector
FROM sector
ORDER BY sector
</CFQUERY>
<!--- OUTPUT SELECTED COLUMNS IN CFGRID--->
<cfform format="flash" skin="haloorange">
   <cfgrid name="UsersGrid" format="flash"
         query="qNames" width="1000" rowheaders="No"
onchange="for (var i:Number = 0; i<STATE.length; i++) {if (STATE.getItemAt([i]).data == UsersGrid.selectedItem.STATE)
STATE.selectedIndex = i} for (var i:Number = 0; i<MEETINGTIME.length; i++) {if (MEETINGTIME.getItemAt([i]).data ==
UsersGrid.selectedItem.MEETINGTIME) MEETINGTIME.selectedIndex = i}
for (var i:Number = 0; i<DEPT.length; i++) {if (DEPT.getItemAt([i]).data == UsersGrid.selectedItem.DEPT)
DEPT.selectedIndex = i}
for (var i:Number = 0; i<CITY.length; i++) {if (CITY.getItemAt([i]).data == UsersGrid.selectedItem.CITY)
CITY.selectedIndex = i}">
<cfgridcolumn name="RANKING" width="50"header="Rank">
<cfgridcolumn name="COMPANY" width="150" header="Company">
<cfgridcolumn name="DEPARTMENT" width="150" header="Department" display="true">
<cfgridcolumn name="FIRSTNAME" width="150" header="Contact Name">
<cfgridcolumn name="POS" header="Position" width="160" display="true">
<cfgridcolumn name="SECTOR" width="120" header="SECTOR" display="TRUE">
   </cfgrid>
<!--- THE CFINPUT--->
<cfformgroup type="tabnavigator" width="1000">
<cfformgroup type="page" label="Details: #dateFormat(now(), 'mmm dd, yyyy')# : #qNames.RecordCount# Companies">
    <cfformgroup type="horizontal">
<cfinput type="TEXT" name="SECTORID" label="Sector" required="yes" width="200" bind="{UsersGrid.dataProvider
[UsersGrid.selectedIndex]['SECTORID']}" onChange="UsersGrid.dataProvider.editField(UsersGrid.selectedIndex, 'SECTORID',
SECTORID.text);">
</cfformgroup>

I worked it out by making sure that all the fields in the database tables had different names, the flash can't handle the same column names in different tables. I then used cfdump to see which fields were being output and used them in my cfgrid headers. Now works fine.

Similar Messages

  • 0fi_ar_4 netduedate(netdt) value coming in RSA3 but not coming in BI PSA

    Hi all,
    i am using 0fi_ar_4,
    netduedate(netdt) value coming in RSA3 but not coming in BI PSA, in BI PSA there is 10-12 do cument there where netduedate is null while for same document we are getting the netduedate running from transaction RSA3, how?
    Thanks.

    Hi,
    I found  the problem, i have write a user exit in data sourc e in ecc, i am getting value in rsa3 but not getting in BI PSA becaue ise there is 20000 KB limits for per info package load request i.e. idoc size, as its fixed, i did change little in my user exit at ECC.
    thaks

  • Stack the values in a series but not stack by series

    Anyone have the idea on this:
    stack the values in a series but not stack by series.
    There is only 1 series in the chart and I want to stack all the values returned. No way to do this in apex?

    hi all,
    can apex support this chart? thanks.
    http://www.anychart.com/products/anychart/gallery/sample_97.html

  • CHAR's value in the query but not in the report??

    Hi all,
    I loaded master data and crm transaction data from ODS to Cube. The data is in the cube but there is no value in my report when running it. EX: there are some CHARs in my report, I checked those CHARs have value in the query but it shows 'not assign' in my report when I run it. What happen?
    Thanks.
    J.

    Please see below text and also the sent link..
    If a navigation attribute is used in an aggregate, this aggregate has to be adjusted using a change run as soon as new values are loaded for the navigation attribute (when master data for the characteristic belonging to the navigation attribute is loaded.) This change run is usually one of the processes that are critical to the system performance of a production BW system. This is why, by avoiding using navigation attributes or not using navigation attributes in aggregates, you can improve the performance of this process. On the other hand, not using navigation attributes in aggregates can lead to poor query response times. The data modeler needs to find the right balance.
    http://help.sap.com/saphelp_nw04/helpdata/en/b2/e50138fede083de10000009b38f8cf/frameset.htm
    cheers,
    Vishvesh

  • Newly added OAF region is shown in Worklist but not appearing in Email...

    Hi,
    We have a very serious issue in our applications. We have customized Requisition Approval workflow and in the Requisition approval notificaiton, added one extra OA Framework region attribute. The region fetches some value from a custom table and renders it. This region is perfectly alright when seen from the worklist. But the email that is sent for the same notification, the region is not appearing !
    We have checked a lot but unable to find what we are missing here. If it is a problem with the region, then it shouldn't appear in worklist too. The strange thing is that this was working (region was appearing in email) in one instance. When the same code were moved to another instance, it is not working (region is shown only in worklist). Please help me as this is very urgent for us.
    Thanks,
    Arun

    OK, there is other way to check.
    1) Take the notification framework region URL from the Workflow Mailer log ( log should be STATEMENT level)
    2) and copy / paste same URL in a web Browser ( you may login as SYSADMIN user)
    3) and see if newly added region comes?
    Just check if you bounced the iAS after apply the changes on that instance.

  • How do I hide a pulldown menu if one of it's values has been selected but not others?

    Through searching this forum, I've been able to figure out how to hide pull downs and fields that only have numeric info in them. I.e if the user selects. or if the pulldown value is zero. The item does not show or print on the form.  What I cannot find, is how do you accomplish this if the values in the  pulldowns are text? I.E. the pull down has three choices "choose an item", "ITEM 1", "ITEM 2". It defaults to "choose an item" and if left this way, I want it to be hidden or set to null, but if ITEM 1 or 2 are selected. Then it shows/prints ITEM 1 or ITEM 2 in the spot.
    thank you for your help on this issue.

    I figured it out
    and need to give kudos to George Johnson due to an answer he gave in 2008 pointed me to the solution.
    http://forums.adobe.com/message/1152008
    First I assigned a calculated value to each of the text items.
    Then here is my script.
    // Get field value
    var v1 = +getField("Description1").value;
    // If the value does not equal 0 then use the value
    if (v1 !== 0) {
        event.value = v1;
    } else {
    //If the value does equal 0 then blank the value
    event.value = "";
    Message was edited by: AXNUCorp due to a funky cut and paste

  • Idoc Error Message 51 is shown in sw37 but not in idoc Testing

    Hi Experts,
    I have one problem with Idoc processing, below is the scenario.
    The Idoc IDDEK12K is posting from SAP XI with NFS  file path details. The Idoc should fail if the file is not formatted properly like if it is missing the trailer record. This is happening in the IDDEK22K,
    It appears that all files are processing successfully when expected.  However, when I do a negative test (where I expect it to fail), SM37 shows that it failed yet the IDoc is still successful.  I expect to see the trigger IDoc as failed, and the WEINBQUEUE should include an entry for IDDEK12K.
    can any body tell me what could be the problem.  do i need to change the code in FM, but that FM is used by the IDDEK22K and IDOC  IDDEK22K is working fine for both + and - test.
    Any help is appreciated and rewarded.
    regards.

    HI Jegathees,
    First check in R/3 system it is delivered scucessfully or not in WE02 Tr. Code.
    If it is not reached the PI then goto tr code SM58 find is there any error information.
    And also check the SMQ1 and SMQ2 , may be it will stucked in this.
    Check the RFC destination, Port and Partner profile before sending the Idoc to the PI system.
    Regards
    Goli Sridhar

  • Can retrieve value from one table, but not the other (exception thrown)

    Hi
    I hope some friendly soul can help me out here. I have a local Access database file. I am able to get a value from all tables except for one, which throws this error: "System.NullReferenceException:
    Object reference has not been specified to an object".
    The rather simple lines of code when working is this:
    Dim email As Object
    value = MyDataSet.Tables("Table")(0)(1).ToString
    Msgbox(email)
    However, when simply changing from "Table" to "AnotherTable", the exception is thrown. I
    have seriously no idea why. I've made sure the datatypes are the same and that the values are not NULL.
    What gives?

    Hello,
    Going with your last reply, you should be accessing data via the strong typed classes that get generated.
    Example using Microsoft Northwind database accessing the customers table in a MS-Access database. Note the check for Rows, we could even go farther if we are questioning issue with the data via try-catch statements writing errors to the IDE Output window.
    I would highly recommend never referencing rows without first checking if there are rows and secondly never reference columns by ordinal index, always use the column name. One example with ordinal positioning, suppose someone did SomeDataTable.Columns("SomeColName").SetOrdinal(3)
    and you expect the ordinal position to be 1 ? things will crash-n-burn. Food for thought :-)
    Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Me.CustomersTableAdapter.Fill(Me.MainDataSet.Customers)
    End Sub
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    If MainDataSet.Customers.Rows IsNot Nothing Then
    Dim FirstCompanyName As String = MainDataSet.Customers.FirstOrDefault.CompanyName
    MessageBox.Show(FirstCompanyName)
    Else
    MessageBox.Show("No rows in customer table")
    End If
    End Sub
    End Class
    In this case we get the first record from below in Button1 Click
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • AttachMovie is shown on debugger but not on play

    I'm using the tutorial XML photo gallery with thumbnail from http://www.kirupa.com/developer/mx2004/thumbnails.htm
    I'v added code to deal when the image is not aviliable I attach a symbol with Text instead to the thumbnail and to the photo as well
    the problem is when I have an image as photo and I press a symbol thumbnail it dosent attach the symbol instead of the Image.
    it doesnt work at all.
    my solution for that was to unloadMovie and it solved partly
    thumbNail onRelease activation
      target_mc.onRelease = function() {
       if (!isdef[p] && isdef[this.pictureValue]) {
       //if the old MC is image and the wanted new MC is a symbol
        picture.unloadMovie();
       p = this.pictureValue-1;
       nextImage();
    The nextimage function does the load of the picture or attachMovie for the symbol
    function nextImage() {
    if (p<(total-1)) {
      p++;
      if (loaded == filesize) {
       picture._alpha = 0;
       if (isdef[p]) { //use defualt symbol instead of a photo
        picture.attachMovie("mcDef", "mcDef"+p, 1000);
        picture["mcDef"+p].m_text.text = reverseString(description[p]);
        picture["mcDef"+p].ref_text.text = reverseString(description[p]);
       } else {
        picture.loadMovie(image[p], 1);
       picture.pictureValue = p;
       desc_txt.text = description[p];
       picture_num();
    Nothing is show and no instance was made of the symbol and when pressing again on symbol thumbnail it then works and all is well
    BUT on debugging it does work on the first time and I dont have to press twice on the symbol!
    it probably caused that there was no load when attaching so veriables  loaded and filesize has no maning in the logice .
    doing unload is a work around the problem does any body has an idea how to deal with this ether with the unload or better off without.
    i'v attached the fla file so you can see the code
    10X

    the alpha is returen to 100% late on in a loop:
    this.onEnterFrame = function() {
    filesize = picture.getBytesTotal();
    loaded = picture.getBytesLoaded();
    preloader._visible = true;
    if (loaded != filesize) {
      preloader.preload_bar._xscale = 100*loaded/filesize;
    } else {
      preloader._visible = false;
      if (picture._alpha<100) {
       picture._alpha += 10;
    I'v printed out the alpha and on every click on thumbnail it increments by 10 untill more then 100% thats OK
    this ia the print out of list veriables:
    1. the image is selected
    Movie Clip: Target="_level0.picture"
    Variable _level0.picture.onRelease = [function 'onRelease']
    2.pressing on symbol thumbnail clears the screen after unloading the image but symbol doesn show and picture._alpha=107.999
    Movie Clip: Target="_level0.picture"
    Variable _level0.picture.onRelease = [function 'onRelease']
    3.pressing on the thumbnail of the symbol the second time and it shows
    Movie Clip: Target="_level0.picture"
    Variable _level0.picture.onRelease = [function 'onRelease']
    Variable _level0.picture.pictureValue = 2
    Movie Clip: Target="_level0.picture.mcDef2"
    Edit Text: Target="_level0.picture.mcDef2.m_text"
        variable = null,
        text = "ןיינב",
        htmlText = "ןיינב",
        html = false, textWidth = 114, textHeight = 73, maxChars = null,  etc...........
    so it looks like that it didn't load the symbol on the first click even though it goes through the code that attachMovie()????
    But if I run this in debbug mode codeline by codeline it loads the symbol and shows it on the first tril.
    here is the printout of the run test mode:
    picture.loadMovie(image[p]); <==  loading the image after clicking the image thumbnail
    picture._alpha=0
    picture._alpha=9.765625
    picture._alpha=19.53125
    picture._alpha=29.296875
    picture._alpha=39.0625
    picture._alpha=48.828125
    picture._alpha=58.59375
    picture._alpha=68.359375
    picture._alpha=78.125
    picture._alpha=87.890625
    picture._alpha=97.65625
    picture._alpha=107.421875
    picture.attachMovie('mcDef', 'mcDef'+p, this.getNextHighestDepth()); <== performing the code but no symbol shows and on list veriabls it shows there is no symbol attached!!!!!!!!!!!!!!!!!
    picture._alpha=0
    picture._alpha=9.765625
    picture._alpha=19.53125
    picture._alpha=29.296875
    picture._alpha=39.0625
    picture._alpha=48.828125
    picture._alpha=58.59375
    picture._alpha=68.359375
    picture._alpha=78.125
    picture._alpha=87.890625
    picture._alpha=97.65625
    picture._alpha=107.421875
    picture.attachMovie('mcDef', 'mcDef'+p, this.getNextHighestDepth()); <== pressing the second time the symbol is attached and shows
    picture._alpha=0
    picture._alpha=9.765625
    picture._alpha=19.53125
    picture._alpha=29.296875
    picture._alpha=39.0625
    picture._alpha=48.828125
    picture._alpha=58.59375
    picture._alpha=68.359375
    picture._alpha=78.125
    picture._alpha=87.890625
    picture._alpha=97.65625
    picture._alpha=107.421875
    on debugger mode it attache's the symbol to the movie on the first click!!! and no problem
    why isnt it doing the attachMovie after unloadMovie??????
    the unloadMove is performed right after clicking the thumbnail before sending to function that does the loadMovie or attachMovie
    I tried updateAfterEvent(); after unloadMovie() and it didnt help!!
    running on MX2004
    10X

  • Accruals adding value to project actuals but not lowering commitments

    Dear experts,  we have an issue when we post an accrual for a PO invoice (through a journal entry) it updates the actuals column of the project summary drilldown reports, but does not reduce the commitment column.   So we are overstating the total project.   Why is this happening?   
    Thanks for your help in advance!

    Please check if you using GR Valuated,
    When in the purchasing document, the indicator goods receipt non-valuated is not set, the commitments will take into account the information from the goods receipt booked against the purchasing document in order to reduce the commitments.
    When this indicator is set, then system will used the invoice information in order to reduce the commitments.
    With Regards
    Niitn P.

  • Gl balances shown in FS10n but not shown in F.01( Currency type:30)

    Hi gurus,
    When i run F.01,currency type :30(group currency),GL balances is not showing.But when we run FS10,the GL balances is showing in USD as well as INR.
    I have maintained OB22.
    Pl advise.
    Regards,
    Samar

    Hi gurus,
    Thanks for your reply.
    I am maintaining group currency 30 ( USD).I have maintained in OB22.Company code currency is 10 ( INR).
    In GL master(FS00),I have not ticked "only in local currency).I have kept it blank.So that the system can pick up INR as well as USD
    After maintaining all these,still GL balances is not showing in F.01.Is there any t code for said issue.
    Kindly advise.
    Regards,
    Samar

  • Email with attachments shown on blackberry but not on computer, while without attachment seen at both places (same sender)

    One sender sent me 3 emails, two with attachments and one without attachment. I could see all the emails on my Blackberry but I didn't see emails with attachments on my computer. thanks for the help.

    I would think this is an issue with your email provider, not the BlackBerry. What email service do you use?
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • Group email sending problem - shown as Sent but not sent

    My individual and few recipient emails work fine. Yet my group emails (50-90 recipients) emails show up in my Sent file, but the recipients do not receive them. No error messages or emails are given … the blocking is invisible. Comcast, my internet service provider, says it is a problem with the Mail program. Help.

    Hi
    I have quite a bit of experience with this, as I have been supporting the 250,000 users of our "MailShot Pro" group email app every day for several years, and I am pretty sure the problem is with Comcast.
    A number of our customers have told us that they were unable to send email to larger groups using their Comcast accounts, but as soon as they swapped to sending from a free iCloud.com or Gmail.com account, the problem disappeared. I am therefore pretty sure the problem lies with Comcast's anti-spam routines.
    One other, less-likely, possibility which I have seen myself with Yahoo, is that some mail servers may reject an entire email silently if there is one wrong email address on the same "@" domain that you are sending from.
    I hope this helps
    Peter
    Soluble Apps
    Disclosure: as the developer of MailShot Pro, I may receive a financial benefit from its sale.

  • Getting values in SQL Developer, but not in answers

    Hi,
    I joined the fact table with the other table and when i pull the columns from these tables in Answers, I am getting the result set dint result in any data. But, I am able to get the data/result in sql developer, did the same join there. Please suggest me what might be the reason. How to achieve this.This is very very urgent. Thanks for teh help!!
    Thanks
    SR

    Please take the SQL from OBIEE Manage Sessions and run on SQL Developer
    Make sure you are running on correct environment.
    Make sure you dont have filters in rpd.
    Update me
    Thanks
    NK

  • Photo library is shown in iPod but not showing when I sync with iTuens

    Hi,
    I am using iPod touch with IOS 5.1.1 and iTuens 10.5.
    I have a library in the iPod that contains photos, I am not able to see these photos when I sync my iPod to iTunes.
    Is there is a way to move all the photo libraries safly from iPod to my laptop ?
    Thanks

    For photos/videos taken by or saved to the iPod , those in the Camera Roll album:
    iOS: Importing personal photos and videos from iOS devices to your computer
    If they were synced from a computer y need a third-party program like PhoneView or TouchCopy to copy them from the iPod to a computer.

Maybe you are looking for

  • How to link child report in same reprot but in different tab

    Hi all i nXIR2 iam able to pass parameters to child report in different report how to pass parameters and open it in same report in different tab? below link iam able to open in another report ="<a href=\"<Servername>:8080/businessobjects/enterprise1

  • How to regenerate security certificates? CUCM 6.1.3

    Hi, Company has a call manager with 3 nodes on version 6.1.3: - NODO1: 10.102.224.254 - NODO2: 10.102.224.253 - NODO3: 10.102.239.20 From S.O. web can be seen that some certs are going to expire. We have received a warning via e-mail. And we have che

  • Configure Universal Adapter 2 generate New BAW Tables or use Existings OBAW

    Hi Experts, i have a doubt on if New OBAW tables have to be created as we add new subject areas from Universal Adapter Containers or can use existing OBAW tables that are generated from Other containers. For Example: Our Existing contianer is PeopleS

  • Why can't i drag footage onto the timeline?

    Why can't i drag footage onto the timeline? the timeline does not appear active.... Plz help

  • Probelem in Report Printing(urgent)

    Hello Everybody, This is Paritosh Sharma from India(Noida).I am facing a Probelem and the Probelem is when I am printing a Report output through an Espon(Dot Matrix) Printer after printing every page it skips another page. For Example : the output on