Posts

filtering the SelectOncChoice in backing bean

In many times, when BC4J layer is not there in picture, we may need to filter the  values coming in the selectOneChoice in the bean. for this First we need to fill the first we need fill the values in the selecteItems from the bean            <f:selectItems value="#{BackingBean.subSelectItems}" id="si1"/> // this method will fill values in the list     public List<SelectItem> getSubSelectItem() {             // Collection to display              List<SelectItem> selectItems = new ArrayList<SelectItem>();                // Iterator on which list is based.         DCIteratorBinding listIterator =(DCIteratorBinding)ADFUtils.findIterator("ListIteratorInBindings"); ...

Some simple issues with SOA.

While working with the database adapter, we came across with some strange issue, Problem was our table which we was using to select the record using the database adapter was not not having any primary key and the key which we was we have selected was not unique. Now we faced the problem that the number of records was coming correct but adapter some how repeating the first record. Tried a number of things but till we declare the primary key to a unique column it was not corrected. =================================================================

SOA Basic - How to turn on debugger mode.

Image
I am trying to write some very basic features or options available for the SOA on weblogic server. These options are yet quite small but can provide a lot of help while debugging our composite. I will take on some simple composite after it. There is a option available with the SOA em console, you can change the mode of the server running to the development and ask the server to collect the state of the composite.  Its a small option but yet very helpfull while developing the SOA artifacts. Once your weblogic with SOA support is installed, go to the enterprise manager http://<Host:Port>/em/ enter the user name and password as weblogic/weblogic1 if not changed, these are usually the password you give during the weblogic domain creation. Then click on soa-infra, in my case if you are following my guide line to create the SOA server, it running in one server only.  Once its render click on the Soa Administrator and the go to common properties and click. ...

Simple terms you should know in financials

B2B ------------------------------------- This term is very frequent in the ERP, its refer to the transactions done by one business entity to other business entity. Like a tv manufacturing company is buying chip-set from one company and picture tubes from other company. These all are the example of the B2B transactions. B2C ------------------------------------- This term is less frequent in business world but irony is revenue comes from these transactions only. B2C refers to the transactions done between a legal business unit and customer. Like selling a tv to customer. B2G --------------------------------------------- Its refers to the transactions done between the businsess entity and Government. Simple terms its refers when a business entity do business with the government, or when customer of the business unit is government.  Now question may come B2C and B2G are almost same, yes both are almost same but the way business in these two handles a...

Executing a method bindings In Bean method.

Image
Many time you be in a situation where there is a AM method exposed as a client and requirement is to execute that AM method from the backing bean. Its quite simple first you have to register that AM method in the page definition file as method bindings. Now choose the method you want to add to the page definition and executed by a bean method. for the parameter either you can use the bindings if your parameter clearly coming from bindings else leave them blank. Now in the bean method first you have to catch the handle of the DCBindingContainer and then using this binding container you can get the operation binding for the AM method and then can add the parameter. If you are have already bind the parameter with the bindings then can skip that. then you just need to call the execute method of your operation binding.

Creating rows in parent and child VO connected using a VL

Hi, Today I got stuck with the requirement where I had to display the parent and child in the input mode. My problem was I am having two VOs both are connected to each other using a view link and both are having the id column. This column is a primary key for the Employee table and foreign key for the Description table which in tern also have a id column. so my database schema is like this. EQUITY_USERS Name Null Type ------------------- -------- -------------- USERID NOT NULL NUMBER USER_NAME NOT NULL VARCHAR2(20) FULL_NAME VARCHAR2(20) ACTIVATION_FLAG NOT NULL VARCHAR2(10) DEACTIVATION_REASON VARCHAR2(2000) ADMINUSERID NUMBER LAST_UPDATED_DATE NOT NULL DATE ...

Date Effective property of VO.

Image
Some time we have come to scenarios when the validatity of the row is dependent over a column value of date type. A typical example of this is contractual employees, if the contract date is over we may not be interested these employees for the payrole. ADF provides a property effective date for this use case. Its quite easy to implement and in the VO by just setting a flag we can ignore these rows. For this example we are using default HR schema of the XE database, we will create a new table as the existing table does not solve our purpose. create table CONTRATUAL_EMP as select * from employees; alter table CONTRATUAL_EMP add (CONTRACT_END_DATE DATE); update CONTRATUAL_EMP set CONTRACT_END_DATE = sysdate -10 where mod(employee_id,2) =0; update CONTRATUAL_EMP set CONTRACT_END_DATE = sysdate + 200 where mod(employee_id,2) =1; commit; Now table is ready, We are moving to to project. please download the project from the link . Open this project and then run the page DisplayResult.jpx. No...