HCM Form Dynamic UI Control change
Hi,
I need a solution on the dynamic UI control change in Adobe form, I am populating the backbend values in the dropdown, but the requirement is if i get only one value in the dropdown i need to show that in textfield It means that i need to change the dropdown control to textfield control based on the single value condition dynamic
Let me know if any one have solution on this.
Thanks
Nag
Hi
Var count = list of items in the DDL
Var DDl = xfa.form.data.DDL (position of DDL in the form)
Var textfield = xfa.form.data.textfield (position of textfield in teh form)
if (count<1){
ddl.presence = visible;
textfield.presence = hidden;
}else{
ddl.presence = hidden;
textfield.presence = visible;
Similar Messages
-
HCM Forms - Dynamic change to field attribute - edit/nonedit
Hi,
I have a scenario wherein 'A' field will be editable to user 1 and 'B' field will be non editable. Then he sends the form. When the 2 user opens the form 'A' field should be non editable and 'B' field should be editable.
I have created 2 steps for the same. Step C and step D.
I have kept the field attribute of both A & B as 'Automatic'.
in step C i am using both the fields while in step D i have not assigned the field A but kept it as relevant and assigned the field B.
But still in runtime both the fields are showing as editable in both the steps.
What am i missing.?
Thanks,
Nikhilreplied to your other thread on same/similar issue.
-
Xml form HTML Editor control change.
Hi,
Is it possible to change External weblink control property of HTML Editor used in xml form builder.?
As of now this control gives 2 options to provide external weblink (1.Open in active window ,2.open in new window).I want to add open in same window as top.
Can anyone give some useful information ?
Thanks and Regards,
Jack.
Note: Points will be awarded for useful answers.Hi jack men,
If you are still interested in a solution to your problem...
We just hit upon the same problem. I found out that XMLForms reference htmledit4.js in their <XMLForm-Name>Edit.xsl, so you have to adapt that one.
I saved htmledit4.js and renamed it to htmledit5.js so that I can change the HTMLEditor settings only for my XMLForm (and not for e.g. SAPNewsForm).
I changed the entry in my XML-Form Editor settings XSL to reference the new JavaScript file:
[code]<xsl:value-of select="$xmlformsroot"/>/htmledit/htmledit5.js</xsl:if>[/code]
Then I copied the method body of htmledit3.js (the standard htmleditor JavaScript file) to htmledit5.js and adapted it to just show the two tragets of <i>self</i> and <i>top</i>.
The method to display link properties is: <b>htmlb_hed_makeWebLinkDialog</b>
Find this method in both files. Then find in htmledit3.js the beginning of the target window selection-box:
[code]sSizerHtml += "<SELECT id=htmlb_hed_link_launch_mode class=\"urDdlWhlSml\">";[/code]
the following lines of code determine the selectable values.
You will notice that htmledit4.js misses a few entries. Just copy all or the ones you need.
For your convenience I show my code here:
[code] sSizerHtml += "<td>";
sSizerHtml += "<span style=\"font-size:1em;\">";
sSizerHtml += "<SELECT id=htmlb_hed_link_launch_mode class=\"urDdlWhlSml\">";
//-- target=_blank
sSizerHtml += "<OPTION value=\"_blank\" ";
if(modOpenMode==1) sSizerHtml += "selected";
sSizerHtml += ">";
sSizerHtml += txtMap["TXT_HTMLB_HED_BLANK"];
sSizerHtml += "</OPTION>";
//-- target=_parent --
sSizerHtml += "<OPTION value=\"_parent\" ";
if(modOpenMode==2) sSizerHtml += "selected";
sSizerHtml += ">";
sSizerHtml += txtMap["TXT_HTMLB_HED_PARENT"];
sSizerHtml += "</OPTION>";
//-- target=_search--
sSizerHtml += "<OPTION value=\"_search\" ";
if(modOpenMode==3) sSizerHtml += "selected";
sSizerHtml += ">";
sSizerHtml += txtMap["TXT_HTMLB_HED_SEARCH"];
sSizerHtml += "</OPTION>";
//--target=_self
sSizerHtml += "<OPTION value=\"_self\" ";
if(modOpenMode==4) sSizerHtml += "selected";
sSizerHtml += ">";
sSizerHtml += txtMap["TXT_HTMLB_HED_SELF"];
sSizerHtml += "</OPTION>";
//-- target=_top
sSizerHtml += "<OPTION value=\"_top\" ";
if(modOpenMode==5) sSizerHtml += "selected";
sSizerHtml += ">";
sSizerHtml += txtMap["TXT_HTMLB_HED_TOP"];
sSizerHtml += "</OPTION></SELECT></span>";
sSizerHtml += "</td>";
sSizerHtml += "</tr>";[/code]
I didn't check yet if a new generation of the XMLForms Project in the XMLFormsBuilder overwrites the changes in the XMLFormsEdit.xsl, however I guess so. A better way would be to adjust the JavaScript reference in some other configuration file that I haven't found yet, until then just adapt the XSL everytime...
If Carsten Buechert contacted you regarding the exchange of the whole control, I would be interested myself as well.
Cheers
Kilian -
Attachment Buttons not coming in Task TS17900101 of HCM Forms and Process
Hi ,
We are using HCM Forms and process for changing employee organization unit which is linked with workflow for approvals.
In this workflow we are calling standard task TS17900101 .Till now every thing is working fine but the problem is with attachments as their is a requirement to show attachments button with this Approve and Reject Task. But as per my knowledge SAP has not given any option to attach documents with this task which is however only possibe through TS17900100.
So can u suggest any way to attach documents with Approve and Reject Task which is TS17900101.
Thanks,
RahulHi,
i have the same problem and no idea how to solve it.
Please let me know, what enhancing module pool code helped you
Thanks,
Galina -
Dynamic Action On change tabular form question
Hi guys!
I've wanted to add dynamic action on change (tabular form) to execute PL/SQL which checks if column of the tabular form has changed and if yes it changes walue of text field to Y or N. It doesnt work...and I don't know why. If I create validation with this PL/SQL it works. Can you help?
DA:
On change - Tabular Form
PL/SQL;
DECLARE
nazwa VARCHAR2(4000);
counter NUMBER := 0;
BEGIN
FOR i IN 1 .. apex_application.g_f08.COUNT
LOOP
SELECT NAZWISKO INTO nazwa FROM SPR_META.M_UZYTKOWNICY WHERE NAZWA_UZYTKOWNIKA = apex_application.g_f02(i);
IF wwv_flow_item.md5(nazwa) <> wwv_flow_item.md5(apex_application.g_f08(i)) THEN
counter := counter + 1;
END IF;
END LOOP;
IF counter > 0 THEN
:P5_IS_TABULAR_FORM_CHANGED := 'Y';
ELSE
:P5_IS_TABULAR_FORM_CHANGED := 'N';
END IF;
END;Page items to submit: P5_IS_TABULAR_FORM_CHANGE
What's wrong?
With regards,
PsmakRRegion static id shouldn be in bracketsYou missed the '#' informt of the region id.
why my original PL/SQL process did not work
FOR i IN 1 .. apex_application.g_f08.COUNTThis works only when the application array has values and that happens only when the page is submitted.When you submit the dynamic action , it isn't.
This script combined with script to detect changes makes apex page running very slowIf you use that PLSQL code(assuming it works as expected) , then its going to take a server request every-time you change a field in the tabular form and loop though all the array values(if they would be submitted before) and recalculate and compare the checksums . Isn't that going to be very inefficient.
As for that JS code, it only runs at the client side. You can do all the server side checks on submit, when the user expects some delay due to processing. -
How to change the font of variables in smart forms dynamicly
Dear all,
Is there any suggestion of how to change the font of variables in smart forms dynamicly?
Thanks in advance.Hi,
You cant change the font dynamically but tell me the scenario I will try to give the solution.
Regards,
Nageswar -
Is there a method in labview to dynamically save and change the monitor resolution under program control? I have another application that runs on another monitor. I would like to change the monitor resoultion to 640x480 on program startup, and then restore the monitor resolution back to the user's settings on exit. Can this be done?
vaidehi_joshi wrote:
Is there a method in labview to dynamically save and change the monitor resolution under program control? I have another application that runs on another monitor. I would like to change the monitor resoultion to 640x480 on program startup, and then restore the monitor resolution back to the user's settings on exit. Can this be done?
Have you already done this manually? I've seen Labview scale front panels very strangely when changing resolutions...
Bill
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all. -
In HCM form & process Workflow event linkage changed to inactive status.
Hi,
In HCM form & process event linkage is activated in HRASR_DT and workflow object .
Now once we complete the process from EP portal ,reference number is generated and enteries are created in table T5ASRPROCESSES .
In SWEL,event is triggered and linked with the same workflow.
Now the problem is,thesre is no workitem in SWIA with this workflow numbmer and the event linkage also changed to inactive status ( both in proces and workflow )after we complete the process from EP.
Thanks
ManojHi
When you are delaing workflows with HCM Process and form the behaviour is slightly different from the normal.. In order to check why the event linkage is inactive the possibilities are
1. Either there are some chnages done in the workflow and it is not activated from the transaction HRASR_DT.
2. The other possibility is that you might have directly actovated the workflow from SWDD transaction and if you have done in this way then it is a wrong way of generating and activating the workflow
Follow the below steps to find the error
1. Execute HRASR_DT txn and try to activate the workflow from here. If you try to activate the workflow from this transaction the check function module which is linked to the workflow will be knowing that for which specific process which workflow has to be triggered..
so in HCM process and forms frame workf it is always suggestable that try to create the workflow from HRASR_DT transaction using forward navigation and activate the respective event linkages.
The other point you need to check is make sure that all the respective program exit classesare included in the basic data of the workflow other wise even if you miss the program exit classes in the basic data the workflow will not be able to start its process/execution.
Regards
Pavan -
Need to change the properties of ADUser form dynamically
Hi all,
We have a requirement wherein a user needs to be provisioned AD based on OIM user profile attribute.The conditions for provisioning are :
1. We have two AD domains ex - ABC and XYZ.
2. If user's organization is CST then he needs to be provisioned to ABC domain else XYZ.
3. In AD process definition form "UD_ADUSR" we have an attibute organization which should take value from a lookup definition ex - LookUp.ADReconciliation.OrgABC for ABC domain and LookUp.ADReconciliation.OrgXYZ for XYZ domain.
4. Similarly for UD_ADUSR's child table UD_ADUSRC have the group field which should take the value from a lookup definition ex - LookUp.ADReconciliation.GRPABC for ABC domain and LookUp.ADReconciliation.GRPXYZ for XYZ domain.
How can we change the AD Process definition form dynamically reflecting the LookUPCode name depending upon OIM profiles attribute.Do we need to create RuleDesigner or Adapter or there is some other way ?
Thanks
DeepikaHi,
Because of some project constraints, I cant use the above two solutions - creating a new RO and Dynamic lookup :(
I misunderstood the Dynamic lookup part - If I am wrong this means that we will be having all our data in one table and will be fetching some values based on certain criteria ( i.e populating the look-up dynamically )
But in our project we cant use this as, we strictly have two seperate lookups for two different domains.
Just clearing the requirement once again -
1. We have one AD User form
2. OrganizationDN is a field on that form having look-up type values attached with it.
3. I need to decide the look-up definition name (one among the two ) which will be attached with this field based on user's OIM profile attribute
I am trying this with the API I mentioned above.
My confusions are -
1. First and foremost thing am I going in right direction.
2. If yes, will it be possible to get the formKey before the user is provisioned to AD ?
Also from the SDK Oerations I found this method -
void updateFormFieldProperty(long plFormFieldKey,
java.lang.String psPropertyName,
java.lang.String psPropertyValue)
Updates the specified property with specified value to the form's field
Parameters:
plFormFieldKey - The key for the form definition *( "Bit confusing,this should be FormKey I think not FormFieldKey" )*psPropertyName - The name of the property to be assigned to the form field
psPropertyValue - The value of the property to be assigned to the form field
Can someone plz provide me the table name which contains formkey and formFieldKey as the OIM-table link is not working :(
Thanks,
Deepika -
Return function module result to HCM form using backend service
Hi
I'm trying todo something very simple.
I would like to call a FM using a backend service and return the result of the FM to the HCM form.
I'm using USER_EVENT_CHECK on button to initiate the call.
Here is my dooperations, I have omitted the calling of the FM. I just want to return the changed text to the form in this example.
I have stepped through code using external breakpoint and the field gets changed succesfully in the service_dataset
method IF_HRASR00GEN_SERVICE~DO_OPERATIONS.
DATA service_operation_wa TYPE hrasr00genserv_operation.
DATA service_dataset_wa TYPE hrasr00gensrv_dataset.
DATA dummy TYPE string.
DATA message TYPE symsg.
FIELD-SYMBOLS <service_dataset_wa> TYPE hrasr00gensrv_dataset.
DATA inputText TYPE string.
LOOP AT service_operations INTO service_operation_wa.
CASE service_operation_wa-operation.
WHEN C_CVRT_OPERATION_NAME.
LOOP AT service_datasets INTO service_dataset_wa WHERE fieldname = c_oldText_fieldname.
inputText = service_dataset_wa-fieldvalue.
MODIFY service_datasets INDEX sy-tabix FROM service_dataset_wa TRANSPORTING fieldvalue.
exit.
ENDLOOP.
LOOP AT service_datasets ASSIGNING <service_dataset_wa> WHERE fieldname = c_newText_fieldname.
EXIT.
ENDLOOP.
IF sy-subrc = 0. "entry found; must not necessarily exist
CONCATENATE inputText '-TEST-' inputText INTO <service_dataset_wa>-fieldvalue.
ENDIF.
ENDCASE.
ENDLOOP.
endmethod.
Any help will be appreciated.You could use 'CU_READ_RGDIR_NEW' to get payroll directory RGDIR, 'PYXX_READ_PAYROLL_RESULT' to read results (RT, CRT, ...) from specific entry in payroll drectory.
Rgds. -
Error: Organizational Assignment created via Orgnizational Management in HCM form
Hi All,
I am getting below error while moving an EE to certain position via HCM form.
I have cheked and found that if an org unit is to be assigned to another cost center in Organizational management from a certain date, this action generates a new record in infotype 0001 for integrated persons from the date of assignment to the new cost center and if we perform any action which would be deleting the new record (created from OM) in IT0001 then this error would populate.
Here is the the same case a new Cost Centre has been assigned with the orgunit and a new record is creaed in IT0001 from the OM but when I am performing the same action via PA40 then I not getting any error, the error is occuring from the form only.
Can you please help me to resove this error and provide me the reason why it is not occring when I am performing the same action from PA40.
Regards,
MayankHi Mayank,
I think you will be triggering Job Salary Form for the action you have mentioned. Please check in the Tcode HRASR_DT for the form name as I have show below from my development system. In Back-End services - SAP_PA - Infotypes and Operations and for Infotype 0001 check what is the operation that you have maintained.. It should be "change" to avoid the error message.
For PA40 action you would have configured the same as "change" thats why you are not getting error message in PA40.
Thanks,
Sriram -
How to make a form dynamic so that it displays different logos at runtime
I am working on some assignment wherein I would like to make a form dynamic so that in it's designated image holder it displays different logos/pictures at run time? First of all is there such a possibility?? I am still very new to this forum and also trying to understand the logic/bindings/heirarchy etc. in LCD. Any input would be highly appreciated.
Thanks in advanceLC 7 or 8 does not help load logs at runtime. However you can associate all your logs at design time and control their visibility property based on the events. This may help fulfill the requirements you have to an extent however adding number of images at design time will increase the size of the template.
-
How to Edit a custom HCM form directly after Employee selection?
Hi All,
As per the requirement, the Manager should have a tab in Portal called "Forms and Processess" and on click of that he should see a Page with few hyperlinks . Each hyperlink is the name of a HCM Form.
So, the Manager will click on one of them to start a particular form. ex. One time payment
After clicking, he should have the Employee search result having Direct reports under STEP "Select Employees".. But the next STEP has to be "Edit" instead of "Select Process" and the Form "One time payment" should directly Open for him to work on.
Please help me providing the relevant information and the approach. Let me know if you need any additional information.
Regards
DK
Edited by: DIPENDRA MOHANTY on Mar 11, 2011 12:05 AM
Edited by: DIPENDRA MOHANTY on Mar 11, 2011 12:06 AMwe do have selection of employees or search and you can choose a form?
If you want to change it, then only option is WD ABAP Iviews custom
But i still didnt fathom the need of teh approach above, does the standard doesnt meet the requurement? Please check it
which is pretty flexible -
Hi Experts,
1) Can you please explain what are the benefits of using HCM forms over Interactive adobe forms developed using ABAP
workbench or Netweaver Developer Studio?
2) When Adobe forms can be independently desinged and developed, why do we need HCM Froms? The interactive forms
developed using ALD can be dirtectly plugged in to the workflows. How exactly will HCM form bring benefits to the table?
Please Explain.
2) What all changed in EHP3 and EHP4 and what is their Impact on WebDynoproJava based applications in the ESS MSS
business package?
3) Will ESS MSS EhP4 have all the applications in web dynpro ABAP only or will still continue to have the Java stack supported
by SAP? If java stack is supported, then what will be the kind of impact of developing/ customizing the ESS MSS applications
using web dynpro java?
Thanks and Regards,
MahanteshHi,
you can validate the Business functions according to the EHPs from the below link
See SAP Note 1052470.
For information about the business functions of SAP ERP, see SAP Service Marketplace (service.sap.com/erp-ehp) and SAP Help Portal (help.sap.com) under SAP ERP Central Component ->number of the enhancement package-> SAP Library Business Function Sets and Business Functions
these SAP help also give you more information
http://help.sap.com/erp2005_ehp_04/helpdata/EN/d9/a64d4bbd3d4856bbde2695e2fcfb4c/content.htm
http://www.cogentibs.com/pdf/cogsap08/HRForms.pdf
http://help.sap.com/saphelp_erp2005/helpdata/en/42/f273461e5132c3e10000000a1553f6/content.htm
regards
nag -
Drop down lists in Interactive forms:HCM Forms&Processes
Hi Experts,
I am working in HCM Forms and Process.
I have 2 dropdown lists in my interactive form such as COUNTRY, STATE. The STATE dropdown should be populated based on the COUNTRY field dynamically.
I have written the logic for STATE dropdown in the method GET_STATES of Custom Generic Service Implementation Class and that method is used in the OPERATION of FIELDGROUP in Form Scenario.
The Java Script in the EXIT event for COUNTRY is as follows.
xfa.record.CONTROL_PARAM.ISR_EVENT.VALUE = u201CGET_STATES";
app.eval(u201Cevent.target.SAPSubmit();u201D);
Still the the STATE lists is not populating in the form in Portal.
Please provide some valuable inputs on this.
Thanks in advanceHi Mukesh,
Thanks for your response.
It seems the script is not triggering .I didnt get the alert message.
I am working in Citrix and SAP GUI 710 has been installed now. Still, I can't insert Webdynpro Script. It is showing one error "Error while inserting Webdynpro script".
Earlier, in SAP GUI 640, I was able to see with the Data view with the interface import parameters. Now the Data view(Left side of Layout) has no elements , although the form is linked with an Abap dictionary based interface.
Do you have any idea why these kind of errors are coming? Is this the problem with Citrix ?
Maybe you are looking for
-
Table Control Text fields problem , help plz
Hello Anand , Rich , John & All I hav problem with Text 3 fields( type c)(either L or R aligned ) , it is not geting updated , otherwise everything else is perfectly fine(scrolling,sorting etc ....) . Fields giving problem are 1. Status(20) type c
-
Hi, I have a requirement where in the third party will enqueue the data to the queue. I want that in Oracle Apps, the data should be read as soon enqueued into the queue. I have written a procedure to dequeue the data but dont know how to trigger it.
-
How do you do a save as in OSX 10.8.5?
I have an iMac with Mountain Lion and there's no Save As feature. I use this all the time and it's frustrating to not have it available. is there a hack to get it back?
-
My downloaded game is not showing up. When I try to download it says already downloaded
Please help me, my game is not working, I have tried redrafting it, an it does not let me download it again.
-
Email disappearing on iPad while writing
Hello, We've just encountered the weirdest problem. My husband was writing a professional email on his professional email account on his iPad2. I was using my own mini iPad. I pressed the home button twice to check the running apps, and I noticed thi