Comboboxes are not set  on the 1st time a row is clicked in the dataTable

I have somewhat the following setup:
I have a DataTable that is filled with a listof objects, a actionListener is handeled when a row is clicked.
Under the Table there are two ComboBoxes (lets call them Category and Item) that get their values from lists of Objects. The values of the list that backs the Item combo depend on the selected value of the Category combo.
Lets assume the values look like this:
CategoryA
---ItemA1
---ItemA2
CategoryB
---ItemB1
---ItemB2
Together with some textboxes, they should represent the values of the clicked row in the Table.
Now the problem:
When the comboboxes have a different value than the row that is beïng selected the values of the comboboxes and textboxes are not set correctly until the 3rd time the row is clicked.
It also doesn't go into the onClickMehod in the backing bean before the 3rd click. This is checked by a logger.
an example:
before clicking, the category combo is set to "CategoryB", the Item combo is set to "ItemB1" and the textboxes are empty. The row that is going to be clicked has as its category "CategoryA" and as its Item "ItemA1"
1st click:
the form still shows the values like they were before clicking, the log doesn't show that the method is triggered
2nd click:
the Item combo is set to "ItemA1", the category is still set to "CategoryB", the textBoxes are still empty. The log still doesn't show that the method is triggered
3rd click:
the Category combo is set to "CategoryA", the Item combo is set to "ItemA1", the textboxes also have their correct values.
the code is as followed:
JSP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head></head>
<body>
<f:view>
<h:form binding="#{backingBean.pageLoad}">
<h:dataTable binding="#{backingBean.dataTable}" columnClasses="COL1, COL1, COL2, COL2, COL3" value="#{backingBean.myObjects}" var="myObject" width="100%" headerClass="HEADING" rowClasses="ROW1, ROW2" rows="10">
<h:column>
<f:facet name="header">
<h:commandLink actionListener="#{backingBean.sortDataList}" styleClass="rowHeader">
<f:attribute name="sortField" value="getItemCategory" />
<h:outputText value="Category"/>
</h:commandLink>
</f:facet>
<h:commandLink shape="rect" styleClass="rowtext" value="#{myObject.item.itemCategory.description}" actionListener="#{backingBean.rowSelect}" />
</h:column>
<h:column>
<f:facet name="header">
<h:commandLink actionListener="#{backingBean.sortDataList}" styleClass="rowHeader">
<f:attribute name="sortField" value="getItem" />
<h:outputText value="Item"/>
</h:commandLink>
</f:facet>
<h:commandLink shape="rect" styleClass="rowtext" value="#{myObject.item.name}" actionListener="#{backingBean.rowSelect}" />
</h:column>
<h:column>
<f:facet name="header">
<h:commandLink actionListener="#{backingBean.sortDataList}" styleClass="rowHeader">
<f:attribute name="sortField" value="getDescription" />
<h:outputText value="Certification"/>
</h:commandLink>
</f:facet>
<h:commandLink shape="rect" styleClass="rowtext" value="#{myObject.description}" actionListener="#{myObject.description}"/>
</h:column>
<f:facet name="footer">
<h:panelGroup style="text-align:right">
<h:commandButton value="first" action="#{backingBean.pageFirst}" disabled="#{backingBean.dataTable.first == 0}" />
<h:commandButton value="prev" action="#{backingBean.pagePrevious}" disabled="#{backingBean.dataTable.first == 0}" />
<h:commandButton value="next" action="#{backingBean.pageNext}" disabled="#{backingBean.dataTable.first + backingBean.dataTable.rows >= backingBean.dataTable.rowCount}" />
<h:commandButton value="last" action="#{backingBean.pageLast}" disabled="#{backingBean.dataTable.first + backingBean.dataTable.rows >= backingBean.dataTable.rowCount}" />
<h:commandButton value="Append New" action="#{backingBean.ClearFields}" />
</h:panelGroup>
</f:facet>
</h:dataTable>
<h:inputHidden value="#{backingBean.sortField}"/>
<h:inputHidden value="#{backingBean.sortAscending}"/>
<h:inputHidden value="#{backingBean.myObjectId}"/>
<br />
<br />
<table style="border-collapse: collapse; width:100%" cellpadding="3" border="1">
<tr>
<td style="text-align:left; width:20%; background-image:url('images/lbar.gif'); font-family:Arial; font-size:smaller; font-weight:bold" colspan="3">Detail</td>
</tr>
<tr>
<td style="text-align:right; width:20%; background-color:#CCCCCC; font-family:Arial; font-size:smaller; font-weight:bold">Category </td>
<td style="width:80%; background-color:#CCCCCC;font-weight:bold">
<h:selectOneMenu value="#{backingBean.selectedCategory}" onchange="submit();" valueChangeListener="#{backingBean.CategoryChange}">
<f:selectItems value="#{backingBean.selectedCategories}"/>
</h:selectOneMenu>
</td>
</tr>
<tr>
<td style="text-align:right; width:20%; background-color:#CCCCCC; font-family:Arial; font-size:smaller; font-weight:bold">Item id </td>
<td style="width:80%; background-color:#CCCCCC;font-weight:bold">
<h:selectOneMenu value="#{backingBean.selectedItem}">
<f:selectItems value="#{backingBean.selectedItems}"/>
</h:selectOneMenu>
</td>
</tr>
<tr>
<td style="text-align:right; width:20%; background-color:#CCCCCC; font-family:Arial; font-size:smaller; font-weight:bold">Item Description </td>
<td style="width:80%; background-color:#CCCCCC;font-weight:bold"> <h:inputTextarea value="#{backingBean.description}" cols="60" rows="5"/></td>
</tr>
</table>
</h:form>
</f:view>
</body>
</html>the backing bean:
public class BackingBean{
-- Declaration of properties --
public void rowSelect(ActionEvent event) {
// Get selected MyData item to be edited.
logger.debug("Select row");
FacesContext context = FacesContext.getCurrentInstance();
try
if ((sortField != null) && (myObjects != null)) {
Collections.sort(myObjects, new DTOComparator(sortField, sortAscending));
dataTable.saveState(context);
catch(Exception e){
logger.error(e.getLocalizedMessage(), e);
context.addMessage("ERROR", new FacesMessage(e.toString()));}
logger.debug("Setting fields");
myObject = (MyObject) dataTable.getRowData();
description = myObject.getDescription();
itemCategory = myObject.getItem().getItemCategory();
item = myObject.getItem();
docDisabled = !certified;
selectedCategory = itemCategory.getId();
myObjectId = myObject.getId();
logger.debug("Fields set");
public void sortDataList(ActionEvent event) {
String sortFieldAttribute = getAttribute(event, "sortField");
// Get and set sort field and sort order.
if (sortField != null && sortField.equals(sortFieldAttribute)) {
sortAscending = !sortAscending;
} else {
sortField = sortFieldAttribute;
sortAscending = true;
// Sort results.
if (sortField != null) {
Collections.sort(myObjects, new DTOComparator(sortField, sortAscending));
public void CategoryChange(ValueChangeEvent vce){
try {
logger.debug("SelectedIndexChange: Category: {}",vce.getNewValue().toString());
selectedCategory = Integer.parseInt(vce.getNewValue().toString());
logger.debug("SelectedIndexChange: Category");
itemCategory = itemCategoryService.retrieveItemCategoryById(selectedCategory);
logger.debug("Showing Category: {}", itemCategory.getDescription());
} catch (Exception e) {
logger.error("Error occured: {}",e.toString());
FacesContext context = FacesContext.getCurrentInstance();
context.addMessage("ERROR", new FacesMessage(e.toString()));
public List<SelectItem> getSelectedItems() {
selectedItems = new ArrayList<SelectItem>();
try
logger.debug("selectedCategory: {}",selectedCategory);
if (itemCategory!=null)
logger.debug("Category Object: {}",itemCategory.getId());
items.clear();
items.addAll(itemCategoryService.retrieveItemCategoryById(selectedCategory).getItems());
logger.debug("items recieved: {}",items.size());
for (int count = 0; count < items.size(); count++) {
selectedItems.add(new SelectItem(items.get(count).getSeq(),items.get(count).getName()));
catch (Exception e){
logger.error("Error occured: {}",e.toString());
FacesContext context = FacesContext.getCurrentInstance();
context.addMessage("ERROR", new FacesMessage(e.toString()));
return selectedItems;
public List<SelectItem> getSelectedCategories() {
selectedCategories = new ArrayList<SelectItem>();
try{
for (int count = 0; count < itemCategories.size(); count++) {
if (itemCategories.get(count).getItems().size() != 0)
selectedCategories.add(new SelectItem(itemCategories.get(count).getId(),itemCategories.get(count).getDescription()));
if (selectedCategory == 0)
selectedCategory = itemCategories.get(0).getId();
catch (Exception e){
logger.error("Error occured: {}",e.toString());
FacesContext context = FacesContext.getCurrentInstance();
context.addMessage("ERROR", new FacesMessage(e.toString()));
return selectedCategories;
-- other getters and setters --
}I've already tried to use the action attribute instead of the actionlistener attribute, also tried to add immediate="true" to all fields and columns.
Did try to add onclick="submit();" to the rows.
What can be done to fix it??
ps: the enviroment is JSF + Spring + Hibernate

The <h:messages/> tag is where the validation exception is shown, but no validation is used on the form, no other exeptions are sown.
the List<Categories> is filled at a setPageLoad method which is bound to the form by <h:form binding="#{backingBean.pageLoad}">.
The List<SelectedItem> of the categories box is filled in its getter and filled with the values of the List<Categories>
And both the List<SelectedItem> of the items box and the List<Item> are filled in the getter of the List<SelectedItem> of the items box
so instead of that i should rewrite it to something like this:
public BackingBean() {
    selectedCategories = new List<SelectedItem>();
    selectedItems = new List<SelectedItem>();
    categories = CategoryService.retrieveCategories(); //gets all categories
    items = ItemService.retrieveItemsByCategory(selectedCategory); //gets the items
    for (int count = 0; count < categories.size(); count++) {
        selectedCategories.add(new SelectItem(categories.get(count).getId(),categories.get(count).getDescription()));
    if (selectedCategory == 0){
        selectedCategory = categories.get(0).getId();
    for (int count = 0; count < items.size(); count++) {
        selectedItems.add(new SelectItem(items.get(count).getId(),items.get(count).getDescription()));
    if (selectedItem == 0){
        selectedItem = items.get(0).getId();
public void CategoryChange(ValueChangeEvent vce){
        try {
            if (vce.getPhaseId() != PhaseId.INVOKE_APPLICATION) {
                vce.setPhaseId(PhaseId.INVOKE_APPLICATION);
                vce.queue();
            } else {
                FacesContext.getCurrentInstance().renderResponse();
                selectedCategory = Integer.parseInt(vce.getNewValue().toString());
                category = CategoryService.retrieveCategoryById(selectedCategory); // gets the category Object
        } catch (Exception e) {
            logger.error("Error occured: {}",e.toString());
            FacesContext context = FacesContext.getCurrentInstance();
            context.addMessage("ERROR", new FacesMessage(e.toString()));
public List<SelectItem> getSelectedCategories() {
    return selectedCategories;
public void setSelectedCategories(List<SelectItem> selectedCategories) {
    this.selectedCategories = selectedCategories;
public List<SelectItem> getSelectedItems() {
    return selectedCategories;
public void setSelectedItems(List<SelectItem> selectedItems) {
    this.selectedItems = selectedItems;
}The bean is request scoped.

Similar Messages

  • EVERYtime I click "send" or "get Mail", I have to click twice. The 1st time with "send" produces an error, the 1st time with "get mail", nothing happens.

    I have to select "send" or "get mail" twice in order for Thunderbird to do what I want. When I click the 1st time when sending, I ALWAYS get an authentication error. I click again and it sends the message without error. When I click "get mail" nothing happens. When I click it again, it checks & retrieves mail.

    That sounds like an anti virus issue.
    Restart the operating system in '''[http://en.wikipedia.org/wiki/Safe_mode safe mode with Networking]'''. This loads only the very basics needed to start your computer while enabling an Internet connection. Click on your operating system for instructions on how to start in safe mode: [http://windows.microsoft.com/en-us/windows-8/windows-startup-settings-including-safe-mode Windows 8], [http://windows.microsoft.com/en-us/windows/start-computer-safe-mode#start-computer-safe-mode=windows-7 Windows 7], [http://windows.microsoft.com/en-us/windows/start-computer-safe-mode#start-computer-safe-mode=windows-vista Windows Vista], [http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/boot_failsafe.mspx?mfr=true" Windows XP], [http://support.apple.com/kb/ht1564 OSX] and see if the double clicking stops.

  • HT5622 i downloaded a book.  howver it did not go through the 1st time - yet  I was billed for the same book several times

    i used Itunes to download a book
    it did not download the 1st several times....and I did not get it
    it finally went thru
    but I was billed several times for the same book
    how can I get the duplicate charges for the same book reversed?

    Try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via the Store > View Account menu option and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that book and use the 'Report a Problem' link and fill in details about the problem (iTunes support should reply within, I think, about 24 hours).
    If the 'report a problem' link doesn't work (it's been taking some people to this site on a browser instead of showing a form in iTunes) then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption.

  • Why some of the tables are not set cacheable by default.

    Hi all.
    in the case management analytics in OBIEE. (Case Management Analytics Fusion Edition)
    Some of the tables for example (W_CASE_D, W_INCIDENT_D, W_LEAD_D) are not set Cacheable.
    That means, select table, right click, properties, Cacheable is NOT ticked in.
    does any one knows the reason why ?
    Thanks,
    Shanker.

    Hi Srini.
    Sorry, I think you did not understand my question.
    basically some tables are set as 'Not Cacheable' in Case Management Analytics, I am not sure, why ?
    do you know may be why ? all tables are marked as 'Cacheable' when looked from Table > Properties.
    But few ((W_CASE_D, W_INCIDENT_D, W_LEAD_D) NOT, WHY ? is it on purpose Oracle has done this way ?

  • Deploying iTunes and plugging an iPhone for the 1st time

    Hello everybody,
    I'm going tu upgrade iTunes to 9.2.1 on a feew weeks for the entire park.
    I enabled the parental control to doesn not allow the acces to the Apple store.
    I put the ipsw file on a network share.
    So when iTunes will be deployed I will send a mail with the procedure, how to upgrate the iOS.
    Here is the problem :
    There are a lot of people who haven't synced their iPhone with iTunes.
    So when they will plug for the first time their iPhone to the computer, iTunes will ask to register. So they will have to click on "Ask later". After that, an erreor occurs "problem to acces to iTunes Store" : that's noral because there is no access to the iTUnes store.
    When we click on OK, at this time, finaly, we are on the main screen, and start the upgrate.
    So there is the question :
    Is there a way to skip all the introduce screen when an iPhone is plugged for the 1st time to a computer, and have the main screen directly?
    Thank you very much.
    Florian

    NO

  • For the 1st time I am trying to send an iPhoto by email but get an error message "combinations of username and password not recognised" I use the same details to log on to my Sky Mail (yahoo mail ) account . Any ideas?

    For the 1st time I am trying to send an iphoto by e-mail but get the error message " combination of username and password not recognised  by the server" I use Sky Mail ( yahoo mail) and input the same username and password that I access Sky Mail - have retried many times. Predictably the Sky help desk have no idea. Can anyone help please?

    I regret that you're having trouble setting up your email, corbad! You're on the right track with your incoming email address. You might also try incoming.verizon.net or incoming.yahoo.verizon.net as possible alternatives, and 995 as the port number. Please let me know how that goes!
    DionM_VZW
    Follow us on Twitter www.twitter.com/vzwsupport

  • I have an Apple ID and trying to sign in for the 1st time on iTunes. When I do, I get the message: "This Apple ID has not been used with the iTunes Store. Please review your account information." When I do, I get stuck in the same loop and can't sign in!

    I have an Apple ID and trying to sign in for the 1st time on iTunes. When I do, I get the message: "This Apple ID has not been used with the iTunes Store. Please review your account information." When I do, it brings me to the same AppleID login window, and I get stuck in the same loop. I never get to the following screen to enter my account info. What's going on?? This is MADDENING!

    If you want to use it, click Review and check your account information.  Or you could contact the store support staff if you are concerned at http://www.apple.com/emea/support/itunes/contact.html for further help.

  • How do I set the zoom at a particular level as the default to ensure pages are not too small and that i don't have to change the zoom for each page? in English

    How do I set the zoom at a particular level as the default to ensure pages are not too small and that i don't have to change the zoom for each page? in English
    == This happened ==
    Every time Firefox opened
    == From the beginning

    Some add-ons:
    Default FullZoom: https://addons.mozilla.org/en-US/firefox/addon/6965 (I use this one)
    No Squint: http://urandom.ca/nosquint/
    Also:
    http://support.mozilla.com/en-US/kb/Page+Zoom
    http://support.mozilla.com/en-US/kb/Text+Zoom
    http://kb.mozillazine.org/Browser.zoom.siteSpecific

  • I have an IPOD touch 4th generation. When I try to go and buy apps from Itunes and App store it askes for ssecurity codes because it is the 1st time using it. can not remember. How do I reset it or find them?

    I have an IPOD touch 4th generation. When I try to buy apps from apps store and Itunes it says this is the 1st time doing it so wants me to answer security questions. Granddaughter put 2 in the ipod but can't remember them. how do i either change them so I know what they are or just take them out again?

    Strange; yesterday there was a link via which you could get a reset email sent, but today that link is missing. So if you've forgotten your answers, there is no way around the problem without involving Apple. Go here:
    http://www.apple.com/emea/support/itunes/contact.html
    to report the issue to the iTunes Store.
    Regards.

  • I got the new iPhone5 back in Dec, I hooked it up to my computer for the 1st time this wk.  It deleted all new data added since Dec (notes,contacts,texts,pics, info in apps) and reverted back to all my old data.  How can I retrieve all the lost data??

    I got the new iPhone5 back in Dec, I hooked it up to my computer for the 1st time this wk.  It deleted all new data added since Dec (notes,contacts,texts,pics, info added to apps) and reverted back to all my old data (literally uploaded all of my old texts and 1400 old pics and deleted anything new).  How can I retrieve all the lost data?? Please help!!

    SkyDaughter29 wrote:
    My current situation: I have soooo many texts on my iphone and I haven't deleted many because I need the information contained in them for future reference and for legal purposes.  I would really like to find a means and way to save them other than on the phone itself. I've done searches for various apps yet I'm not finding what I think I would need.  It appears Apple does not sync the texts between the iphone and my MacBook Pro.
    Try the computer apps PhoneView (Mac) or TouchCopy (Mac & PC):
    http://www.ecamm.com/mac/phoneview/
    http://www.wideanglesoftware.com/touchcopy/index.php
    Best of luck.

  • This message could not be delivered because your SMTP settings are not set. Please use the Accounts Preferences panel to set the SMTP options for your account.

    I am not able to send out an email. I keep getting the following message: This message could not be delivered because your SMTP settings are not set. Please use the Accounts Preferences panel to set the SMTP options for your account. Can someone help me with this?

    We need some information, starting with the email provider (eg. Google, Yahoo, Bellsouth, etc)

  • HT1391 i downloaded a movie for the 1st time. The movie shows downloaded, but I can not find it?? How do I find a downloaded movie??

    I downloaded a movie for the 1st time. The movie shows "downloaded" in Itunes, but does not show up anywhere?? Where/how do I find the downloaded movie on my IPAD 2??

    Where is my movie I downloaded on my iPad from itunes

  • Have a new iPad with ios6.  Will not send emails. Addresses are valid  but get notice each time that recipient was rejected by the server.  No help on web site, and Apple's only manual is for previous os version.  We miss Steve Jobs.

    Have a new IPad with IOS6.  Will not send emails.  Addresses are valid but get notice each time that "recipient was rejected by the server."  Apple has apparently neglected to put out a manual with IOS6 and the previous manual has no indication of what to do.  Really miss Steve Jobs.

    Try going into Settings > Mail, Contacts, Calendars > select the account > account name , tap on SMTP (under the 'Outgoing Mail Server' heading) and then tap on your Primary Server and try entering your email account and password and see if it then works

  • Quality Inspection for the 1st time Receive of Batch

    Hi all.
    My requirement is just to do the quality inspection when the Batch(MCHA-CHARG) is received in the first time in MIGO.
    No quality inspection is required for next & consequtive goods receive for the same batch.
    for the 1st time receive, the stock will go to quality inspection stock for any batch of a material. From the next time , the stock will go directly to unrestricted stock without quality inspection. is it possible? plz advice.
    Thanks
    pabi

    Hi Pabi,
    I am not sure if this will help you, but here are the three options that you might want to consider:
    - Source inspection. The idea here is that an IL is created for a purchase order prior to GR. All subsequent receipts for this PO can be configured to skip inspection.
    - Control if insp. lot in material master (insp. set-up). In this case, the system will not create new insp. lot, if there's already one open for the same batch - it will merely add the qty of the new GR to the same open insp. lot.
    - With dynamic modification you can let the following receipts of the same material from the same vendor to go without QI, but you can't fine-tune it by batch.
    I know this is not the same what you want, but I can't recall at the moment a function that will satisfy your requirement exactly.
    BR
    Raf
    Edited by: Rafael Zaragatzky on Aug 7, 2011 4:32 PM

  • 'BAPI_GOODSMVT_CREATE' takes more time for creating material document for the 1st time

    Hi Experts,
    I am doing goods movement using BAPI_GOODSMVT_CREATE in my custom code.
    Then there is some functional configuration such that, material documents and TR and TO are getting created.
    Now I need to get TO and TR numbers from LTAK table passing material documnt number and year, which I got from above used BAPI.
    The problem I am facing is very strange.
    Only for the 1st time, I am not finding TR and TO values in LTAK table. And subsequent runs I get entries in LTAK in there is a wait time of 5 seconds after bapi call.
    I have found 'BAPI_GOODSMVT_CREATE' takes more time for creating material document with similar issue, but no solution or explanation.
    Note 838036 says something similar, but it seems obsolete.
    Kindly share your expertise and opinions.
    Thanks,
    Anil

    Hi,
    please check if some of following OSS notes are not valid for your problem:
    [Note 838036 - AFS: Performance issues during GR with ref. to PO|https://service.sap.com/sap/support/notes/838036]
    [Note 391142 - Performance: Goods receipt for inbound delivery|https://service.sap.com/sap/support/notes/391142]
    [Note 1414418 - Goods receipt for customer returns: Various corrections|https://service.sap.com/sap/support/notes/1414418]
    The other idea is not to commit each call, but executing commit of packages e.g. after 1000 BAPI calls.
    But otherwise, I am afraid you can not do a lot about performance of standard BAPI. Maybe there is some customer enhancement which is taking too long inside the BAPI, but this has to be analysed by you. To analyse performance, just execute your program via tr. SE30.
    Regards
    Adrian

Maybe you are looking for

  • Update no longer works with Outlook 2002

    I recently updated Itunes as suggested by the software and now I can't sync with Outlook 2002. I have no need for 2003 and am wondering if there is any work around so I can continue to sync? It is not a major issue, since I don't use my Ipod to see m

  • Extremely urgent: append cast function in physical query

    Experts... I have a physical query generated with a condition as: T101123.date1 = T6786678.date2 But, I need that condition to be generated as.. T101123.date1 = CAST(T678878.date2 AS SMALLDATETIME) Any help..this is an emergency issue..

  • How to customize quick query to search with SQL in contain keyword

    I want to build simple query using quick query component. But it will search with SQL equal keyword. How can I customize it to use contain keyword instead. That means, I enter 'sc' to return 'scott'.

  • Computer loses Wifi connection

    Every 15 minutes my computer tells me I am not connected to the internet.  I go to diagnostics and when I select my network the red lights go out , turn green and say my connection is working.  This happens over and over. My son has a pc that does no

  • PL/SQL: numeric or value error: number precision too large

    hi , i am running my script and getting this error. i created a object and and make table type on this with fraction of number(2,2). and in my script i am calling a standard API which have hour in number only .i am also using a custome table also whi