Plz help don't know how to create a query and link it to a UDF

hi,
i am new to business one and however hard i am trying to use a query to link it to a UDF, it is not working. i think i am doing the whole thing wrong,so ill just post one problem i have and if any one of u can explain to me in steps i may be able to learn to link other queries and UDFs.so plz help me out .
problem:
i want to display the account balance of every customer/vendor whenvever i open a marketing document. i have created a UDF for the marketing documents in the title with name and description 'account balance'.
Now how do i link the customer/vendor name field to this UDF so that the query generated will show the account balance of the corresponding customer/vendor.plz tell me in steps as to what tables to choose ,what fields to choose, what conditions and relatoins to use in a query wizard
                                                                                thank you

hi,
A/R invoice
for name UDF:
SELECT T0.CardName FROM OCRD T0 WHERE T0.CardCode = $[OINV.CardCode]
for balance UDF:
SELECT T0.Balance FROM OCRD T0 WHERE T0.CardCode = $[OINV.CardCode]
A/P invoice
for name UDF:
SELECT T0.CardName FROM OCRD T0 WHERE T0.CardCode = $[OPCH.CardCode]
for balance UDF:
SELECT T0.Balance FROM OCRD T0 WHERE T0.CardCode = $[OPCH.CardCode]
FOR OTHER FORMS ONLY CHANGE THE END OF THE QUERY    FOR Example
$[OPCH.CardCode]
OPCH  is the table name, change it to other table.
save the query and set it to customer code for refresh in A/R invoice
save the query and set it to Vendor code for refresh in A/P invoice
regards
sandip

