Is it possible to fetch matrix column through formatted search in UDF?

HI,
Is it possible to fetch the value of first row of quantity column in user defined field through formatted search?
SELECT $[$38.11.number]
  does work but in user defined column of matrix only. I have requirement that when there will be only one row in matrix, the quantity should be accessible in user defined field. and for this, the above query gives internal error.
thanks and regards,
Binita

David,
I used the query sent by you and further facing following problem. may be my filtering is on wrong parameter.
SELECT $[rdr1.quantity] * $[ordr.u_qty1.number] from ordr o, rdr1 r where o.cardcode= $[ordr.cardcode] and r.itemcode = $[rdr1.itemcode]
this query gives correct result when assigning to matrix column.
when I applied the same query to user defined field, then after selecting the row as suggested by you, it does give value but, in this case, it takes it from rdr1 instead of from matrix.
for example, I have selected item A001 in matrix. if that item is already there in rdr1, then it fetches its quantity from table instead of that provided by me in matrix's quantity column
Please guide further,
thanks in advance,
Binita
Edited by: Binita  Joshi on Jun 5, 2008 2:45 PM
even
SELECT $[$38.11.number] * $[ordr.u_qty1.number] from ordr o, rdr1 r where o.cardcode= $[ordr.cardcode] and r.itemcode = $[$38.1.0]
is not working. no clues.

