How to do readyonly field depending on some condition.
Dear All,
One seeded page in iProc having Table Region. That Table region having Item, Item Description, Quantity, Price, Amount etc....
I need to do Quantity field as readonly for some Items only..
Is it possible to do, if it is possible pls suggest how to do it..
Thanks in Advance,
Hanimi.
1. Extend the underlying VO
2. Create a transient attribute in the VO and set the value to true/false depending on yoru condition
3. Use spel on the item(using personalization) to enable/disable the item based on the VO Attribute created.
Refer to: http://oracle.anilpassi.com/spel-in-oa-framework-with-audio-visual-demo.html
Similar Messages
-
Plot different data set depending of some conditions using labview and veristand
Hi Community,
i have a couple of points saved as XY data points on my desktop. The files are save as csv. the idea is to read the file utilizing the Read From Spreadsheet File vi when some conditions are met and then plot the XY data wiht XY Graph Addon of the veristand workspace.
for instance:
if case 1 is true read the corresponding file and then plot the first set of data
if case 2 is true read the corresponding file and then plot the second set of data
if case n is true read the corresponding file and then plot the n set of data.
Could you give some advices how to implement it (Labview and Veristand)?
I'm using LV and NIVS 2012
Thx
Mich
Attachments:
vide.vi 35 KBHi Michel,
I believe the easiest method will be to use the VeriStand .NET API to call into VeriStand and utilize LabVIEW for creating the decision making cases that you have. I have attached some examples of using the VeriStand API in LabVIEW.
Using the NI VeriStand .NET API in LabVIEW to Control a VeriStand System
https://decibel.ni.com/content/docs/DOC-32268
Where Can I Find LabVIEW Examples Using the NI VeriStand API?
http://digital.ni.com/public.nsf/allkb/E1066949FA67B6CE862578A7005988D5?OpenDocument
Please let me know if this helps.
Matt S.
Industrial Communications Product Support Engineer
National Instruments -
Hi,
I have an requirement on Iprocurement page where in i have to populate task field as CAPL in case my project field contains the project which is of type 'Capital Project Type'.
Please suggest how can we implement this.
Thanks,
Abhishektry these links:
http://sharepoint.stackexchange.com/questions/103682/autopopulate-form-fields-based-on-selection-in-people-picker-column-using-javasc
http://sharepoint.stackexchange.com/questions/80261/people-picker-not-getting-populated-in-the-sharepoint-site
http://blogs.technet.com/b/anneste/archive/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010.aspx -
How to make one field dependent on another
Hi All,
I have 2 fields say FieldA and FieldB which is dependent on FieldA.
The logic is If FieldA is NULL then FieldB should be NULL
If FieldA is not NULL then FieldB should be not NULL.
I have written the following code in the WHEN-VALIDATE-ITEM trigger of FieldA
if :BLOCK_NAME.FieldA is not null then
set_item_property('BLOCK_NAME.FieldB', REQUIRED, PROPERTY_TRUE);
end if;
This makes the FieldB mandatory (color changes to yellow) when I tab out of FieldA, but if I save the record without any value for FieldB, it gets saved without any errors.
Any help is appreciated.
EBS version 12.1.3 DB version 11.2.0.2 and Forms10gsreedevi wrote:
Hi All,
I have 2 fields say FieldA and FieldB which is dependent on FieldA.
The logic is If FieldA is NULL then FieldB should be NULL
If FieldA is not NULL then FieldB should be not NULL.
I have written the following code in the WHEN-VALIDATE-ITEM trigger of FieldA
if :BLOCK_NAME.FieldA is not null then
set_item_property('BLOCK_NAME.FieldB', REQUIRED, PROPERTY_TRUE);
end if;
This makes the FieldB mandatory (color changes to yellow) when I tab out of FieldA, but if I save the record without any value for FieldB, it gets saved without any errors.
Any help is appreciated.your code is ok for the setting required but if cursor didn't move to FieldB, it will not say anything.
You can try this...
change form property
Defer Required Enforcement=YesHope it will enforce form to enter FieldB.
Can do another thing, Create form level trigger Pre-Commit and write down code for checking value of FieldA and FieldB and raise form trigger failure.
Hope this helps -
How to sent notification to a user depending on some condition?
Hi All,
I am working in iRecruitment Recruiter responsibility->iRecruitment Recruiter->Candidate
I have an requirement that for a particular applicant if HR is taking Interview and he forgot to add feedback.Then a notification has been sent to him after a day.
How to do it by workflow and Alert?
Please Help.
Thanks In Advance.
Edited by: SHD on Jan 20, 2011 10:48 PMPerhaps you'll find this link useful. It gives a general idea of how you can create and adjust your custom renderer:
http://www.senun.com/Left/Programming/Java_old/Examples_swing/JTableExamples4.html
Hope it helps.
Eugene -
To hide a button in a column field depending on the condition in ALV
Hai,
I have a column in ALV with buttons.I need to make that button Visible or invisible based on a condition.
i have fiels with value x and blank.
if the value is x i need to make the button visible and viceversa.
Cheers,
Madhu.Hi,
I assume when you say that you have a field with value X or blank that you have a internal table with one of the field as mentioned above and also a context node with
the same structure of the internal table so that you bind the internal table to the node
and display the same in ALV.
If my assumptions are right you must proceed as follows.
1.Create an internal table with the same structure that u had passed for ALV.Add one more column to that table with type wdui_visibility.
2.Create one more node with the structure of the internal table created above.
3.Move the coresssponding data from your old internal table to the new internal table.
4.For the new column of type wdui_visibility fill values by comparing the field with value X or blank.ie. IF value = X wdui_visibility_column-value = '02' .
IF value = blank wdui_visibility_column-value = '01' .
5.Save the changes in the new internal table.
6.Bind the new internal table to the new node.
7.Use the new node to display data in ALV.
8.Create an attribute "alv_table" of type "CL_SALV_WD_CONFIG_TABLE" in the view.
9.In the wd_init method add the following codes.
* create an instance of ALV component
DATA:
lr_salv_wd_table_usage TYPE REF TO if_wd_component_usage.
* get ALV component
DATA:
lr_salv_wd_table TYPE REF TO iwci_salv_wd_table.
* set cell editor for input fields (~make colum Wt editable)
DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings,
lr_column type ref to CL_SALV_WD_COLUMN,
lr_column_hdr type ref to CL_SALV_WD_COLUMN_HEADER,
lr_button_1 TYPE REF TO cl_salv_wd_uie_button.
lr_salv_wd_table_usage = wd_this->wd_cpuse_<Alv component usage name>( ).
IF lr_salv_wd_table_usage->has_active_component( ) IS INITIAL.
lr_salv_wd_table_usage->create_component( ).
ENDIF.
lr_salv_wd_table = wd_this->wd_cpifc_<Alv component usage name>( ).
wd_this->alv_table = lr_salv_wd_table->get_model( ).
lr_column_settings ?= wd_this->alv_table.
lr_column = lr_column_settings->get_column( '<column name which you want to show
as button>' ).
CREATE OBJECT lr_button_1.
lr_button_1->set_text( '<some releavnt text>' ).
lr_button_1->SET_VISIBLE_FIELDNAME('<new column name of type
wdui_visibility>').
lr_column->set_cell_editor( lr_button_1).
Hope this helps.
Thanks,
G.Jayaprakash -
Enable/disable zoom depending on some conditions
Hi All,
I am trying to enable zoom functionality by modifying the custom.pll.
Click on zoom will take to a new form which has 2 fields carried over from the calling form.
Now the requirement is "Only if there is a record in the called form the zoom should be enabled."
I have added the following code in the custom.pll
form_name varchar2(30) := name_in('system.current_form');
block_name varchar2(30) := name_in('system.cursor_block');
blk_status varchar2(10) := NULL;
begin
if (form_name = 'FNDPOMPO' and block_name = 'PROFILE_OPTIONS') then
message('Inside If');
blk_status := get_block_property(block_name, STATUS);
message('Block status is ' || blk_status);
if blk_status != 'NEW' then
return TRUE;
else
return FALSE;
end if;
end if;
end zoom_available;
But I see the message "Inside If" and "Block status is NEW"
When the form is opened, but when i query for the records, these are not displayed again.
I tried adding the logic to the Event procedure in custom.pll.
In the event function, if the event is zoom and the parameters to be passed to the new form are NULL...
then a message is displayed on click of the zoom.
But the zoom will still be enabled.
How to disable the zoom itself when the parameters have no values?
Please let me know how to get this done.First and foremost, the Zoom functionality is a feature of the Oracle Enterprise Business Suite (EBS) not a feature of Oracle Forms. Please post your question in the General EBS Discussion forum. If you have a general Forms question, by all means, ask it here! ;-)
Craig... -
Dynamic Action - How to enable text field based on a condition
Hi,
I have two text items. Need to create dynamic action for the following,
1. Order_type - Drop down values having CONSUMER & WHOLESALE.
2. Order_number- Text field
Order number should be disabled and only on selection of order type ,order number should be enabled.
Can someone please help me on this?Hi Gayathri,
Gayathri Venugopal wrote:
Hi,
I have two text items. Need to create dynamic action for the following,
1. Order_type - Drop down values having CONSUMER & WHOLESALE.
2. Order_number- Text field
Order number should be disabled and only on selection of order type ,order number should be enabled.
Can someone please help me on this?
Create two dynamic action
1. Make it order number item disable on page load.
Event : Page Load
Action : Disable
Fire When event result is : True
Selection Type : Item
Item : Your order number item
2 . enable and disable order number on selection of order type(assuming when order type is null it is disable otherwise it is enable)
Event : Change
Selection type : item
Item : your order type item
condition : is not null
True Action
Action : Enable
Fire When event result is : True
Fire on page load : True
Selection Type : Item
Item : Your order number item
False Action
Action : Disable
Fire When event result is : False
Fire on page load : True
Selection Type : Item
Item : Your order number item
Hope this helps you,
Regards,
Jitendra -
Processing raw data in different ways depending on some condition
Hi,
I am receiving a raw data stream through a UDP port. The values contained in the raw data are all stored in 32 bits but are of different formats i.e I have 16 bit signed integer, 32 bit signed integer, 8 bit unsigned integer and 32 bit single precision floating point number. I have a spreadsheet which tells me the measured parameter, the data type and the address of the parameter within the stream (ie parameter 1 is address 1 and is the 1st 32 bits, parameter 2 is address 2 and is the following 32 bits, and so on...) I need to use the "data type" column from the spreadhseet as a condition to a case structure which will then display the 32 bits of data in the correct format. Ideally I want my output to be an array of numbers under each Parameter (or address) so I can save to a TDMS file. I have an idea of how to do this part but I am struggling to link the 'data type' condition and case stucture successfuly. Any ideas or pointer would be greatly appreciated. I have attached my VI so far...
Attachments:
UDP_Case_Struct.vi 24 KBTGL wrote:
At the moment the input to the case structure is an array of data types. Is this maybe causing a problem as a single data type is not being fed into the selector terminal?
You are indexing out a 2D array, thus you need to wire both indices to get a scalar element suitable to be wired to the case structure. If you leave one index unwired, you get an entire row or column respectively.
How often does the file change? If it is always the same, it would be sufficient to read it once before the loop.
LabVIEW Champion . Do more with less code and in less time . -
How to hide the buttons based on some conditions
Dear all
Good morning
i have three pages
when ever user directly go to third page i want to hide the button "backtofirstpage"//button name
when user go to third page via first page i mean first page i want to visible the button "backtofirstpage"/button name
what is the procedure
at least hiding is not posible at least disable/enable
Regards
SreekanthHi,
In the if condtion read the value of parameter [[You need to send it from first page]] and get it in process Request Method of controller of third Page and based upon it set the render property of that button & in the else condition set the render property to false.
You need to create a PVO & also create a Boolean attribute.
Set the render property in Property window like ${oa.xxPVO1.setRender} -- ${oa.viewInstanceName.viewAttributeName}.
Read more in dev guide & search through the forums.
Thanks
--Anil -
REG: How to add new fields to existing Infospoke
Hi All,
We have an existing Infospoke, It has ODS as a Source and some fields are being pulled.
But here is the scenario....
I need some extra fields that are available in other ODS. How to add that fields ?
By some research came to know that.. I need to lookup on the ODS and populate into existing Infospoke.How to add these fields to InfoSpoke using BAdi implementaion.
Note: already BAdi is active in the infospoke.
Please help me in this regardHi Chase,
As you mentioned that BADI is already implemented then I guess you should be able to extend the existing BADI itself.
For doing lookup first you should know the key fields of source DSO then by using the existing field of Infospoke you will have to read data from DSO.
DATA: it_data type standard table of 'DSO Name'.
select Key1 key2 etc...
Field1 Field2 Field3 Field4
from DSO
into table it_data
for all entries of infospoke
where key1 = infospoke1-key1
key2 = infospoke2-key2.
This will give you all the required records from source DSO into internal table it_data. Now you using this table you can populate the original table of Infospoke.
Regards,
Durgesh. -
How to disable view buttons on some condition-webdynpro abap
Hi ALL,
i have a two buttons in my view ......initially one button must be enable,depending on some condition i want to disable one button on the same view .........in which i am displaying my alv data ........(in the same view).check the properties with property name Visible.
Take one attribute with name as visibile and Type ( WDUI_VISIBILITY-Data Type for "visible" Properties)
then bind this attribute with property visible.
then in run time according to the condition pass value '01'-for no visibility and '02' for visible.
Hope this helps you.
Regards,
sarath -
Display an exception based on some condition
HI..
how to run a exception based on some condition i.e
i want to highlight the sales(key figure) which r less than the average sales..
where sales and average sales r keyfigures...Hi!
welcome to SDN.
create a calculated key figure which will be 1 if the sales is less then the average sales.
create exception based on this calculated key figure.
with regard
ashwin
<i>PS n: Assigning point to the helpful answers is the way of saying thanks in SDN. you can assign points by clicking on the appropriate radio button displayed next to the answers for your question. yellow for 2, green for 6 points(2)and blue for 10 points and to close the question and marked as problem solved. closing the threads which has a solution will help the members to deal with open issues with out wasting time on problems which has a solution and also to the people who encounter the same porblem in future. This is just to give you information as you are a new user.</i> -
How can I modify one column of current and next record depending of some criteria?
Having DDL
CREATE TABLE #ServiceChange(
[ID] [int] identity(1,1),
[SHCOMP] [char](2) NOT NULL,
[SHCRTD] [numeric](8, 0) NOT NULL,
[SHCUST] [numeric](7, 0) NOT NULL,
[SHDESC] [char](35) NOT NULL,
[SHTYPE] [char](1) NOT NULL,
[SHAMT] [numeric](9, 2) NOT NULL,
[CBLNAM] [char](30) NOT NULL,
[GROUPID] [char](2) NULL
And original and desire data in below link
https://www.dropbox.com/sh/bpapxquaae9aa13/AADnan31ZASublDjN7sa2Vvza
I would like to know how can I modify one column of current and next record depending of some criteria using SQL2012?
The criteria is:
Type should always flow F->T
if current abs(amount)> next abs(amount) then groupid = 'PD'
if current abs(amount)< next abs(amount) then groupid = 'PI'
there is no case when those amounts will be equals
where current(custid) = next(custid) and current(service) = next(service) and groupid is null
Any help will be really apreciated.
Thank youI tried that and got this error
'LAG' is not a recognized built-in function name.
You said you were using SQL 2012, but apparently you are not. The LAG function was added in SQL 2012. This solution works on SQL 2005 and SQL 2008:
; WITH numbering AS (
SELECT groupid,
rowno = row_number() OVER (PARTITION BY custid, service ORDER BY date, id)
FROM #ServiceChange
), CTE AS (
SELECT a.groupid,
CASE WHEN abs(a.amount) < abs(b.amount) THEN 'PD'
WHEN abs(a.amount) > abs(b.amount) THEN 'PI'
END AS newgroupid
FROM numbering a
JOIN numbering b ON b.custid = a.custid
AND b.service = a.service
AND b.rowno = a.rowno - 1
UPDATE CTE
SET groupid = newgroupid
Erland Sommarskog, SQL Server MVP, [email protected] -
How do I make multiple fields dependent on a checkbox?
I've got about 10 fields in an adobe form that I want to appear and be accessible if a checkbox is checked. If the checkbox isn't checked, then I don't want them accessible or visible. Is this possible?
Sure it is. The code can be made much simpler if you use hierarchical naming for the fields. For example, suppose all of the fields that you want to show/hide have a prefix of "group1.", (e.g., group1.name, group1.address, group1.state, etc.), then you can use the following code in the Mouse Up event of the check box:
// Get the value of this check box
var v = event.target.value;
// Show/Hide the group1 fields depending on the value of this check box
getField("group1").display = v === "Off" ? display.hidden : display.visible
It's often a good idea to reset the fields whenever they are hidden or shown, especially if the form data will be exported, so that the form data is consistent with the state of the form. If you want to do this, you could add this line to the beginning of the script:
// Reset the group1 fields
resetForm(["group1"]);
If you don't use such a naming system, the second line of code would have to be repeated for every field in the group, using the indivudual field names of course, and the resetForm statement would have to include multiple array elements for the names of the individual fields.
Maybe you are looking for
-
Can't install Flex Builder 2 plugin in Eclipse 3.3/Europa
[I hope Adobe reads these forums. I tried to submit this as a customer service request, but the customer service request form kept telling my I had to enter my First Name, Last Name, and Email address, even though I _had_ entered them!] I can't seem
-
Re: insert statement runs twice in place of once
I am using a insert statement.The insert statement picks a variable from the form and inserts it into the database I have no loops in the page the code is : <cfif isdefined("Form.Category")> <cfquery name="InsertCat" datasource="ShoppingCart"> Insert
-
Unable to open a document keeps on asking for adobe flashplayer
I'm logged on to a site where I need to open documents and its asking to download a flashplayer.
-
Custom Component Creates Unicode Files instead of UTF-8
We have a custom component running in our SAP Enterprise Portal. The component creates a XML Outputfile encoded in UTF-8 since we force the component to so so. In the environment we're using right now, the output is in Unicode, which is obviously wro
-
After a while, WRT54G won't allow me into web interface anymore.
I can get into the web interface shortly after powering on the router. But after several hours, or days, I no longer can access it. The internet and network continue to work, I just can't access the settings page (I get something like "page cannot be