Problem with JSC2 field guide "objectListDataProvider" example
Is there any chance that the example objectListDataProvider example (chapter 8.3, page 360) in the Java Studio Creator Field Guide will be updated with the proper instructions?
The example in the book isn't working as the "objectListDataProvider" list property only responds with a boolean value or checkmark.
Thanks
Hi there,
Take a look at this thread
http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=63637
K
Similar Messages
-
Problem with a field set to refresh after insert at Row level
hello all,
i have a problem with a field (a serial) which is set by a db trigger at insertion. The field "refresh after insert" is properly set in the Entity and everything is refreshed correctly when i insert data via an adf form in a jspx but when i want to insert programmatically nothing is refreshed. I insert data this way :
ViewObject insertVO = findViewObject("myView");
Row newRow = insertVO.createRow();
newRow.setAttribute("mandatoryAttribute1",value1);
newRow.setAttribute("mandatoryAttribute2",value2);
<more init here but not the serial since it will be set by the DB trigger>
insertVO.insertRow(newRow);
but when i want to get back the value with "newRow().getAttribute("TheSerial");" i always get a null back and not the value set by the db trigger.
One way to get the serial is to commit after each insert but i don't want to commit between inserts.
i've tried to unset the refresh after insert and override the createDef() method to setUseReturningClause(false) as it's is advised in chapter 26.5 of the ADF 4GL dev. guide but in this case i have an exception JBO-29000: JBO-26041.
How can i get the value back properly ?
thanks
-regardsThe data for the newly created row doesn't get inserted into the database until the commit is executed, so the insert trigger isn't called.
If you need to get the value without committing, then you should implement the trigger programmatically and drop the trigger from the database. The code below shows how you could do this.
ViewObject insertVO = findViewObject("myView");
Row newRow = insertVO.createRow();
SequenceImpl seq = new SequenceImpl("MY_SEQ", insertVO.getDBTransaction());
Long next = (Long)seq.getData();
newRow.setAttribute("primaryAttribute", new Number(next));
...You will need to replace MY_SEQ and primaryAttribute with the correct values for your example, but this should acheive what you want. -
Problem with currency field in smart form
hi
friends ..
i had problem with currency field in smartform iam printing 5 currecny
fields after the main window .But not getting printed on right way gets printed down from the given mesaurement and i get lot of gap betwen the
each fields for ex.
33,260.00
120.00
0.00
0.00
0.00
i thought the the problem is with space .so iwanted to condense it but cannot as it is currency field so move into character fields .but the user want out put in currency format like 22,60.20 if i get the value in char variable i get 2260.20 which i dont want .
so pls help me how to condense or shift left and print the currency field on right place.
regards
answers will be rewarded points.hi,
this is a normal problem u can avoid this by moveing these currencu value to a character field then print the char field us ing condece... &var(C)&..
eve if not solve the problem use the TEMPLATE node..
Please Close this thread.. when u r problem is solved. Reward all Helpful answers
Regards
Naresh Reddy K -
HELLO, I HAVE THE SNOW LEOAPARD 10.6.8, I WOULD LIKE TO UPDATE THE LAST LION. I WOULD LIKE TO KNOW IF THERE ARE PROBLEMS WITH THE SOFTWARE COMPATIBILITY NOW, (EXAMPLES: LOGIC, REASON, SUITE ADOBE CS5 ...) THANK YOU!
Have a look here:
http://applehelpwriter.com/2011/07/24/will-my-old-apps-work-with-lion/
(Like any website owner, I may (or may not) derive compensation from my website) -
Hi,
I'm using ADO (Oracle Provider for OLEDB) to connect Oracle 9. If the type of any field in table is Number(9) and I open query with this field, all negative values are displayed as positive values. For example: If I write -1 value to this field and then post the dataSet (Delphi7 - TADOQuery) value is refreshed to 1. Real value in database is -1.
Could anybody help me with this problem?
Regards Jan.Once again :)
I finally foud out that Deplhi does support (varDecimal), but delphi TCustomADODataSet (ADO recordSet wrapper) component incorrecltly treats such field type. It regards Decimal(<9,0) as integer (TIntegerField) but when it gets value from underlying ADO recordset it expects integer variant. So it's delphi problem. I hat to fix this problem in source code of this component.
Regards Jan. -
Problem with "Using Validators and Converters" example
Hi,
I am doing the Validatoris an Converters tutorial and I can't get it correctly executed.
In step 9, I double click on textField1 and the systems goes to textField1_processValueChange function instead of textField1_valueChangeListener.
I added the code of step 10 as a separate method and after executing it there is no error message. Please help. Thanks,
I wish these examples where a little more of dummies: step 2 toke some time because you don't say "In the properties window". Please look the tutorials with people that does not know anything about the Creator.
Also I wish you had a step by step tutorial with "About Components", "About Message Components", and "About Converters". Just reading , I did not grasp anything, so I prefer to create a project with these tutorials.
Do I need to learn JSF in order to understand and use Creator? It seems as I read the tutoriasl you assume to much. I found that Cay Horstmann's Core JavaServer Faces book is downloadable at http://horstmann.com/corejsf/
Thanks for your input,
Lorenzo JimenezHi,
You may find our book, Java Studio Creator Field Guide, helpful for a more gentle introduction to Creator and JSF components. We don't assume that you know JSF or even Java. We also have step-by-step instructions for building projects.
Here's the link to our website:
www.asgteach.com
(You can download Chapter 2, which is the basic introduction to Creator.)
Hope that helps.
Gail and Paul Anderson -
Outlook 2003 & NOKIA 6630 problem with some fields...
Dear All,
I'm having a wierd problem, I do the PC SYNC between my NOKIA 6630 and the outlook 2003, everything is working fine except for some numbers under certain names.
I realized that the number that do not go from the phone to the outlook are the ones with a field in the mobile, where this field s not available on the outlook,
For Example:
First Name:John
Last Name:fdfdf
Mobile:01010101010
Mobile (home):93848484
Tel(home) :49834574
The outlook will take all info except the Mobile(home) firled as it is not available in the outlook.
Does anybody know how to fix this problem?The only way is not to use double mobile numbers in phone because Outlook has the limitation that it thinks that a person can only have one mobile number.
It is about trial and error, use the default fields in Outlook and check that those sync to phone and then use only those fields inphone if you add a contact to phone. -
Problem with Date fields in Search panel
Hi all,
I use TP2 and in my jspx page I have a search panel with two date fields and table where the results is displayed. But there is a problem with these date fields, because when I search dates the results is nothing even I retype the date from table. Also I have other pages where this problem exist with same structure.
Could somebody help me with some advice?
Thanks in advance!Hi Frank,
Thanks for the answer.
I use the standart method to make search panel with drag and drop the data control to the page. The other search panel fileds work fine, only the date fileds are problem. Maybe something in view object doesn't work properly.
Here I post the code from my page.
<table border="1" style="margin:5px;">
<tr>
<td>
<af:showDetailHeader text="ТЪРСЕНЕ" disclosed="true"
inlineStyle="width:780px;">
<table cellspacing="2" cellpadding="3" border="0">
<tr align="left">
<td align="right">
<af:outputLabel value="#{bindings.EGN.hints.label}"/>
</td>
<td align="left">
<af:inputText value="#{bindings.EGN.inputValue}"
label="#{bindings.EGN.hints.label}"
columns="#{bindings.EGN.hints.displayWidth}"
maximumLength="#{bindings.EGN.hints.precision}"
simple="true"/>
</td>
<td align="right">
<af:outputLabel value="#{bindings.LNC.hints.label}"/>
</td>
<td align="left">
<af:inputText value="#{bindings.LNC.inputValue}"
label="#{bindings.LNC.hints.label}"
columns="#{bindings.LNC.hints.displayWidth}"
maximumLength="#{bindings.LNC.hints.precision}"
simple="true"/>
</td>
<td align="right">
<af:outputLabel value="#{bindings.AccPersonID.hints.label}"/>
</td>
<td align="left">
<af:inputText value="#{bindings.AccPersonID.inputValue}"
label="#{bindings.AccPersonID.hints.label}"
columns="#{bindings.AccPersonID.hints.displayWidth}"
maximumLength="#{bindings.AccPersonID.hints.precision}"
simple="true"/>
</td>
</tr>
<tr align="left">
<td align="right">
<af:outputLabel value="#{bindings.PersonName.hints.label}"/>
</td>
<td align="left" colspan="5">
<af:inputText value="#{bindings.PersonName.inputValue}"
label="#{bindings.PersonName.hints.label}"
columns="#{bindings.PersonName.hints.displayWidth}"
maximumLength="#{bindings.PersonName.hints.precision}"
simple="true"/>
</td>
</tr>
<tr align="left">
<td align="right">
<af:outputLabel value="#{bindings.DateFrom.hints.label}"/>
</td>
<td align="left">
<af:inputDate value="#{bindings.DateFrom.inputValue}"
label="#{bindings.DateFrom.hints.label}"
simple="true">
<af:convertDateTime pattern="#{bindings.DateFrom.format}"/>
</af:inputDate>
</td>
<td align="right">
<af:outputLabel value="#{bindings.DateTo.hints.label}"/>
</td>
<td align="left">
<af:inputDate value="#{bindings.DateTo.inputValue}"
label="#{bindings.DateTo.hints.label}"
simple="true">
<af:convertDateTime pattern="#{bindings.DateTo.format}"/>
</af:inputDate>
</td>
</tr>
<tr>
<td align="right">
<af:commandButton actionListener="{bindings.Execute.execute}"
text="#{bundle.FindBtn_LABEL}"
disabled="#{!bindings.Execute.enabled}"
icon="/images/find.png"/>
</td>
<td align="left">
<af:commandButton text="#{bundle.FindClearBtn_LABEL}"
icon="/images/find_clear.png"
action="#{PeopleBean.onClearVCBtn}"/>
</td>
</tr>
</table>
</af:showDetailHeader>
</td>
</tr>
</table>
Also I have a result table for the search panel, but I don't believe the problem can be there because it works fine when I search in fields different by inputDate.
Do you have any suggestions? -
Hi,
I have a problem with a date-field. Maybe I must describe the problem more detailled, but first I just want to ask you, if you know the following error-message: "21.10.2010 kommt nicht in der Menge der erlaubten Werte vor". I don't know the correct translation but it must be something like this: "21.10.2010 does not occur in the quantity of the permitted values". I don't find the position in the sourcecode of this message. And I know, that this message isn't thrown by a functionblock from SAP. So what is the describtion of this message?Yes I have a date field in my form. Ok I must describe it more detailled. I have an employee searchfield. After select an employee you see a form. After filling the form you click on "Send". It creates a ticket and sends the data to the Backend and jumps back to the employee search field. Untill this point everything works fine. There is no problem with the datefield. Now I want to create the form. I choose an employee and fill the form. But now it comes this message. But not after clicking the "send" button. The message comes after changing some data (e.g. change a radio button). So it looks like a validationproblem, but only at the second creationprocess. Maybe the first date is in some cache? I don't know...
-
Smartform: Formatting Problem with QUAN-Field
I want to print a smartform and get exception 1 (formatting error). With function SSF_READ_ERRORS I get an error table. There is on entry: errnumber = 020011, msgid = SSFCOMPOSER, msgty = E, msgno = 601, msgv1 = wa_outtab-menge.
It seems to be a formatting problem with field WA_OUTTAB-MENGE. But in the structure this field is referenced correctly.
Does anybody know a solution?I solve this kind of problem in my SmartForm.
Try this:
Go to "Global Definitions" Node, then "Current/Quant.Fields" tab and set these values:
Field Name: WA_OUTTAB-MENGE
Reference Field: WA_OUTTAB-MEINS
Data Type: QUAN
Best Regards,
Eduardo Ribeiro. -
Problem with decimal fields using BADI For PD Infotypes
Hi,
I'm implementing BADI HRBAS00INFTY.
For reading the fields of infotype , I'm using the substring
of the field NEW_INNNN-VDATA .
I have a problem with fields of type DEC.
In field NEW_INNNN-VDATA it looks like this : '####'
I believe that the possible reason for this is conversion from DEC to CHAR
But I don't know how to fix it.
Thank you .
Message was edited by: Alon LozinskyHi Alon,
We had same issue. Use following code.
data: hri1011_str type hri1011.
move new_innnn-vdata to hri1011_str.
HRI1011_STR fields will have decimal values.
Let me know if you still have any issues. If solution works, kindly do Point Recognition.
-Bharat -
Problem with number-fields in csv-Export-Files
Hello,
the export with the csv option works fine and our users like this export-function.
But Unfortunatelly we have some problems with the exported number fields. In my region I defined the field with a format mask.
On the screen it looks fine but when I change to csv the values are exported as text-values.
So in excel the columns are shown with left alignment.
When I try to change the format in excel to number, excel change the column type but not the value inside.
On this account we cannot use the sum-function and the display of the value is wrong (alignment).
Which possibilities do I have to resolve that problem?
Thanks in advance
UlrikeI have the same issue - Anyone any ideas on how to export currency values in a report to excel as numbers?
-
Problems with reference field in material type
Hi,
I have problem with field reference in material type creation.
When I define a self-defined field reference ZERS (copy of standard field reference HERS) for a own defined material type ZERS (copy of material type HERS), I get the following error message:
Field reference ZERS has not been set up
Message no. CZ127
Diagnosis
You have specified a field reference that has not been set up.
Procedure
Set up the new field reference or use an already existing field reference.
I do not understand why because the entry ZERS is present in table T130A.
Here is the IMG config I have made:
1. Logistics general->Material Master->Field selection->Maintain field selection for Data Screens (here I made copy of field reference HERS and named it ZERS)
2. Logistics general->Material Master->Basic Settings->Material types->Define attributes of Material types (here I made a copy of material type HERS and named it ZERS. I then tried to set the field T134-FLREF "Field reference" to ZERS, but then the error message appears)
Does anyone know what config I am missing?
Or any reason why the error message CZ127 is coming up?
ThanksMust have been system error, I deleted all entries and did it all over again, it worked.
-
Problem with Hiding fields of selection screen which is called as subscreen
Hello All,
I have problem while hiding the selection screen which is called as subscreen.
Flow of my logic:
Selection-screen with one field and three buttons CREATE,DISPLAY and CHANGE in application toolbar.
user enter some value in field and either he press change or dispaly
When change i need to call selection screen when it is in dispaly i need to stop calling this selection screen.
Upto my knowledge we can't stop calling selection screen in display mode so there is only one possibility is hiding the fields when it is in display mode.
How can i hide the fields and where i need to hide fields?
Please post some codes.
Regards,
Lisayou can refer the sample code which i mentioned in your previous post. that will solve the problem.
-
Modifying the Ad-hoc Query Infoset : problem with P9105 fields.
Hi all,
Am having problem with Infoset of Ad-hoc Query .
i need to add the Critical role Field Group to ZHR_PA_01 Infoset of Satandard Area.
for this i have imported that Infotype 9105 and included the following standard fields by drag and drop.
1. Role Category
2. Role SubCategory
3. Global Identifier
4. Personnel Number
and then Saved and Generated the infoset succesfully.(No syntax errors)
But
While testing, using the T-Code: S_PH0_48000510
if i select one of these above fields for the report,
Am getting the message that "Error when generating the report".
Error Description:The report cannot be generated because the internal description is invalid or incomplete.
means what may be the problem.?
if i select other fields its working fine.
can any body explain me clearly..??
Regars,
Kalam A.Hi Manoj,
yes, i have saved the T-code.and generated the Infoset Succesfully.
and its showing the those additional fields while testing.
for remaining fields its working fine.
but am not getting wats problem with the four fields of P9105 infotype.
could you please suggest me.?
Regards,
Kalam A.
Maybe you are looking for
-
Anyone interested in a e against Creative for the issues with the X-FI and the clicking / popping issue that hasn't been resolved that they blame on motherboard manufactures, please drop me an e-mail. I'm going to start working on getting this notice
-
Configuring BO Mobile with external access
Hi Experts, I am trying to configure Business Objects Mobile in my company server (windows 2008) with an external access to it. I have two servers - master and client (hyper V). I installed BOBJI 4.0 server and BOXI client on master server and planni
-
HI I am using strategy 40 as my client want make to order as well as make to stock strategy. Rather they need to have sales order consideration in planning along with PIR. While taking MRP run using sales order refference. System is showing message t
-
Sometimes, when working on an Illustrator document the handles of (all) objects disappear. Neither clicking with the select- nor the direct selection tool will show handles. Rebooting doesn't solve the problem. It seems to be some kind of setting tha
-
POSDM / TLOG Documentation
Hi All , I am looking for some documentation on POSDM customizing settings and also how the BADI implementations are handled . Also if you could point me to any link on how to plan and design the mapping requirements . The setup I am working on is Ex