Calling UsereDefined Field in Main Form

Hi ,
         I have a user defined field which held color property of an item in Item Master Form.I want to call this property (color property) in sales order form with item's other attributes(like height ,width etc ) in row.Can it be possible ?
Regards

Sandeep,
It is definetely possible.  You will need to have a UDF on the Marketing document rows.  On this UDF you will set a formatted search
If your Item Master UDF is called U_Color the formatted search on the Sales Order row would be
SELECT T0.U_Color FROM [dbo\].[OITM\] T0 WHERE T0.ItemCode = $\[$38.1.0]
Set it to Auto Refresh on field ItemCode

Similar Messages

  • Calling multiple forms from main form

    Hi,
    I have a two-part question regarding calling forms from a main form.
    I have created a push button (on my main form) with the intention of calling one of two different forms by clicking it. Both forms will be used to search either a person's name (Individual - Form_1) or company name (Organization - Form_2). Once I click the button, I would like to have the option to select one of the forms in an option window (with the titles of the two forms in the option window). Don't know if there's an object for this option window (i.e. another canvas, form, etc). I'm not sure what would be the best approach to do so and how to do it.
    In addition, once I select the appropriate form, if I query on a person, I would like to select that person's record (i.e. double-clicking inside text field) and then have that person's id populated back to my main form.
    I don't know what triggers and/or code I could use to perform these two tasks. Does anyone have any ideas? Any suggestions would be greatly appreciated.
    Thank you

    I'm not familiar with tab canvas and setting up new pages. Can you give me an example?
    What I tried was setting up two different blocks, one each on a seperate canvas other than the main block's canvas. I called on of them through the button. This seems to work. However, since I'm storing every block on one form and the new blocks are stored on a seperate canvas, the height of the 2 new canvases are shorter due to less infomation to display (as that on the main block). If I shrink the size on the canvas (on the new blocks), it shrinks the display of the main block too at runtime. How could I bypass this?
    A few more questions:
    I would like to make the blocks invisible until I click the button. I have set the visible property of the canvas to 'No' and when I tab through the form at runtime, those two new blocks are visible. How can I correct this to only display the 2 new search blocks if I click the button only?
    Also, on my 2 new search blocks, if I select a value through a double-click, enter, etc, how could I pass that record's value(s) back to the main block (i.e. student_id)?
    Thanks for your help. Any suggestions would be greatly appreciated.
    Eric

  • Calling a form from the main form

    Hello,
    As you can see here , i want to open a form, when i click on a subitem of ELEVI menu. so i did that, but that form is shown in the back of the main form.. i wanna that form being shown as a child form of the main form, or something like that..
    also, i cannot close the second form, why?
    the code for opening that form when clicking a submenu item is:
    begin
         call_form('elevi', no_hide, no_replace, query_only);
    end;Greets,

    well, the menu for the called form does not exist, so i don't have any menu on this second form, just buttons. the code for calling the form when clicking the submenu item, is:
    begin
         call_form('elevi',no_hide, no_replace, query_only);
    end;but i still can open multiple times.. why? can u be please more explicitly on how to do this?
    edit:
    it worked like this: (didn't know if it's a good solution, but it works)
    begin
         if id_null(find_form('elevi')) then
         call_form('elevi',no_hide, no_replace, query_only);
         else go_form('elevi');
         end if;
         end;Thanks for replies :)
    Edited by: Roger22 on 15.03.2009 10:41

  • Access 2013: Sum fields on a form suddenly showing up blank

    I have a simple Access database (originally built in 2010, now running 2013). Sometime in the last week or so all of the SUM fields in the database started showing up BLANK (one minute everything was working fine, the next it wasn't, not sure what happened
    in between). Even when I create a new, basic form, I can't seem to get my SUM fields working.
    For example, I have a table where I document number of miles traveled for work purposes, the fields include: TravelDate, ProjectID, Mileage, and Description. Mileage is a Number field, Long Integer. If I create a continuous form, connect it to the table
    (same thing happens if I connect to a query), add a field in the Detail section with
    Mileage as control source and txtMileage as name and a field in the FORM FOOTER that is: =Sum([txtMileage])...the SUM field is empty in
    Form View. And, there are no NULL values in the data set. This is happening across all of my forms and subforms, all SUM fields are now displaying as blank.
    Is it possible that I changed a global Access setting to cause this? A form setting? Any other ideas?
    Thanks!
    Laura

    I had the same sudden issue. But I was able to determine that it involved only one workstation. All the others were fine, as well as a test run on another Win 8 station outside the environment. From there I was able to determine that  a third party
    app had been installed near the time of the problem showing up. I uninstalled it and it immediately was resolved. The app was a C# based tool thought the authors have yet to identify why this caused a problem. My suspicion is that they wrote a 32 bit version
    and this was installed on a 64 bit station, and there is some issue with mso.dll, where I believe the function calls exist for sum. I am testing to see if there are similar function errors in Excel.
    What is noticeable was that Access did not throw a an Error# nor a #name. Just nothing appeared, and when you click on a row, the sum would appear, though it was incorrect.
    In Access 2010 I remember there were some footer field issues in continuous which eventually were patched.
    It was an opportunity to remind my client - do not install anything from any one on the live system without prior testing.

  • Enable/disable fields in Workspace form

    Okay here is my scenario. I need to disable some fields on a form depending on which user logs onto workspace to open the same form.
    1. User1 logs onto workspace and opens leave request form, fields at the top of the form are enabled for the user to fill out, bottom fields which are for leave request administrator to fill out are disabled but visible.
    2. User1 fills out top portion of leave request form and completes form. Workflow sends form to leave request administrators "To do" list in Workspace.
    3. Administrator opens up submitted form in Workspace and sees User1's filled out data on the form and the bottom fields are now enabled for administrator to approve or dissaprove. Bottom fields only include two check boxes, two text fields and one date field.
    Now how is this done? I am sure their maybe scripting involved? if so what is it and at what events in the form? Is this whole process done in the form or through Admin UI or Workebench as well? Please help!!!!!!!!!

    Hi Rahat,
    You can use the same form and enable/disable some fields according to the user's role with only little scripting. Review the steps the below:
    1-First place a hidden field ("user_role") in your form
    2-Insert a script object into your form onder "Variables" in object hierarchy and write a script for enabling/disabling the fields (regarding the value of "user_role")
    3-On the initialize and change events of the "user_role" call your script object
    4-On your process design, put a SetValue service before User tasks. In the asssignment you should set the desired user_role to the form, so that the script is triggered in your form and the fields are enabled/desiabled
    Fro further needs on your form or process design you can contact us from: http://www.kgc.com.tr/company_Contact.html
    Oguz
    http://www.kgc.com.tr

  • Change the value of a field in a form when the form is displayed

    Hello
    I have a report which has a link to a form for updating the records. I have used a link to the form from report which displays the the record to be updated i.e it gets default values from the report. I need to change one of these values at the time of displaying the form. The set_value in the 'before displaying the page' section doesn't change the vaue displayed in the form. I tried in other 'Advanced pl/sql' sections provided but didn't succeed.
    Thank you
    Jayasree

    hi,
    let's call the new value u want to set "NewValue"
    insert this code in the before displayin' the page
    htp.p('<script language="Javascript1.1">
    function defaultValue(fieldname)
    var thefield;
    for( var v=0; v < document.forms[0].elements.length; v++)
    // get the right field
    if (document.forms[0].elements[v].name.indexOf(fieldname) >= 0 )
    thefield = document.forms[0].elements[v];
                        thefield.value='''||NewValue||''';
    break;
    </script>');
    in the after displaying the page section call the function above with the appropriate field:
    htp.p('<script language=javascript1.1>
    defaultValue(''Field_Name'');
    </script>');
    where Field_name is the name of the field u want to change the value!
    Mohamed

  • Hiding fields in a form

    hiding fields in a Form is called what? How do I go about hiding fields in a form than having a button the user can click on to make the fields visible to fill out?  Thanks  Nick

    The "presence" property controls the visibility of form elements. 
    This eseminar explains the details:
    http://adobechats.adobe.acrobat.com/p87746471/
    Thom Parker
    The source for PDF Scripting Info
    pdfscripting.com
    The Acrobat JavaScript Reference, Use it Early and Often
    http://www.adobe.com/devnet/acrobat/javascript.html
    Then most important JavaScript Development tool in Acrobat
    The Console Window (Video tutorial)
    The Console Window(article)

  • How can we pass a formula field of Main report to SubRepor's Parameter. in CryastlReport 11

    Post Author: Nikhil
    CA Forum: General
    Hi
    Crystal Report version : 11.0.0.1282 Standard
    There is MainReport1. Other is Subreport1
    Scenario : 
    MainReport1 having paramater PdateMain1 as dateTime.
    SubReport1 having parameter dateSub1 ,dateSub2.
    datesub1 is used for One datasource1 (DataSource- XML -from webApplication)  , dateSub2 is used for datasource2 (DataSource-SQl Procedure ) ( This is requirement as i need to used two datasource )
    Value of datesub1 and datesub1 is same (it is created automatical as it is part of SQLProcedure and XML Query ) but get prompted twice for the same valuewhich  is not desirable. so for that i have created main report and calling this subreport in main report.
    Now i want's to pass PdataMain1 to Parameter datesub1  and datesub2. I am able to pass  PdataMain1 to datesub1.  through Change Sub report link ( Option on right click of report).and it is working fine,
    Problem : 
    But Subreport link Menu does not allow to bind PdateMain1 to datesub2 as it is allready bind with datasub2.
    to overcome this i created one Formula field in main report as fMaindate1 which copy date from Parameter PdateMain1.and bind ( link) the  fMaindate1 to datesub2.  when i link this , subreport does not display any thing at all. It it a limitation of crystal report or i am missing some thing , Is it like that we can pass formula of ,main report to subreport Paramater in Crystal 11 Standard , if we can anyone please Provide help on this.
    This can be easily achieve through application programming but my need to get this done in Report itself.Thanks
    Nikhil Patel

    Post Author: Jagan
    CA Forum: Crystal Reports
    Shared variables. Looked in the help at variables - shared

  • How to call text editors in smart forms?

    In my module pool program,I included text editors for three fields.I want that fields in smart forms too.I need to know how these text editors are called in smart forms?

    Hi achu,
             Any text that gets saved has a corresponding entry in table STXH table. It usually has the following parameters : TDOBJECT,TDNAME,TDID and TDSPRAS.
    What you have to do is create a new text element and under general attributes ---> Type  - give Include Text.
    And in the include text you give the above four parameters which correspond to the text you want to display.
    P.S. Do not forget to check the 'No error if no text exists' checkbox.
    Hope this helps.
    Regards,
    Arun

  • Hidden fields in a form Dreamweaver 8

    I have a problem I can't resolve. I have with a bunch of
    hidden fields in a form. The problem I have is that some of the
    anchor points are not showing in design view for all the fields,
    just a couple show up. I have View Invisible elements in Visual
    aids turned on.
    Fields 1,2,3,9,10,11,15 don't show
    Fields 4,5,6,7,8,12,13,14 show
    Here's the code, can someone tell me what I did wrong?
    Any help will be appreciated

    Hi Max,
    This is possible in portal forms.
    The code to get the value of a field is some thing like this.
    You need to generate this javascript function using pl/sql in the Additional pl/sql Section - ... before displaying the page or ... after displaying the page.
    htp.p('
    <script>
    function myFunc(ele)
    var l_form = ele.form;
    var win;
    var val;
    var l_url = "<url>?";
    for (var i = 0; i < l_form.length ; i++){  // This is the way you traverse along all the form elements.
    if (l_form.elements.name == "<field to be refered>"){   //something like this for the field you wish to refer ==> QUESTION_RESULT.MASTER_BLOCK.QID.01
    val = l_form.elements[i].value;
    l_url = l_url+val;
    win=window.open(l_url);
    </script>
    Then call any fiels you wish to for the purpose of set or get of values.It can be even a hidden field.
    Hope this helps,contact for further clarifications.
    rahul

  • URGENT!!! calling crystal reports from oracle forms 10g

    Is it possible to call crystal reports from oracle forms 10g?
    Can someone help to answer how, if there is a solusion, to call crystal reports from oracle forms 10g.
    Please provide codes with details showing step by step.
    Thanks

    hi
    try something like this.
    DECLARE
    charWinHandle VARCHAR2(50);
    numWinHandle NUMBER;
    BEGIN Set_Application_Property(Cursor_Style,'BUSY');
    charWinHandle := Get_Item_Property('Control.Rep',Window_Handle);
    numWinHandle := To_Number(charWinHandle);
    :Item('Control.CrystalReport1').OCX.Crystal.Crysta lReport.WindowParentHandle
    := numWinHandle;
    :Item('Control.CrystalReport1').OCX.Crystal.Crysta lReport.WindowState := 2;
    :Item('CONTROL.CRYSTALREPORT1').OCX.Crystal.Crysta lReport.Connect
    := 'DSN=;UID=' || Get_Application_Property(UserName) ||
    ';pwd=' || Get_Application_Property(password) || ';dsq=;';
    Crystal_CrystalCtrl.ReportFileName( :Item('Control.CrystalReport1').interface,
    'C:\Sample_Rep.Rpt' );
    Set_Window_Property( Forms_Mdi_Window, Window_State,Maximize );
    Set_Window_Property( 'MAIN', Window_State, Maximize );
    :reptitle := 'Report Preview Window';
    numWinHandle := Crystal_CrystalCtrl.PrintReport( :Item('Control.CrystalReport1').interface );
    Set_Application_Property(Cursor_Style,'DEFAULT');
    END;NOTE: Change the report name and path according to your required file name and path in
    the "Crystal_CrystalCtrl.ReportFileName" method call. Also, the connection string shown
    assumes that you will use the current USER and PASSWORD for the Form.
    - To make the above Form generic so that you can run any Crystal report from it, then create
    a parameter for the report name and pass it to the Form using CALL_FORM from any other Form.
    Then just replace the file name with the passed parameter.
    -. Run the Form
    If its correct/helpful please mark it thanks.
    sarah
    Edited by: S@R@h on Nov 27, 2009 6:33 AM

  • How to hide fields in UIX form

    Hi
    I need to update the table with last_updated_by and last_updated_date every time if any change to the record. But I do not want to show these 2 fields on the screen.
    Could you help me how to hide fields in UIX form/any procedure to insert the data to database with out placing them in the screen .
    Thanks in advance.
    NRK

    Now that you mention it ... the rendered flag will stop the field from being rendered. So it's not even in the page. Stupid me.
    Have a look at formValue. These are rendered, but invisible fields in a form. That should do it (hopefully).
    In prepareForDML() you could simply call the setter of your date attribute that stores the date of the last update. There you pass the current date, or you could fetch the sysdate from the database and pass that. If you go that way, then the EntityImpl could make these adjustments automatically when inserting or updating and you wouldn't even need these fields/bindings in your UIX page.
    Just check what the operation is, and if it's an update or insert then call the setters of the attributes you want to update. Then call super.prepareForDML(). Something like that.
    It all would happen in the middle-tier, client not involved.
    So formValue should work, and the prepareForDML() stuff should also work. Don't know which way you want to go.
    Sascha

  • Error when calling a method inside a form routine...

    Hello experts,
    I am trying to call a method inside a form but it is giving me an error. The error is:
    Access not possible using 'NULL' object reference.
    Anyway, below is my code guys:
    START-OF-SELECTION.
      DATA: main          TYPE REF TO lcl_main,
            old_and_new   TYPE REF TO lcl_old_and_new,
            check_changes TYPE REF TO lcl_check_changes,
            messages      TYPE REF TO lcl_messages.
      CREATE OBJECT: main, old_and_new, check_changes, messages.
          FORM get_orig_contents_of_zts0001                             *
    FORM get_orig_contents_of_zts0001.
      CALL METHOD main->export_old_recs.
    ENDFORM.
    Help would be greatly appreciated. Thanks a lot and take care!

    Before the "START-OF-SELECTION " just add this sentense :
    <b>class lcl_main definition deferred.</b>
    CLASS Definition.
    ENDCLASS.
    CLASS Implementation.
    ENDCLASS.
    START-OF-SELECTION.
    *Do your coding here
    <b>in this way we are deferring the class definition for later</b>

  • Entering data as a List of value associated to a field in the form that I created.

    There are 300 values that I need to upload to this drop down field  called  OFFICE LOCATION on my form.
    Is there any easier way of doing it other than manually uploading them?
    Also I have another field called REGION. Can I build a relation between the two field?

    Hi;
    There is no method to import the data into the field.
    We do have a "Feature Request" form where you can vote on popular existing ideas or add a new one of your own:
    https://adobeformscentral.com/?f=XnF-KJVCovcEVQz9tZHYPQ
    As to building a relationship, it depends on what you need to do.  FormsCentral has "Show/Hide" logic where you can show or hide items based on the selection/s of other field/s.  There are both "Page Skip logic" and "Show/Hide" logic, this tutorial shows how to use the Skip logic and doesn't really cover show/hide logic but you should get the idea: https://www.acrobat.com/formscentral/en/library/skip.html
    Thanks,
    Josh

  • InDesign equivalent of LiveCycle's "Image Field" in PDF form creation?

    LiveCycle has a PDF form field called "Image Field". We add this field to the PDF files we create so that our end users can select and import a JPEG image into their PDF document using Adobe Reader.
    Now we would like to use InDesign to produce the same PDF form files as an alternative to using LiveCycle. Does InDesign have a PDF form field like LiveCycle's "Image Field"? We haven't found it yet.
    In other words, does someone know in InDesign how to create a field in PDF forms which has the same functionality as LiveCycle's "Image Field"? LiveCycle's field works in enabled Adobe Reader files, and permits JPEG format, among others.
    Thank you,
    Kevin
    P.S. We discovered a way to create PDF forms in Adobe Acrobat Pro XI with similar functionality by using JavaScript, but the Acrobat Pro created documents only permit Adobe Reader to import PDF files, not JPEG or other image formats. So Adobe Acrobat Pro XI was not a viable alternative to LiveCycle for creating our PDF files. We'd like to know if we need to rule out InDesign, too.

    It's worth separating out the different responsibilities and products.
    Whether a functionality exists in Reader depends on the Acrobat team. Reader, being free, is limited by design, the aim of the design being to sell copies of Acrobat. Obviously, Reader can't make PDFs or do preflighting. Less obviously, there are a bunch of JavaScript functions that don't work. Sometimes, with Reader enabling, more functions become available. (There are different kinds of Reader enabling, some of which need very expensive extra products).
    Whether a form capability exists at all is largely down to the PDF specification (now an ISO standard) or the XFA specification. Adobe can choose to go beyond the specification but largely choose not to.
    So, the InDesign team can make form fields, not because the Acrobat team approves, but because the way this is done is written down in the PDF Specification. InDesign _could_ choose to make XFA forms, but thank goodness that will never happen.
    So, if you want InDesign forms to do something you first have to ask: can Acrobat forms to this. NOT XFA (LIveCycle forms) which are done by a different team to different rules. So far as I know Acrobat forms cannot do the sort of thing you want; that is, placing arbitrary graphics, but in certain circumstances they can place PDF files.
    Why make the distinction?
    - If Acrobat can make forms that do this, then so can InDesign: it's worth asking the InDesign people to do it.
    - If Adobe limit Adobe Reader, there is no use asking the InDesign team to solve this.
    - If Acrobat can't make forms that do this, then nor can InDesign.

Maybe you are looking for