Re: Custom Value Type

I have sort of answered my own question. I found, under the heading:
"Storing Second Class Objects via Stringification", that you can use
externalizer and factory extensions. However, what if I want to externalize
to, say, a java.sql.Date (mysql's date column). For example, suppose I have
my own Date class? How would I handle that?
Dave Ford
Smart Soft - The Developer Training Company
http://www.smart-soft.com
"Dave Ford" <[email protected]> wrote in message news:...
Is there a standard (or non-standard) way to define a custom value type?For
example, a class called SocialSecuriyNumber, which is basically just a
string.
Dave Ford
Smart Soft - The Developer Training Company
http://www.smart-soft.com

Dave,
You've got a couple options for storing custom SCOs (second-class
objects). The stringification route is useful when you can encode the
custom field type as a string -- java.net.URL, for example.
For storing data in non-String fields, you'll want to create a custom
field mapping. See the timestampField sample in the samples/ directory.
-Patrick
On Sun, 22 Jun 2003 14:30:07 -0600, Dave Ford wrote:
I have sort of answered my own question. I found, under the heading:
"Storing Second Class Objects via Stringification", that you can use
externalizer and factory extensions. However, what if I want to externalize
to, say, a java.sql.Date (mysql's date column). For example, suppose I have
my own Date class? How would I handle that?
Dave Ford
Smart Soft - The Developer Training Company
http://www.smart-soft.com
"Dave Ford" <[email protected]> wrote in message news:...
Is there a standard (or non-standard) way to define a custom value type?For
example, a class called SocialSecuriyNumber, which is basically just a
string.
Dave Ford
Smart Soft - The Developer Training Company
http://www.smart-soft.com
Patrick Linskey
SolarMetric Inc.

Similar Messages

  • Custom Value Type

    Is there a standard (or non-standard) way to define a custom value type? For
    example, a class called SocialSecuriyNumber, which is basically just a
    string.
    Dave Ford
    Smart Soft - The Developer Training Company
    http://www.smart-soft.com

    See stringification factory
    http://solarmetric.com/Software/Documentation/2.5.0/docs/ref_guide_stringification.html
    This will allow you to create an instance from string and to string. Our
    2.5 release also contains some examples of these if I recall correctly.
    On Sun, 22 Jun 2003 14:01:23 -0600, Dave Ford wrote:
    Is there a standard (or non-standard) way to define a custom value type?
    For example, a class called SocialSecuriyNumber, which is basically just a
    string.
    Dave Ford
    Smart Soft - The Developer Training Company http://www.smart-soft.com
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

  • GM Resource Related Billing on value type 57

    Hi Folks,
    I'm relatively new to SAP and my users have asked for a modification to the billing process for NIH and NSF grants(letter of credit).  Right now they are drawing down based on expenditures, but would like to change so it's based on cash disbursement. 
    I was thinking that we could setup a billing rule to look at Value Type 57, 95 and a couple of other custom value types to accomplish this.  Every time I test by processing cash payment cycle, and running gm_rrb_ind it gives the error ''No expenditure items found'.  I've tried a couple of changes (changed value type 57 to real posting on the grant) to see if they would help, but doesn't seem to make a difference. 
    Any tips you could provide would be much appreciated.
    Brian

    Check these threads whether it helps you
    [No expenditure item found|No expenditure item found;
    [Re: No expenditure items found in DP90|No expenditure items found in DP90;
    thanks
    G. Lakshmipathi

  • JBO-27021: Failed to load custom data type value at index 1

    I have an adf table and an adf form in a jspx page. Well, the function of it is pretty basic CRUD. During our testings, we seem to have no problem at all but after deploying it to our remote server, we've been getting this error every time we delete the 'first' record in the table. We tried deleting other records and it worked perfectly fine. This is the first time we've encountered an error like this and we don't really know how to debug this, since it's working fine locally. Any help would be appreciated. Thanks!
    here's the pop-up error after trying to delete the first record
    JBO-27021: Failed to load custom data type value at index 1 with java object of type oracle.jbo.domain.Number due to java.sql.SQLException.
    I'm using jdev 11g and the latest webLogic server

    I have a similar problem,
    I have a VO with a query of the form: "SELECT d.campoUno, d.campoDos, sum(d.campoTres) as campoTres FROM TablaUno d
    WHERE <conditions>
    GROUP BY d.campoUno, d.campoDos",
    to modify the query for "SELECT d.campoUno, d.campoDos, *d.campoCuatro*, sum(d.campoTres) as campoTres FROM TablaUno d
    WHERE <conditions>
    GROUP BY d.campoUno, d.campoDos, *d.campoCuatro*"
    throws an exception: "javax.faces.el.EvaluationException: oracle.jbo.AttributeLoadException: JBO-27021: Failed to load custom data type value at index 16..............Caused by: java.sql.SQLException: Invalid column index
    The attribute was added well in xml definitions.
    I use JDeveloper 11.1.1.4.0
    any suggestions?

  • How to Create Custom 0VTYPE (Value Type for Reporting)

    For the project I'm now on. There is a need to "create" or "customize" the Value Type for Reporting. I now there are in a Field Called WRTTP in R/3 (Controlling). Is there a way to create or maintain those "values" for the Field WRTTP so it can be brought to BW as a 0VTYPE Charaterictic Master Data.
    Remember that Master Data should be consistent within the Business Language and the Systems that support it.
    Message was edited by: Jesus Cova Graffe

    Kamal, that's an option, but then it wouldn't be consistent to what R/3 has as Master Data. So we're looking to "customize" the WRTTP values in order to take them from R/3 to BW.
    Message was edited by: Jesus Cova Graffe
    Message was edited by: Jesus Cova Graffe

  • Custom Page Type

    Is there a way of hiding the Category and Keyword base attributes on a custom page as there is when creating a Custom Item Type?
    Is it possible to create a page template from a custom page? I just get "Error while copying page. (WWC-44262)
    (WWC-00000)" when trying this on Portal 9.0.2.3.
    I can create custom pages using wwsbr_api.add_folder but I don't think there is a way to associate a UITemplate with the resultant pages by amending one of the parameters. Can I use the information held in WWTMP_ALL_TEMPLATES to update whatever table associates the UItemplate with the folders/pages - if so which table is it? (I have now attached a template itself linked to a UITemplate to the page group but when you attach a template you lose the right to amend the page areas).

    Kendra,
    Sorry for the late reply but the forums were down yesterday.
    It is not a good practice to update the Portal tables directly. In this case, if the custom page type is identical to a standard page then the manual update should work. That means the custom page type should have no custom attributes or procedures. The custom attributes and procedures can be added to the page type later.
    There are other ways to solve this problem. You can use page parameters to accomplish the same thing - just define the page parameter, set a default value, and make the parameter non-customizable. If you have a group of pages that have the same attributes, you can define the parameters in the page template and all the pages will inherit the values. Using page parameters is no more work than updating attributes in a custom page type, and it is easier for portlets to get access to the parameter values than to look up page attributes.
    You can also use the function WWPRO_API_PARAMETERS.GET_VALUE('_pageid',p_reference_path) in a PL/SQL portlet to get the value of the portal pageid. You can then query a custom table that cross-references the page id's with the display attributes that you would like the page to use. If you are using Java portlets there are other techniques for parsing the page URL (in the PDK or even generic JDK functions) to get the pageid.
    Finally, we will continue to support custom page types. However, for this requirement I would recommend using page parameters instead (you may have other needs for custom page types, however).
    Regards,
    Jerry
    PortalPM

  • How to restrict a user typing a custom value in the dDocAccount field.

    I have dDocAccount field drop down pre-populated with 2 values - Dept1, Dept2. However, user can able to type any other values (say Dept3) in the account text box and checkin a doc from WCC UI. How to restrict user from entering custom values?
    As an alternate solution - for time being i have the above account field is set as hidden using rule. I am trying to derive the account value from another one field's value (say Departments field with values Dept1, Dept2). I tried below code and found working:
    Department is a custom field created as option list with values Dept1, Dept2
    Under the Rules, for the field dDocAccount, is derived field checked and added below code
    <$dprDerivedValue=#active.xDepartment, getValue("#local","dOption")$>

    Hi,
    If Department is a custom metadata then you should access it like xDepartment(as any other custom metadata), not dDepartment.
    I know it is also possible to change the HTML that is generated for the dDocAccount field, to add javascript validation and so on, maybe this approach plus some additional JS and HTML twists and you should get it working(via component development).
    Hope it helps,
    Vlad

  • Creating a step type "launcher" that would insert the appropriate built-in or custom step type at edit time

    Hi everybody,
    I'm looking for tips, pointers,directions... to be able to perform this operation in TS 4.0 sequence Editor, if it's even possible...
    I'm managing a test system with a "home-made" virtual instruments abstraction Layer complementary to IVI classes for instruments which do not have classes defined, customizing the sequence editor accordingly for developpers of my department.
    So basically when the instrument is IVI, the developper uses the built-in IVI step-type type and when it is not, he uses the the custom step types that I developped for this particular class of instruments.  
    However there are classes where I do have both IVI and specific drivers available and I do need to use both in the test sequence.
    For example let's say there are two sources of DC power available in the testbench, one being a programmable IVI compliant DC power supply, and the other one composed of fixed "blocks" of DC power supply managed by externals relays and you need to use them both in the test sequence.
    What I would like to be able to do in the sequence editor is inserting the appropriate step type at edit time just by selecting the source of power supply (by a ring or enum for eg), and if the first ressource is selected, it inserts IVI step type, and if the second ressource is chosen, it inserts the appropriate custom step type.
    Any Ideas on how to accomplish this ?
    Regards,
    Cyril
    Cyril Bouton
    Active LabVIEW Developper
    Solved!
    Go to Solution.

    Hello Cyril,
    Here is an idea that could be done:
    You could create a dynamic step by having a step that holds all the properties for both configurations (the superset of the necessary variables) and an extra one that indicates which 'mode' the step is in.  Then you create the main Edit substep in whichever language you desire.  That substep window will then have a box/dropdown/etc. at the top you can use to choose between modes A & B.  When the user changes the value, you would dynamically change the rest of the window to contain the appropriate properties for mode A or B.  You then copy the property values in that window to the Step properties, and copy the mode to your variable and you can run the step in that mode.  When the step then runs, it checks the mode variable, and depending on its value, it will run the step in mode A or B.
    Now we could add a dialog that allows us to choose when we put a step down but we should still allow the user to change later via the Edit substep we create.
    I don't think we can create something that inserts a completely different step, but we can have one step that has the ability to do both and we can pick which one we execute.  Also note we still don't have the ability to edit the Panels for a step, so we have to use a new window that we call from our Edit substep to complete the step.
    Hope this helps.
    Regards,
    Olivier L. | Certified LabVIEW Developer

  • B2B Custom Document Type not getting identified

    Hello,
    I have installed Oracle Fusion Middleware 11g on my local machine and created a custom document type with proper .xsd definition and XPath Expression Identifier in Oracle B2B interface and configured its trading partners ( Host & Remote ) along with an agreement between the partners.
    I have also configured the host listening channel of Generic-File type which picks xml files from my c:\orclsrvs_in folder.
    My problem is that the moment I drop any sample file in the expected directory, it gets picked up from B2B , but there isn't any record of the same under Reports and Metrics links.
    The Business message, Application message and Conversation message tabs are also not showing any information about the record picked, but in wire message tab, the record is shown in PROCESSING state.
    I am not able to conclude whats wrong behind this.. where can i track the logs for the same ??
    kindly help to resolve this issue.
    Thanks & Regards
    Hiteshkumar Chaudhary

    Hi Hitesh,
    i came to know that B2B extracts the TP name from the filename itselfYes, in case of Generic File, Generic SFTP and Generic FTP, file name provides the necessary values to Oracle B2B to identify the Trading Partner. You can define your own file name format in the Delivery Channel under Transport Protocol Parameters in field "Filename format" (It's an optional field but it is always good to define your own format, otherwise B2B will take it's default format - TradingPartner_DocumentType_Revision_msgType_msgId_replytoMsgID_extension.xml ). Following Filename formats can be used -
    %FROM_PARTY%
    %TO_PARTY%
    %DOCTYPE_NAME%
    %DOCTYPE_REVISION%
    %MSG_ID%
    %TIMESTAMP%
    These file name formats can be used in any combination; for example,
    %TO_PARTY%_%DOCTYPE_NAME%_%DOCTYPE_REVISION%.dat
    Note - Any file extension is allowed.
    what are the system parameters to be set in weblogic console and how?? This activity is part of the pre and post installation steps. If you have done those without getting any errors then nothing else is required.
    how shall I reinstall XEngine properly ??XEngine is part of B2B installation. If B2B gets installed without flashing any errors then we assume that other components of this part has installed properly.
    Regards,
    Anuj
    Edited by: Anuj Dwivedi, Infosys on Aug 28, 2009 5:51 PM

  • Urgent:  ABAP Custom Process Types

    Hi Gurus,
    I have created a Custom Process Type for ABAP program which returns status (Success or Failure).
    I followed the below procedure to create a custom ABAP process type.
    In RSPC, I went to Settings -> Maintain process types
    I selected the ABAP process type and then selected the EDIT -> COPY AS and then in the process chain configuration screen, I gave a new name to the process type, changed the POSSIBLE EVENTS settings to "2 process ends "successful" or "failure" and saved the settings to confirm changes.
    Now I can see the new process type for ABAP program which returns the success or failure for the successors.
    Now, my question is, where do i write the logic for ABAP program ? how does the ABAP program returns the success or failure. Do I have to change the code in the method IF_RSPC_EXECUTE~EXECUTE to return success or failure.  Please make me clear where I can write the code? For example in my ABAP program, I am searching a table to find a specific value. If the value is not found, then the ABAP process type should return failure, if found should return success. How can I do this?
    Thanks in advance,
    Regards,
    aarthi
    [email protected]

    To trigger a process chain from an external program you can use the function:
    RSPC_API_CHAIN_START
    you need only to know the Chain ID and pass it in import parameter.
    Here an example:
    select-options v_time for sy-uzeit.
    parameter: chain type RSPC_CHAIN.
    check sy-uzeit in v_time.
    CALL FUNCTION 'RSPC_API_CHAIN_START'
      EXPORTING
        i_chain             = chain
      I_T_VARIABLES       =
      I_SYNCHRONOUS       =
      I_SIMULATE          =
      I_NOPLAN            =
    IMPORTING
      E_LOGID             =
    EXCEPTIONS
      FAILED              = 1
      OTHERS              = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Sergio

  • Urgent Help need for ABAP Custom Process Types

    Hi Gurus,
    I have created a Custom Process Type for ABAP program which returns status (Success or Failure).
    I followed the below procedure to create a custom ABAP process type.
    In RSPC, I went to Settings -> Maintain process types
    I selected the ABAP process type and then selected the EDIT -> COPY AS and then in the process chain configuration screen, I gave a new name to the process type, changed the POSSIBLE EVENTS settings to "2 process ends "successful" or "failure" and saved the settings to confirm changes.
    Now I can see the new process type for ABAP program which returns the success or failure for the successors.
    Now, my question is, where do i write the logic for ABAP program ? how does the ABAP program returns the success or failure. Do I have to change the code in the method IF_RSPC_EXECUTE~EXECUTE to return success or failure.  Please make me clear where I can write the code? For example in my ABAP program, I am searching a table to find a specific value. If the value is not found, then the ABAP process type should return failure, if found should return success. How can I do this?
    Thanks in advance,
    Regards,
    aarthi
    [email protected]

    Hi,
       We have a similar problem. We have an ABAP program in a process chain that
    uses a custom process type with on success and on failure.
        If  the program is successful there is no problem. it will run the next process step.
        The problem is when the ABAP Program fails and even though the message class is E in our ABAP program it has a confirm popup message with a status change and asks "Save Status and Trigger Events if Appropriate".
         Once you enter Yes to continue it then continues to the next step in the program and is fine.I traced in debug where this status message is appearing. It is in CL_RSPC_LOG. There is a popup_to_confirm_step where it checks the e_status that is value J ( Framework Error upon completion). Then it submits the rspc_process_finish program to complete and call the on error process step.
         Has anyone else experienced this and is there any other documents out there to help me?
    Apologies if this is not very clear.
    Any assistance would be appreciated.
    Thanks
    Monica Mandia

  • How can I include multiple limits in the sequence file documentat​ion for custom step type?

    Hi,
    I have a custom Step Type that contains Measurements property under Results. Its type is Array of NI_LimitMeasurement.
    I would like to see the values in the sequence file documentation like NI_MultipleNumericLimitTest type.
    Is there any trick to do that?
    Thanks,
    Andras

    Hi Andras,
    I have made  a slight change to the sequencefile 'docgen_txt.seq'.
    In the Sequence 'Step Doc' is a section which handles MultipleNumericLimit step type. There is a precondition check on the step 'Add Multiple Numeric Limits' if the step is of type 'NI_MultipleNumericLimit'. As your step type is based on the MultipleNumeric Limit type, I have just removed this precondition and just relied on the existence of Parameters.Step.Result.Measurement. Equally you could add a new section in this sequence to handle your Custom Step Type which is only called when the precodition match your type name.
    Now when you run the DocGen tool it handles your custom step type.
    Find attached my modified sequencefile 'docgen_txt.seq'.
    Just copy the contents of '..\National Instruments\TestStand 3.5\Components\NI\Tools\DocGen' to the User folder. Then place the attached file in the User\Tools\DocGen overwritting the version that is in that folder.
    Then launch TestStand and try it out on your sequence file.
    If you are using the html version, then you will have to make the same change into Step Doc sequence of the docgen_html sequence file.
    Hope this helps
    Regards
    Ray Farmer
    Message Edited by Ray Farmer on 05-19-2007 05:28 PM
    Regards
    Ray Farmer
    Attachments:
    docgen_txt.seq ‏184 KB

  • Custom data type causing trouble in deploying shared variable to RT target

    I seem to be having some difficulty in using a network published shared variable created from a custom data type when deployed as an executable on an RT cRIO target.  I'll start by describing why I believe this is where the problem lies.  I created my RT VI in the LabVIEW development environment (LV 2012) and everything works fine.  This VI is pretty simple because it rapidly devolved in to a debug exercise.  The RT VI starts by simply blinking the User LED a couple of times and then starts a simple acquisition loop to read a few values off the hardware using the scan engine (while still blinking the User LED).  After reading the hardware, the values are bundled in to a cluster and written to a network-published shared variable defined by a type def custom control.  The custom control contains five dbl precision floats.  If it matters, the cRIO RT system hosts the shared variable in this case.
    So, I deploy this under the development environment and everything works fine.  The LED blinks merrily along, telling me that the program is running properly.  Running a host VI that reads the network-published shared variable yields the desired result.  All is good.
    Now I want the cRIO system to run this simple program autonomously at startup.  I build it, set it as the startup VI, deploy it and then restart the cRIO target.  The LED never starts blinking... the VI does not seem to run.  I will spare you most of the debugging work and jump to the end.  I basically "Diagram Disabled" various sections of code until the VI started running correctly as an executable.  I kept reducing the size of the disabled code until only one thing was disabled:  the write to the custom data type shared variable.
    So, I guess my question is this:  Are custom data types defined by type def'd custom controls allowed in executable RT programs?  I've read through the cRIO Developers Guide, my NI Real Time Development course book and the Using Shared Variables white paper and I didn't see anything that forbade it.  I know that there are some things not allowed in executables that are allowed in the development environment (front panel property nodes, dialog VIs, OS-specific calls, etc), but no mention of custom data type shared variables.  Any ideas as to why my VI runs in the development environment but fails when compiled unless I remove the write to the network published shared variable?
    Thanks in advance for your help!!
    Solved!
    Go to Solution.

    Paolo,
    So I thought that you meant to disconnect them in the build specification.  Under the Additional Exclusions in the build specification, there is a check box for Disconnect Type Defs.  I checked that box, recompiled, redeployed and it did not work.  At this point I had to give and move forward, so I was going to convert the data typed from a cluster to an array.  When I went in to change the data type in the shared variable pop-up from the project explorer, there was a big button under the variable definition that "Disconnect from Type Def".  Clicked that button, recompiled, redeployed, restarted and everything worked great.  Thank You!!
    I suspect that I'll have to be careful if I change the definition of that data type (add an element, etc) since it is no longer connected to the data type.  We'll cross that bridge when we need to.
    Thanks again

  • DropDown List issue in saving user entered custom value to dropdown : WDJ

    Hi Experts,
    I have a dropdown list that is say prepopulated with 2 values, by clicking "allow custom entry" I can enable the user to type in a value if he doesnt want to choose from existing options.
    I am trying to add the user entered value to the dropdown list by using the "addItem()" script appropriately.
    Issue is that though the new value is getting saved, once the users saves and closes the form, opens again and adds a new user entered value then this new value overwrites the previously entered custom value.
    I see that the user entered value doesnt get bound to the dropdown.
    I have bound this dropdown field to an appropriate web dynpro java context attribute.
    Please provide any solutions if known!
    I am using NWDS 7.0.14, ALD 7.1 and Reader 8.1
    Thanks,
    Lisha

    Closing the post.

  • HELP: Extended Attributes Not Appearing In Instances of Custom Content Type

    From Java code I create a custom content type derived from Document and define some extended attributes with default values for that type. All done using the same methodology shown in the Developer's Guide and Oracle example code.
    I start ifsmgr and I can indeed see the content type and the extended attributes.
    If I however create an instance of this (custom) type, either from the Viewer (file Upload) or from Java code (using code simuilar to createDocument from the Oracle ContentModule example), the extended attributes do not appear!
    BUT, if I delete one of the extended attributes using ifsmgr (highlight one of my extened attributes, click on "Remove", and then "Apply"), from that point on the previously missing extended attributes appear (except for the one I deleted of course) when I create files of the custom type from either Java code or the Viewer. Furthermore, once I get ifs to "see" one of these extended attributes in this manner, I can delete the extended attribute and re-create it from Java at will and it will appear in created instances of my custom content type just fine.
    If however I add another new extended attribute to the custom content type, I have to do the "Remove/Apply" drill in ifsmgr to get this new attribute to appear in created files of my custom type.
    I've tried deleting all instances of the custom type and closing both ifsmgr and the Viewer, but unless I delete one of the extended attributes from ifsmgr I cannot get new extended attributes to appear.
    What do I need to do in my 9ifs Java code to get new custom content extended attributes to appear in instances of that custom type?
    Thank you,
    Jeff "Did Kafka Write ifs?" Rininger

    Dear @user10993347,
    As mentioned by @vinod2303, you need to maintain content relationships along with subscriptions.
    Regards,
    Saurabh

Maybe you are looking for

  • Windows Vista "java.lang.ClassNotFoundException: loader.class" error.

    Hello, Whenever I try to visit websites that have a java applet I get a dialogue with the following error: java.lang.ClassNotFoundException: loader.class. I have tried uninstalling/reinstalling java, and also adding the -xmx and -xms parameters for j

  • Internal Error 2753 Updater.api  Adobe Acrobat Pro 9

    I'm getting an error while trying to install Acrobat Pro 9 saying: "Internal Error 2753 Updater.api" I don't have any other version of Acrobat installed in XP Pro sp2. I have seen suggestions on this for version 8 to use the installer instead. I have

  • Files panel context menu

    is it possible to add search options to the files context menu ? like start dw search with selected folder ? i know how to edit dw menus ... thanks pi

  • Solaris 10: Remote Display of JDS rel 3 and CDE over Xwindows

    On an Ultra 5 running Solaris 10, I want to start a session of either Java Desktop System Release 3 or CDE and display it on another system running an Xwindows server (running on a Windows box, but I don't think that matters). I also don't want to ad

  • Consignment Sales - Pricing Procedure

    Dear Experts, is pricing procedure of Consignment Sales difference than Normal Sales. if somebody can provide a expert opinion and any note url link for Consignment Sales Pricing Procedure.