Similar Messages

  • New member: My Settings won't stick; I don't know how to create a signature

    My Settings won't stick; I don't know how to create a signature
    How can I correct these two difficulties please?

    Sorry, not clear. I meant "My Settings" (top right hand corner of FCE Discussions window), not in FCE itself. The time zone setting is accepted but the next time I look it has reverted to USA GMT-8 hours, and some other settings are similarly affected
    and by "signature" I meant some text that always appears at the bottom of Discussions messages, saying somethink like "Mac Pro 2.0 GHz, FCE 3.5" etc. I can't see a place to specify that.
    (But now I see something has appeared!)
    Thanks.
    Message was edited by: Steve Kirk

  • Am using short keyboard.  Don't know how to create plus sign which is not on the keyboard. Advice would be much appreciated.

    Am using short keyboard.  Don't know how to create plus sign which is not on the keyboard. There is no number pad. Advice would be much appreciated.

    nicholasmitaka-shi wrote:
    This is a Japanese kana input keyboard, A1242, whioch looks quite as usual except that a few functions have no space on the board and have been ommitted. 
    Is the plus sign really not available on your keyboard at the place indicated on this graphic (to the right of the L key)? You might need to use shift or alt/option or shift+alt/option.
    http://en.wikipedia.org/wiki/File:KB_Japanese.svg

  • Gantt chart: Don't know how to use the tooltipkeys and toolkeylabel

    I have a problem. Don't know how to use the tooltipkeys and toolkeylabel. I used jquery to select the gantt bars and on mouse over i was getting the task id "tid" then passing it to adf bean with serverlistener and showing a popup that is adf component with javascript. For positioning of the popup I used a button that has width and height 0 and has position absolute and gets the coordinates of the mouse.
    "div[et]" is a jquery selector that selects all the elements that have attribute et. I noticed that all the bars have that attribute as a few other attributes as well "part"...
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
            xmlns:dvt="http://xmlns.oracle.com/dss/adf/faces">
        <af:document title="untitled1.jsf" id="d1">
            <af:resource type="javascript" source="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"/>
            <af:resource type="javascript" source="resources/js/home.js"/>
            <af:messages id="m1"/>
            <af:form id="f1">
               <af:commandButton text="commandButton 1" id="cb1" inlineStyle="visibility:hidden; width:0; height:0" />
                <af:popup id="noteWindow" contentDelivery="lazyUncached" binding="#{homeBean.popup}">
                    <af:noteWindow id="popupWindow">
                        <af:panelFormLayout id="pfl2">
                            <af:panelLabelAndMessage label="Task id" id="plam5">
                                <af:outputText value="#{homeBean.taskId1}" id="ot64"/>
                            </af:panelLabelAndMessage>
                            <af:panelLabelAndMessage label="Start Location Name" id="plam6">
                                <af:outputText value="#{homeBean.startLocation}" id="ot7"/>
                            </af:panelLabelAndMessage>
                            <af:panelLabelAndMessage label="Stop Location Name" id="plam7">
                                <af:outputText value="#{homeBean.stopLocation}" id="ot8"/>
                            </af:panelLabelAndMessage>
                            <af:panelLabelAndMessage label="tasktype" id="pla2m7">
                                <af:outputText value="#{homeBean.taskType}" id="ot9"/>
                            </af:panelLabelAndMessage>
                        </af:panelFormLayout>
                    </af:noteWindow>
                </af:popup>
                <af:serverListener type="jsServerListener" method="#{homeBean.serverEventHandler}"/>
                <dvt:schedulingGantt id="gantt1" value="#{bindings.PersonView1.schedulingGanttModel}" var="row"
                                     startTime="2011-07-04 00:00:00" endTime="2011-07-04 23:00:00" summary="gsg"
                                     showMenuBar="false" showToolbar="false" iconPlacement="left"
                                     showTasksAsDailyBar="false">
                    <f:facet name="major">
                        <dvt:timeAxis scale="days" id="ta1"/>
                    </f:facet>
                    <f:facet name="minor">
                        <dvt:timeAxis scale="hours" id="ta2"/>
                    </f:facet>
                    <f:facet name="nodeStamp">
                        <af:column sortProperty="#{bindings.PersonView1.hints.PersonId.name}" sortable="false"
                                   headerText="#{bindings.PersonView1.hints.PersonId.label}" id="c1">
                            <af:outputText value="#{row.PersonId}" id="ot1">
                                <af:convertNumber groupingUsed="false"
                                                  pattern="#{bindings.PersonView1.hints.PersonId.format}"/>
                            </af:outputText>
                        </af:column>
                    </f:facet>
                </dvt:schedulingGantt>            
            </af:form>
        </af:document>
    </f:view>javascript:
    $(document).ready(bindEvents());
    function bindEvents() {
        $("div[et]").live('mouseover', function (e) {
             $('#cb1').css("position", 'absolute');
             $('#cb1').css("top", e.pageY-4);
             $('#cb1').css("left", e.pageX);
            var popup = AdfPage.PAGE.findComponentByAbsoluteId("noteWindow");
            var element = AdfPage.PAGE.findComponent("f1");
            var taskIdToPass = null;
            if ($(this).attr("tid") !=undefined) {
                 taskIdToPass = $(this).attr('tid').toString();
            } else {
                taskIdToPass = $(this).parent().attr('tid').toString();
            var param = {            taskId : taskIdToPass        };
            AdfCustomEvent.queue(element, "jsServerListener", param, true);
            if (!popup.isPopupVisible()) {
                var hints = {};
                hints[AdfRichPopup.HINT_LAUNCH_ID] = "cb1";
                hints[AdfRichPopup.HINT_ALIGN_ID] =  "cb1";
                hints[AdfRichPopup.HINT_ALIGN] = AdfRichPopup.ALIGN_AFTER_START;
                popup.show(hints);
        }).live("mouseout", function () {
            var popup = AdfPage.PAGE.findComponentByAbsoluteId("noteWindow");
            popup.hide();
    };My bean that is session bean:
    package view;
    import oracle.adf.model.BindingContext;
    import oracle.adf.model.binding.DCDataControl;
    import oracle.adf.view.rich.component.rich.RichPopup;
    import oracle.adf.view.rich.render.ClientEvent;
    import oracle.jbo.ApplicationModule;
    import oracle.jbo.Key;
    import oracle.jbo.Row;
    import oracle.jbo.RowSetIterator;
    import oracle.jbo.ViewObject;
    public class HomeBean {
        private RichPopup popup;
        private String taskId1;
        private String startLocation;
        private String stopLocation;
        private long taskId;
        private String taskType;
        public HomeBean() {
            super();
        public void serverEventHandler(ClientEvent clientEvent) {    
            String taskIdString = clientEvent.getParameters().get("taskId").toString();
            this.taskId = Long.parseLong(taskIdString);
            DCDataControl dc1 = BindingContext.getCurrent().findDataControl("AppModuleDataControl");
            ApplicationModule am = dc1.getApplicationModule();
            ViewObject vo = am.findViewObject("PdTrfDayView1");  
            RowSetIterator rowSetIterator = vo.createRowSetIterator(null);
            Row[] rows = rowSetIterator.findByKey(new Key(new Object[] {taskId}), 1);
            Row row = rows[0];
           this.taskId1 =  row.getAttribute("PdTrfDayId").toString();
           this.startLocation = row.getAttribute("StartLocation").toString();
           this.stopLocation = row.getAttribute("StopLocation").toString();
           this.taskType = row.getAttribute ("PdTrfTypeId").toString();
            RichPopup.PopupHints ph = new RichPopup.PopupHints();
            vo.closeRowSetIterator();
        public long getTaskId() {
            return taskId;
        public void setPopup(RichPopup popup) {
            this.popup = popup;
        public RichPopup getPopup() {
            return popup;
        public String getTaskId1() {
            return taskId1;
        public String getStartLocation() {
            return startLocation;
        public String getStopLocation() {
            return stopLocation;
        public String getTaskType() {
            return taskType;
    }I am wondering If i can use setCurrentRow on the iterator that i create and use it for displaying on the popup instead of binding startLocation and stopLocation to the bean and if there is any benefit of that at all...
    Edited by: 897833 on Nov 24, 2011 11:37 AM

    Hi,
    To use tooltipkeys and tooltiplabel in gantt, you can add following code in managed bean
    public String[] getTooltipKeys()
    return new String[]{"columnA", "columnB", "StartDate", "EndDate"};
    public String[] getTooltipLabels()
    return new String[]{"A", "B", "Start Date", "End Date"};
    where , the string array in the ToolTipKeys represents the columns, of the table you have in the gantt component , and the string array in TooltipLabels displays the label you want to display for the table columns.
    In the jsff, you could call the bean methods as follows:
    tooltipKeys="#{GanttBean.tooltipKeys}"
    tooltipKeyLabels="#{GanttBean.tooltipLabels}"

  • HT4489 i have v card which contains 14 mb ,but i don't know how many contact it contains ,and i m not able to transfer to my i cloud what to do??

    i have v card which contains 14 mb ,but i don't know how many contact it contains ,and i m not able to transfer to my i cloud what to do??

    Here is a link to a previous discussion that may help: https://discussions.apple.com/thread/5344761?start=0&tstart=0

  • I made an iMovie but don't know how to create a DVD

    I made my first iMovie on my Macbook Pro which has the latest OS and iMovie software...but I don't know how to get it onto a DVD (or some other storage device). It is 3 hours long, so I started to finalize the project this morning and the countdown clock said 16 hours remaining when I left home this morning...yikes.
    Any guidance/suggestions/resources would be deeply appreciated. I bought high capacity blank DVDs that hold 240 minutes of video, but I feel like I am doing something wrong, here.
    If it helps, this is a school project that I have to mail to the instructor, so video sharing apps aren't an option.
    THANK YOU!
    Elizabeth

    To create a video DVD you need to use iDVD.
    Why is there no iDVD on my new Mac? How do I get it and how do I install it?
    https://discussions.apple.com/docs/DOC-3673
    To burn a DVD with iDVD from the latest version of iMovie, you have to export the movie using the Export button and select 480p as the size. Open iDVD and start a new project, then drag that exported movie file into the iDVD menu window, avoiding any drop zones you see.

  • Help - don't know how to change this...

    Being a novice with my BB curve I keep playing with it to learn and this morning I went into contacts and had the option of "personal or business"; I clicked on personal and now can't get to my contacts because there is nothing listed uder "personal" and I don't know how to change it back plus I must have saved the numbers to the phone because it says my sim is empty and I didn't keep records of my numbers OMG HELP PLEASE!!!!!!!!!

    Mate, just found this in another thread and it worked!!!!!
    See how you go!
    Hello,
    I managed to fix it this way:
    Settings > Mail, etc - remove your iCloud account
    Settings > iCloud - check iCloud account is removed
    Settings > iCloud - add your account using the e-mail address you want to use (I wanted @me but was getting the .mac error because I set up my account in 2007 with a @mac address, so I added with @me address)
    let it do its thing
    Settings > iCloud > Account - my Apple ID shows as @mac but when I scroll down my 'Mail' shows as @me and I am able to send e-mails again!
    I hope this helps you guys out. I think it would be great if Apple would allow people to merge their @me.com and @mac.com addresses into one of their choice to avoid confusion both for us and their servers! I also had iMessage trouble because of this.

  • Please help, I don't know how to overclock my proccessor, and ramm..

    hye..i'm new here..as u can see, i have a good rig..but the problem is, i don't know how to utilize it..i even don't know how to start overclock my pc...huhuh..somebody, can give me some suggestion...

    Quote from: HU16E on 26-May-09, 19:27:17
    Yes, Prime 95 is a system stress testing utility. Here is the link to a bunch of useful utilities. You will need to screen them for the ones that only apply to your needs & system. Forum 'Sticky' OCUBA - OC Utilities & Benchmarking Apps. https://forum-en.msi.com/index.php?topic=107133.0
    thanks bro.. :biggthumbsup:omg..after i applied it..my temp becomes 41 on idle..before this, it is 38-39...i've ran the intel burn test and it tells me that my system is running stable on 3.33GHz...  ..
    by the way, when i let it on stock (3.0GHz), my cpu-z shows my core speed 2400 GHz and only 6.0 for my multiplier, wherelse in the bios stated my core speed is 3.0ghz and multilplier is 9.0..this is acutually the stock one...why is that in the cpu-z is different from the actual...
    your 3dmark test for your first rig is 21000... ..how do you make it till 21000..i've just test it on mine and it was only 16000... ...is it only depends on our graphic card..??..i'm using only GECube HD4870 512MB..

  • How to create table control and link in screen exit

    Hi Friends,
                     I want to create table control in enhancement CONFPP07.  The values entered in table control should be stored in ztable along with some other information.
    But I want to know how to create table control in screen-exit and how and where to write code and how to link all.
                   Kindly send me step-by-step documentation or real time examble prg.
                   Kindly give ur answers for this problem only.
    Thanks in Advance,
    S.Senthil kumar

    If u have a  screen exit..then u will have a option to create a sub screen..in that sub screen u activate the pai and pbo events..it will show u where to write the code..

  • How to create citadel database and link it to an existing project library programatically?

    hi,
    does anyone knows how to create citadel database progarmatically and linking it with my project library programatically?
    samriddh sarbalhi
    [email protected]

    hi,
    i have designed an application having four security levels like administrators, engineers, operators & guests.
    now i want that whenever the guest logins in my application, windows components on the desktop will not be accessible to him means he can only view my application but he will not be able to view start menu on the task bar of the windows page or any icon on the desktop.
    please tell me how to accomplish it progarmatically using labview.
    the appropriate response will be highly appriciable.
    thanks
    samriddh sarbalhi
    [email protected]

  • How to create the Query and T Code for Special Reports

    Dear Freinds,
    Could any one advise the process to create the Query and the T code for some special combination of reports. Where can we find the documentation on this if that exists?
    Thanks for the help.
    Regards
    Moderator: Please, search SDN - you'll find the answers

    HI
    Go to Tools -->ABAP WorkBench -->Utilities --> SQVI QuickViewer ( Query Builder)
    Go to Tools -->ABAP WorkBench -->Utilities -->SAP Query -->SQ01,SQ02,SQ03
    first create Infosets in SQ02, Assign Infoset to UserGroups in SQ03 and create a Query in SQ01.
    Create a Transaction Code in SE93.
    regards
    Venkat

  • I loaded my Iphone3 from Itunes and I don't know how to delete these songs and put a new set of songs into my phone

    I loaded my Iphone 3 from Itunes and don't understand how to delete all these songs to add a new library of songs
    Can I do it from my Iphone or do I have to do it through Itunes.  HELP plz!

    You can delete songs direct from the iPhone.
    To add additional songs from your iTunes library on your computer is done with iTunes on your computer via the iTunes sync process. You can remove all the existing and transfer different songs, albums, genres, etc.

  • My menu for "file" "tools" ,etc. has disappeared and I don't know how to get it back and keep it there at the top. Also, my e-mail (gmail) has disappeared and when I try to get a new gmail account, it doesn't "take". What to do????

    I thought that my account had been hacked and that might be the reason I could not get my 2 different e-mails. Also, at the same time this happened, I could not get into Internet Explorer. I could still get into and use Open Office during the above problems

    Thank you for the info re. the main menu. Your answer I used worked; however, the menu bar all the way across is solid black. The only way I can find out the names on the menu is to point the cursor from left to right over the black bar to find "file" "edit" tools", etc. What do I need to do to get these menu titles to be seen?
    As regarding the GMail --the menu bar used to have an envelope symbol which was white and outlined in red. That disappeared. I googled "mail.google.com" to try to get back my email. This didn't work. I then tried to get a different email address and password--after 8-19 attempts, this never worked. My other email (sbcglobal.net) has never returned. So I don't know where that went or how to get it back

  • Don't know how to sync my iPod and my sisters iPhone to the same computer.

    We use separate iTunes accounts. I reformatted my computer and need to sync both. My iPod says it will delete all my apps and replace it with hers if I do. Anybody know how to do this?

    Here's some advice:  How to use multiple iPods, iPads, or iPhones with one computer, http://support.apple.com/kb/HT1495

  • Hi, I have a subscribe button on one of me iWeb pages which is linked to my iPhoto. I don't know how I put it on and I can't find out how to delete it. Help please.....

    Hi, how can I delete a Subscribe button from one of my iWeb pages. I don't remember adding it but it is linked to all of my iphotos and I can't find out how to delete it. Help please...

    I have now sorted my problem thank you

Maybe you are looking for

  • Can't install Oracle 8.1.7 Personal Edition on Windows ME

    I am trying to install "Oracle 8.1.7 Personal Edition for Windows 98" on Windows ME. I can't install it. During the install on the Oracle Universal Intaller, on the part where it asks for the Source and Destination, after I click "Next" to install, i

  • Dynamic graphic in smartform with exception handle.

    Hi All, I have already created a graphic node in the PO Smartform which will display the buyer signature, i have uploaded some signatures graphics to the server and used the &PO-CREATED_BY& parameter in the general attributes of the node. The signatu

  • ORACLE in XML component

    Any suggestions please. I have just discovered the XML component and have some work which I want to do with XML. Is it possible to get the style sheet to work on the result of the <ORACLE></ORACLE> action? Can it do anything with this sort of instruc

  • Raw Updater, Olympus OMD EM1

    Hi, Olympus released a new camera body this week for shipping in October, the OMD EM1. I'm on pre-order, but am wondering if anyone knows when it might be usable on Adobe Photoshop for RAW file processing, or how often the software is updated from Ad

  • Does the new Photoshop Elements 13 have the freeze mask tool when using liquify

    Im wanting to know if the new photoshop elements 13 has the freeze mask .. thats used in liquify ?  I know the older versions do not, and also aware that PS does have it- was hoping they included it in the new elements 13  ??