Similar Messages

  • Is it possible to add new columns with format "Text" once a table is linked to a form

    Is it possible to add new columns with format "Text" once a table is linked to a form in Numbers for iPhone or is it impossible and thus a serious bug?(Rating stars and numeric vales seem to work.)
    Those bugs happen both for new speadsheets as well as existing onces, like the demo. When you are in the form only the numeric keyboard shows up.
    Pat from the Apple Store Rosenstrasse/Germany approved that it looks like a Bug during the Numbers Workshop I was in: It is not possible to add new columns with format "Text". I reported the error for Version 1.4 but there is no update nor do I get statement of understanding the issue.

    Hi Knochenhort,
    I see what you are talking about now. Without knowing how the program actually works, I think this is what's going on:
    When you add a new column to an already existing table (with already existing formats), the new cells come already formatted like the previous column. So when you add a column to the end of the demo table, the cells are already formatted like stars, and when you add a column to the beginning, they're already formatted like number.
    I think this is why it's different when if you add columns to a table with blank (unformatted) columns. In that case, the new cells aren't already "tainted" with a set format, so you can change to text format without issue.
    It seems like the problem is that you can't format cells that are already formatted as "number" as "text" format (even if it doesn't look like they are, because they are blank). IMO, this is a bug! This is why you don't see this issue when adding columns to a new table, because the new cells don't already come with a format.
    To workaround, you can highlight the body cells after adding the new column, and delete the cells. This will "clear" the formatting, so you can then go in the inspector, format them as text, and the correct keyboard will pop up.
    Hope that helps!

  • Move Matrix column through UI API

    Hi,
    Does anyone know how to move a column in Matrix to left or right though UI API, not from form settings.
    Thanks,
    David

    Hi David,
    Unfortunately, I don't think there is an easy way to move a matrix column other than using form settings (ie FormPreferencesService in the DI API). If it is your own user-defined form then I guess you could update the form's XML before you load it in to the UI API but that's only going to work if the form is not already open.
    Kind Regards,
    Owen

  • Using Second Column of Formatted Search

    Hi All,
    i have a query for formatted Search, which goes like This
    "Select ItemName, ItemCode from oitm"
    When i press Tab on the field 'Product No.' in 'Production order',
    i get the CFL of ItemName and ItemCode.
    when i select one row from this, i need to capture the ItemCode
    in the field 'Product No.' (By Default it captures the first Column i.e ItemName)
    Any suggestion are most welcome
    Regards,
    Mahendra

    Mahendra,
    By default it will fetch the first column only. one workaround what you may not like to use is, to define a user defined field in production order form and give an FMS there. ther you show the itemname first as you have written, and give an Auto refresh FMS on production order field where you change it to itemcode when item name is selected.
    HTH,
    Regards,
    Binita

  • How can i get totals in columns with formated searches

    How can i do this with SDK if it isn´t posible since formated searches

    This is not possible with formated searches.
    With SDK, depends on if it is Matrix or Grid, on if it is a system form/your own form. But basically, loop throw the form or datasource, and do the sumatory.
    Regards,
    Ibai Peñ

  • Prompt User through formatted search

    I have a formatted search that prompts the user to select a Business Partner already working by placing the [%0] in the where statement of the query.  I was wondering if there is a way to have the system provide a 'text area' for the user to input a value instead of selecting it from a drop down.
    Thank you,
    Jesse Powell
    Edited by: Philip Eller on Jun 26, 2008 10:51 AM

    Dear
    Please kindly provide detailed requirements of this . As i tested in our demo system 2005A SP1 PL45 on following query
    SELECT T0.CardCode FROM OCRD T0 WHERE T0.CardCode ='[%0]'
    when press shift+F2, there will be a text field for inputing data.
    Best Regards,
    xiaodan an
    sap business one forum team

  • Display column total on the header using Formatted Search

    Hello,
    I'm trying to create a FS on a Sales Order header (UDF) that will summarize a
    column from the row level.
    For example, I'd like to display the sum of the quantity in the header.
    I've tried the following syntax: Select sum($[$-38.11.NUMBER]) but I get
    only the first line as query result and not sum of all lines.
    Is it possible to get the column total using FS? If so, what should be
    the syntax?
    Thank you in advance,
    Maya

    Columns totals are not possible to get through formatted search as the data of the first row is only referenced by the system automatically.
    If you are needing the Sum of LineTotal for a Approval procedure, then you could use the Total Before Disc col which is actually the sum (line total)
    Access by
    SELECT $[$22.0.Number]

  • Is it possible to add a column to the Item matrix in the ItemLookup form (C

    Hi,
    Is it possible to add a column to the Item matrix in the ItemLookup form (CFL or Find Lookup).
    I need to display a value in the newly added column if the itemgroup in that row matches a certain value , how can I achieve this.
    Thanks

    Hi,
    You may check this: Can we add CFL to the  system/form defined textbox?
    Please close your previous open thread.
    Thanks,
    Gordon

  • Length of Uniqueid for matrix Column

    There appears to be an inconsistency in the length of the UniqueID that can be used for a matrix column.
    For an Addon in 2005 I have UDFs whose name is 12 characters long (including the U_), when appearing in matrix on a system form the system uses the UDF name for the columnID.
    However if I try to do the same thing when adding a column to a matrix on a user form I get error -7013 'The string value entered is too long; it should be less than 10 characters  [66000-14]'.
    Mirroring the UDF name as the column Id allows me to have generic code with out the need to jump through hoops to aling columns and field names.
    Is this a known issue for which there is a fix available?

    Hi Graham,
    It's a known issue but I'm not sure if a fix will be provided (it's a 'by design' feature and not a bug). I tested this in SBO 2007A and you still cannot have a matrix column in a user-defined form with a unique id of more than 10 chars.
    Unfortunately, you'll need to code a workaround or reduce your UDF sizes to 10 characters.
    Also, if you haven't already done so, I'd recommend you create a suggestion on the development collaboration forum:
    /community [original link is broken]
    Kind Regards,
    Owen

  • Problem in matrix Column

    Hi,
    In a matrix column if all row contains data 'A' means in the header text it should display 'A'  but if in matrix column if 5 rows contains 'A' and 3 rows contains 'B' means in the header text should display 'B'. How to do this i have done but its not working correctly in all entries.
    Regards,
    madhavi

    Hi Madhavi,
    sounds like an algorithm problem in your code.
    you problem should be no big deal:
    1. you have have two counter variables
    2. go through the matrix.rowcount
    3. look in the column if there's A or B
    4. add 1 to the correct counter
    5. look which counter is higher - more A or more B
    6. set the column title.
    lg David

  • Changing Matrix column title?

    Hi all,
    Is it possible to change a matrix column title using the ColumnTitle.Caption property? I have tried using the following code but it does not work:
    'Sales order form - Add mode.
    If pVal.FormType = 139 And pVal.FormMode = 3 Then
    'After form loads
    If pVal.EventType = et_FORM_LOAD And pVal.Before_Action = False Then
    'SO form.
    Set oForm = oApp.Forms.Item(FormUID)
    Set oItem = oForm.Items.Item("38")
    Set oMatrix = oItem.Specific
    Set oColumn = oMatrix.Columns.Item("1")
    oColumn.TitleObject.Caption = "Item Code"
    End If
    End If
    Thank you.
    Andrew.

    Hi John,
    Thanks for the reply. Your questions/suggestions led me on a path to finding the problem and a solution.
    I tried the same block of code in another company db and it changed the column title fine. The reason it wouldn't work in the current company db I'm working on was because I had previously changed the column title to 'Item No.' (using ctrl & double-click). So the SDK was changing the Original Description but the new desc. of 'Item No.' remained unchanged. As soon as I deleted the new desc. the SDK worked fine.
    Thanks for your help.
    Regards,
    Andrew.

  • Change Matrix column backcolor in standard form

    Hi, all
    Is it possible to change the Matrix column backcolor in standard form?
    thanks.

    hi,
    yes it is possible.
    oMatrix.Columns.Item("1").BackColor = 16316664 'color codes
    regards,
    varma

  • Matrix column

    Hai,
    How can i freez the matrix column.
    eg.
      for example there are 20 columns in the matrix . I need to freez still 5 column. so that when the user can scroll and enter the data easily.
    regards
    Suresh S

    Hi Suresh,
    Eventhough its not possible, you can try the following idea. I haven't tried it and I don't have sample code for you, but just think about it.
    Say you have columns 1 to 10. 1 to 5 should stay visible (frozen) when the user scrolls to the right. When the user presses the tab key from one column to the next you can see which column is selected. If it is column 6 you do nothing. If you get to column 7, hide column 6. If you get to column 8, hide column 7, etc.
    You need to think about this a bit more in detail, but I hope the suggestion will put you in the right direction.
    Hope it helps,
    Adele

  • Hide Matrix column With Parameter

    Hi
    I,m trying to hide matrix columns with parameters. If i for example have one matrix column with for example tre metrix values  (Jan, Feb, and Mar). I have an expression with the values Jan, Feb, Mar with witch i would like to decide which
    columns to show in the matrix column. In cases when i have a real column i use code as below in the column. But now that this three columns basically exists in one matrix column i dont know how to solve it. Anybody that has a soluiton on this preferably
    some example code on the example.
    IIF(INSTR(JOIN(Parameters!ColumnChoser.Value,
    ","),"Jan")>0,False,True)
    Best regards Arne
    Arne Olsson

    Why not restrict data to only show the months you passed. Matrix creates columns based on data available so what you need is a filter like this in query below
    WHERE ','+ @MonthList + ',' LIKE '%,' + MonthName + ',%'
    assuming @MonthList as parameter through which you pass Jan,Feb etc and MonthName is column of the table containing corresponding month names used as matrix column group.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • I want to do editable a matrix column

    Hi all! I want to write a value in a not editable column of a matrix, so first i try to do editable the column,and then write the value,so i do this:
    Matrix.Columns.Item("34").Editable = True
    But i get this error:
    Item - the item is not a user defined item
    I'm working with the withholding tax table(column account). What can i do?

    Hi Miguel,
    There is one solution (not so nice) for your problem, we had the same problem.
    1. set the column editable through the gui en restart SBO
    In your addon
    1. at form load set the column to editable false
    2. just before the change, set the column to editable true
    3. change the column
    4. set the column to editable false.
    done
    Regards,
    Ad

Maybe you are looking for

  • Toshiba 39L4353RB 7.1.56.36.01.1 TimeShift and Rec problems.

    Hello. I have Toshiba 39L4353RB with latest aviable f/w 7.1.56.36.01.1 for this model. There are not options for TimeShift and Recording in Menu. I have selected country Germany, DVB-C with CAM-module (digital TV). I have insert USB HDD, but there wa

  • What's a good wireless router to get?

    I have Apple 20" iMac Core Duo 2GHz 250GB,1GB RAM,x1600 256mb along with the 17" Flat screen and the latest MacBook.. We have the Apple extereme, but it is not working. What other one could anyone out there recommend.Thank you in advance.

  • HT1386 how do I get shared music to sync on my ipod touch

    I have iTunes on 2 computers. They are now showing as shared but I can only sync to one computer at a time and it will wipe out the music from the other. I want the contents of both iTunes on my Ipod touch. thx

  • Category labels fail to update in column and bar charts

    I originally posted this comment in another thread (Re: Category labels fail to update). I thought I should repost it, as the issue still exists after installing SP1 Fix Pack 2 (version 5.1.2.0), and it wasn't clear from the previous thread that the

  • Get systemdate?

    I want to display the current date and time.how can I do that with oracle portal? I find and i call this with a pl/sql item : declare l_sysdate date; begin l_sysdate := wwctx_api.get_sysdate; dbms_output.put_line('The system time is ' || to_char(l_sy