Designed radiobuttons
Hi
I'm looking for help with creating a radio buttons in form
but I don't want to use standard looking radio buttons from
components (ctrl f7). I have design of website and I would like to
keep form in the same theme.
Any one can help me with some ideas how to change look of
then radio buttons?
I know I can press twice in AS3.0 on radio button to change
graph but i wish to each button have a different icon.
Thanks
KP
Below is a link to a posting I helped someone with that would
very closely function as I am suggesting. The only thing it is
missing is where the radio_mc would write a value to a hidden
textfield.
Recent
posting suitable to your situation
If the fla file that was linked in that posting is still
available (about 3 postings before the last), you can open it and
see what your radio buttons would look like in a general sense.
There are a number of text movieclips used that consist of two
frames each. One frame shows small text, and the second shows that
text magnified. In your case, the first frame would be the
unclicked radio button image, and the second would be the clicked
radio button image. The movies in that file are all named in a
similar manner (mc0, mc1, mc2... etc). You would do the same thing
for one group of radio buttons.
That file is coded using AS2, so if you are going to use AS3,
the coding will be a bit different.
The function that I show near the end of the posting is what
was needed to make that fla file work properly... when you click on
one, the rest are returned to their unclicked state.
Similar Messages
-
How to use radioButton(s) and image controls on windows phone 8.1
how to use radioButton(s) and image controls on windows phone 8.1
Hi aspirantme,
>>how to use radioButton(s) and image controls on windows phone 8.1
Which version of your app is? Runtime or Silverlight?
For Runtime version, please see the following articles:
#RadioButton class
https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.radiobutton(v=win.10).aspx
#How to add radio buttons (XAML)
https://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh868200.aspx
#Image class
https://msdn.microsoft.com/library/windows/apps/br242752.aspx
For Silverlight version, please refer to the following documents and guidelines:
#RadioButton Class
https://msdn.microsoft.com/en-us/library/windows/apps/system.windows.controls.radiobutton(v=vs.105).aspx
#RadioButton control design guidelines for Windows Phone
https://msdn.microsoft.com/en-us/library/windows/apps/hh202881(v=vs.105).aspx
#Image Class
https://msdn.microsoft.com/en-us/library/windows/apps/system.windows.controls.image(v=vs.105).aspx
#Quickstart: Images for Windows Phone
https://msdn.microsoft.com/en-us/library/windows/apps/jj206957(v=vs.105).aspx
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Help regarding radiobutton text in Adobe Forms
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="nodes">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="node">
<xs:complexType>
<xs:sequence>
<xs:element name="PName" type="xs:string" />
<xs:element name="IsRegistered" type="xs:boolean" />
<xs:element name="Gender" maxOccurs="unbounded" type="GenderType" />
<xs:element name="QT" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:simpleType name="GenderType">
<xs:restriction base="xs:string">
<xs:pattern value="([A-Z,a-z])*" />
<xs:minLength value="0" />
<xs:maxLength value="6" />
<xs:enumeration value="Male" />
<xs:enumeration value="Female" />
</xs:restriction>
</xs:simpleType>
</xs:schema>
I’m trying to generate a PDF form using a schema(above) and xml file(based on this xsd) using LiveCycle Designer. I have embedded the xml schema in pdf file by creating a Data Connection using this xsd file. I can generate different type of form controls by importing the xml file(based on this xsd) in PDF file using Acrobat 9.0 menu Forms > Manage Form Data > Import Data.
What I can’t figure out is how can I generate radio button's text/label based on data in xml? The Gender enumeration that I have used becomes hardcoded in design time and there can’t be more radio buttons than that specified in the Gender enumeration in the xsd. Also even though I have specified the text for the radiobutton in the xsd I have to specify it again while designing the form using Adobe Live Cycle Designer. This is like hardcoding the radiobutton text during design time. How do i read the radiobutton text from the xsd file only ???
I want the number of radio buttons and their labels to be generated based on data
from xml.
For e.g. if my xml is:
<node>
<rbType>Option1</rbType>
<rbType>Option2</rbType>
<rbType>Option3</rbType>
</node>
,then there sould be 3 radio buttons with labels as Option1, Option2 and Option3. If there are only 2 'rbType' tags, then only 2 radio buttons with respective labels.
Any help\suggestions is appreciated. Thanx
Sunit.Use
<b>
instead of
<strong>
See http://partners.adobe.com/public/developer/en/xml/xfa_spec_2_5.pdf -> Part 3 -> Rich Text Reference for a list of supported xhtml tags.
Sebastian -
How to design Customized ALV report like normal report !
Hello Friends,
I like to design a ALV report, with sub headers, sub totals, summary total and other summary details like percentage sale, which is not relavent to the fields displayed in the ALV.
I know it is possible to get total of the displayed field, but is it possible to design flexible ALV report like normal report.
Could U please provide example code, if available.
Thank you,
SenthilHI,
Just check this example.
REPORT ZLAXMI_ALVEXER2 MESSAGE-ID ZZ .
*& TABLES DECLARATION *
TABLES: VBAK.
*& TYPE POOLS DECLARATION *
TYPE-POOLS: SLIS.
*& INTERNAL TABLE DECLARATION *
DATA: BEGIN OF ITAB OCCURS 0,
ICON TYPE ICON-ID,
VBELN LIKE VBAK-VBELN,
AUDAT LIKE VBAK-AUDAT,
VBTYP LIKE VBAK-VBTYP,
AUART LIKE VBAK-AUART,
AUGRU LIKE VBAK-AUGRU,
NETWR LIKE VBAK-NETWR,
WAERK LIKE VBAK-WAERK,
END OF ITAB.
*INTERNAL TABLE FOR FIELD CATALOG
DATA: WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
IT_FIELDCAT TYPE STANDARD TABLE OF SLIS_FIELDCAT_ALV
WITH HEADER LINE,
*INTERNAL TABLE FOR EVENTS
DATA: IT_EVENT TYPE SLIS_T_EVENT,
WA_EVENT TYPE SLIS_ALV_EVENT,
*INTERNAL TABLE FOR SORTING
IT_SORT TYPE SLIS_T_SORTINFO_ALV,
WA_SORT TYPE SLIS_SORTINFO_ALV,
*INTERNAL TABLE FOR LAYOUT
WA_LAYOUT TYPE SLIS_LAYOUT_ALV.
*& VARIABLE DECLARATION *
DATA : V_REPID TYPE SY-REPID,
V_PAGNO(4) TYPE N,
V_DATE(8) TYPE C.
*& CONSTANTS *
CONSTANTS: C_X TYPE C VALUE 'X'.
*& SELECTION SCREEN *
SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: S_VBELN FOR VBAK-VBELN,
S_VBTYP FOR VBAK-VBTYP DEFAULT 'C'.
SELECTION-SCREEN: END OF BLOCK B1.
SELECTION-SCREEN: BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
SELECTION-SCREEN : BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(20) TEXT-003.
PARAMETERS: P_LIST RADIOBUTTON GROUP RAD1 DEFAULT 'X'.
SELECTION-SCREEN : END OF LINE.
SELECTION-SCREEN : BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(20) TEXT-004.
PARAMETERS: P_GRID RADIOBUTTON GROUP RAD1.
SELECTION-SCREEN : END OF LINE.
SELECTION-SCREEN: END OF BLOCK B2.
AT SELECTION-SCREEN.
PERFORM VALIDATE_SCREEN.
*& START OF SELECTION *
START-OF-SELECTION.
CLEAR: ITAB, ITAB[].
V_REPID = SY-REPID.
PERFORM GET_DATA.
PERFORM DISPLAY_DATA.
*& END OF SELECTION *
END-OF-SELECTION.
*--DO ALV Process
V_REPID = SY-REPID.
*--Sort the Output Fields
PERFORM SORT_FIELDS.
*--Build Field catalog for the Output fields
PERFORM BUILD_FIELDCAT.
*--Set the Layout for ALV
PERFORM SET_LAYOUT.
*& Form GET_DATA
text
TO GET THE DATA FROM TABLES INTO ITAB
FORM GET_DATA .
SELECT VBELN
AUDAT
VBTYP
AUART
AUGRU
NETWR
WAERK
INTO CORRESPONDING FIELDS OF TABLE ITAB
FROM VBAK
WHERE VBELN IN S_VBELN AND
AUDAT > '04.04.2005'
AND NETWR > 0.
LOOP AT ITAB.
IF ITAB-NETWR < 10000.
ITAB-ICON = '@08@'.
ELSEIF ITAB-NETWR > 10000 AND ITAB-NETWR < 100000.
ITAB-ICON = '@09@'.
ELSEIF ITAB-NETWR > 100000.
ITAB-ICON = '@0A@'.
ENDIF.
MODIFY ITAB INDEX SY-TABIX.
ENDLOOP.
ENDFORM. " GET_DATA
*& Form sort_fields
FORM SORT_FIELDS .
CLEAR WA_SORT.
WA_SORT-FIELDNAME = 'VBTYP'.
WA_SORT-SPOS = '1'.
WA_SORT-UP = 'X'.
APPEND WA_SORT TO IT_SORT.
CLEAR WA_SORT.
WA_SORT-FIELDNAME = 'NETWR'.
WA_SORT-SPOS = '2'.
WA_SORT-UP = 'X'.
WA_SORT-SUBTOT = 'X'.
APPEND WA_SORT TO IT_SORT.
ENDFORM. " sort_fields
*& Form build_fieldcat
*FORM BUILD_FIELDCAT .
IT_FIELDCAT-COL_POS = '1'.
IT_FIELDCAT-FIELDNAME = 'ICON'.
IT_FIELDCAT-KEY = 'X'.
IT_FIELDCAT-OUTPUTLEN = '10'.
IT_FIELDCAT-SELTEXT_L = 'LIGHT'.
APPEND IT_FIELDCAT.
CLEAR IT_FIELDCAT.
IT_FIELDCAT-COL_POS = '2'.
IT_FIELDCAT-FIELDNAME = 'VBELN'.
IT_FIELDCAT-KEY = 'X'.
IT_FIELDCAT-OUTPUTLEN = '10'.
IT_FIELDCAT-SELTEXT_L = 'SALES DOC NUMBER'(009).
APPEND IT_FIELDCAT.
CLEAR IT_FIELDCAT.
IT_FIELDCAT-COL_POS = '3'.
IT_FIELDCAT-FIELDNAME = 'AUDAT'.
IT_FIELDCAT-KEY = 'X'.
IT_FIELDCAT-OUTPUTLEN = '4'.
IT_FIELDCAT-SELTEXT_L = 'DOCUMENT DATE'(010).
APPEND IT_FIELDCAT.
CLEAR IT_FIELDCAT.
IT_FIELDCAT-COL_POS = '4'.
IT_FIELDCAT-FIELDNAME = 'VBTYP'.
IT_FIELDCAT-KEY = 'X'.
IT_FIELDCAT-OUTPUTLEN = '4'.
IT_FIELDCAT-SELTEXT_L = 'CATEGORY'(011).
APPEND IT_FIELDCAT.
CLEAR IT_FIELDCAT.
IT_FIELDCAT-COL_POS = '5'.
IT_FIELDCAT-FIELDNAME = 'AUART'.
IT_FIELDCAT-OUTPUTLEN = '4'.
IT_FIELDCAT-SELTEXT_L = 'DOCUMENT TYPE'(012).
APPEND IT_FIELDCAT.
CLEAR IT_FIELDCAT.
IT_FIELDCAT-COL_POS = '6'.
IT_FIELDCAT-FIELDNAME = 'AUGRU'.
IT_FIELDCAT-OUTPUTLEN = '12'.
IT_FIELDCAT-SELTEXT_L = 'Order reason'(013).
APPEND IT_FIELDCAT.
CLEAR IT_FIELDCAT.
IT_FIELDCAT-COL_POS = '7'.
IT_FIELDCAT-FIELDNAME = 'NETWR'.
IT_FIELDCAT-OUTPUTLEN = '12'.
IT_FIELDCAT-SELTEXT_L = 'NET VALUE'(014).
APPEND IT_FIELDCAT.
CLEAR IT_FIELDCAT.
IT_FIELDCAT-COL_POS = '8'.
IT_FIELDCAT-FIELDNAME = 'WAERK'.
IT_FIELDCAT-OUTPUTLEN = '12'.
IT_FIELDCAT-SELTEXT_L = 'SD DOC CURR'(015).
APPEND IT_FIELDCAT.
CLEAR IT_FIELDCAT.
*ENDFORM. " build_fieldcat
*& Form set_layout
FORM SET_LAYOUT .
IF P_LIST = C_X .
WA_LAYOUT-WINDOW_TITLEBAR = 'LIST DISPLAY'(016).
WA_LAYOUT-ZEBRA = 'X'.
*-- ALV LIST DISPLAY
PERFORM LIST_DISPLAY TABLES ITAB.
*-- ALV GRID DISPLAY
ELSEIF P_GRID = C_X.
WA_LAYOUT-WINDOW_TITLEBAR = 'GRID DISPLAY'(017).
WA_LAYOUT-ZEBRA = 'X'.
PERFORM GRID_DISPLAY TABLES ITAB.
ENDIF.
ENDFORM. " set_layout
*& Form list_display
FORM LIST_DISPLAY TABLES P_ITAB .
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = V_REPID
IS_LAYOUT = WA_LAYOUT
IT_FIELDCAT = IT_FIELDCAT[]
IT_SORT = IT_SORT[]
I_SAVE = 'U'
TABLES
T_OUTTAB = ITAB
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " list_display
*& Form GRID_DISPLAY
FORM GRID_DISPLAY TABLES P_ITAB .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = V_REPID
IS_LAYOUT = WA_LAYOUT
IT_FIELDCAT = IT_FIELDCAT[]
IT_SORT = IT_SORT[]
IT_EVENTS = IT_EVENT
TABLES
T_OUTTAB = ITAB
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " GRID_DISPLAY
*& Form VALIDATE_SCREEN
text
--> p1 text
<-- p2 text
FORM VALIDATE_SCREEN .
DATA: LV_VBELN LIKE VBAK-VBELN.
IF NOT S_VBELN IS INITIAL.
SELECT VBELN
INTO LV_VBELN
UP TO 1 ROWS
FROM VBAK
WHERE VBELN IN S_VBELN.
ENDSELECT.
IF SY-SUBRC <> 0.
MESSAGE E000 WITH 'INVALID SALES DOC'.
ENDIF.
ENDIF.
ENDFORM. " VALIDATE_SCREEN
*& Form display_data
text
--> p1 text
<-- p2 text
FORM DISPLAY_DATA .
DEFINE M_FIELDCAT.
ADD 1 TO WA_FIELDCAT-COL_POS.
WA_FIELDCAT-FIELDNAME = &1.
WA_FIELDCAT-REF_TABNAME = 'VBAK'.
WA_FIELDCAT-DO_SUM = &2.
WA_FIELDCAT-CFIELDNAME = &3.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
END-OF-DEFINITION.
DATA:
LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
LT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
M_FIELDCAT 'ICON' '' ''.
M_FIELDCAT 'VBELN' '' ''.
M_FIELDCAT 'AUDAT' '' ''.
M_FIELDCAT 'VBTYP' '' ''.
M_FIELDCAT 'AUART' '' ''.
M_FIELDCAT 'AUGRU' '' ''.
M_FIELDCAT 'NETWR' 'C' 'WAERK'.
M_FIELDCAT 'WAERK' '' ''.
ENDFORM. " display_data
Regards
Laxmi -
How to Create Dynamic RadioButton Group by Index
Hi to all,
I would like to create an Questionaire.For that, I have created one Text View & Radio button Group by index at design time. which will fetch the values(ie Values are Questions & Ans options ) from R/3. since I need to fetch N number of values which must be mapped with Multiple Text views & Radio Button Groups i want to create Text view & Radio button Group by index UI Elements dynamically.How to do that?
Please bring me an solution to this problem.
Thanks in advance.
Regards,
Malar.Hi Murtuza,
Thanks for ur solution...
anyway again i got an same error. Option button not enabled...
so i have created a dynamic context node & map it with the RadioButton Group by Index...Now it s working fine...
if(firstTime){
//Test2Node.invalidate();
for(int i=0;i<wdContext.nodeQuestions().size();i++)
IWDNodeInfo nodeinfo=wdContext.getNodeInfo();
/* This will add a ValueNode */
IWDNodeInfo customerNode=nodeinfo.addChild("Questionaire"+i,null,true,true,true,false,false,true,null,null,null);
/* This will add a Attribute to the above Node */
IWDAttributeInfo custAttr=customerNode.addAttribute("Quest"+i,"com.sap.dictionary.string");
IWDAttributeInfo custAttr1=customerNode.addAttribute("Options"+i,"com.sap.dictionary.string");
IWDNode NodeQuest = wdContext.getChildNode("Questionaire"+i,0);
NodeQuest.getCurrentElement().setAttributeValue("Quest"+i,wdContext.nodeQuestions().getQuestionsElementAt(i).getQues());
// NodeQuest.getCurrentElement().setAttributeValue("Options"+i,wdContext.nodeQuestions().getQuestionsElementAt(i).getOptionA());
IWDTransparentContainer tc = (IWDTransparentContainer)view.getElement("TransparentContainer");
IWDTextView tv =(IWDTextView) view.createElement(IWDTextView.class,"MyTextView1"+i);
tv.setText(wdContext.nodeQuestions().getQuestionsElementAt(i).getQues());
tc.addChild(tv);
IWDNodeElement NodeElt= NodeQuest.createElement();
NodeElt.setAttributeValue("Options"+i,wdContext.nodeQuestions().getQuestionsElementAt(i).getOptionA());
NodeQuest.addElement(NodeElt);
IWDNodeElement NodeElt1= NodeQuest.createElement();
NodeElt1.setAttributeValue("Options"+i,wdContext.nodeQuestions().getQuestionsElementAt(i).getOptionB());
NodeQuest.addElement(NodeElt1);
IWDNodeElement NodeElt2= NodeQuest.createElement();
NodeElt2.setAttributeValue("Options"+i,wdContext.nodeQuestions().getQuestionsElementAt(i).getOptionC());
NodeQuest.addElement(NodeElt2);
IWDNodeElement NodeElt3= NodeQuest.createElement();
NodeElt3.setAttributeValue("Options"+i,wdContext.nodeQuestions().getQuestionsElementAt(i).getOptionD());
NodeQuest.addElement(NodeElt3);
IWDRadioButtonGroupByIndex rbg = (IWDRadioButtonGroupByIndex)view.createElement(IWDRadioButtonGroupByIndex.class,"RBG1"+i);
rbg.bindTexts("Questionaire"i".Options"+i);
//IWDRadioButton rb = (IWDRadioButton)view.createElement(IWDRadioButton.class,"RBG1"+Iter);
//rb.bindText("Test2.RadioTest");
tc.addChild(rbg);
This s the code....
Thank you. anyway
Regards,
Thenmalar -
JAVASCRIPT PROBLEM in designer!
hello.
i used javascript for professional for some time and wouldnt say i had any serious problems... eventually i worked things out.. but the same scripts on designer do not work.. all i can do is app.alert() .. thats the only thing that works - if i add an if statement (on mouse up) such as
if radiobutton.value == "1"
app.alert()
it doesnt do anything.. could someone please help?
what is so different that nothing works!?
thanks a lot...Hi David,
I did go through your suggestions in the above said thread.
But I need this to work on the loading of the pdf and not on a button click.
This is the code I tried on form:ready event:
if(app.viewerVersion >=7)
event.target.importDataObject("xmldata","/E/testxml.xml");
var oData = event.target.getDataObjectContents("xmldata");
var sData = util.stringFromStream(oData);
var oXML = testxml.parse(sData, true);
event.target.removeDataObject("xmldata");
app.alert(oXML.Name.value);
It gave me the following error:
TypeError: Invalid argument type.
Global.getDataObjectContents:12:initialize undefined:Exec
===> Parameter cName.
NotAllowedError: Security settings prevent access to this property or method.
Global.importDataObject:3:Doc undefined:Open
Any suggestions would be very welcome as I am hard pressed for time.
Thanks a lot for your help.
regards,
Sowmya -
Schema Design for Worklist Application - best practice?
Hello,
we are designing the Schema for a workflow application now. I'm wondering what kind of XML Schema would be best suited for the JSP generation of the Workflow Wizard.
So far I've found out with some tests (please correct me if I'm wrong):
- Only elements will be mapped to JSP fields, not attributes
- If elements have single-letter name, the field label will be eliminated totally in JSP (bug?!)
- For EVERY parent node, an HTML table is generated in the JSP containing all the simple nodes in the parent. If a parent node contains another parent node, both tables will be generated on the same level.
And I haven't found any way to create drop-down list or checkbox/radiobuttons out of the XSD definition (enumeration as element type).
I would really appreciate it if someone could share some experience in this area, many thanks in advance!
regards
ZHU JiaHello,
we are designing the Schema for a workflow application now. I'm wondering what kind of XML Schema would be best suited for the JSP generation of the Workflow Wizard.
So far I've found out with some tests (please correct me if I'm wrong):
- Only elements will be mapped to JSP fields, not attributes
- If elements have single-letter name, the field label will be eliminated totally in JSP (bug?!)
- For EVERY parent node, an HTML table is generated in the JSP containing all the simple nodes in the parent. If a parent node contains another parent node, both tables will be generated on the same level.
And I haven't found any way to create drop-down list or checkbox/radiobuttons out of the XSD definition (enumeration as element type).
I would really appreciate it if someone could share some experience in this area, many thanks in advance!
regards
ZHU Jia -
How to reuse UI elements in view design
Hello
How can I reuse UI elements when designing a view?
For example: I built a UI container (TransparentContainer) consisting of a FormattedTextEdit, some buttons and other UI Elements. This container will be used in several views and even several times inside the same view.
The solution which I use at the moment is to copy/paste this UI container. But this is a bad solution, because if something in the container has to be changed, it is very cumbersome to adapt also all copied instances.
I also tried to put my UI container into a separate view and than to reuse this view in other views by means of the ViewContainerUIElement. But this does not work if the UI container has to be placed more than once inside a view, as duplicate usage of a view raises a WDRuntimeException.
What is the best way do reuse several UI Elements in desinging a view?
Greetings
RolfThank you Rajat for your answer.
Is there any solution to solve this problem for the "Tabstrip"?
Thus, let's say I have a "Tabstrip" with 10 "Tabs". All the tabs have the same UI elements only the data of the UI Elements changes among the tabs. Do I really have to copy my UI elements 10 times?
Of course, another solution would be to "simulate" the Tabstrip with some radio-buttons and one container that shows the content of the selected tab/radiobutton. -
Radio Buttons in Design Studio
Hi Experts,
Am new to Design Studio, I am middle of creating dashboard. here i have to use radio button which shows Value and Quantity. where as if i select value as a radio button then my dash board should show only respective Graph and Cross Tab in case if the user selects Quantity then Quanity related Graph and Cross Tab should show . Kindly help me with guide lines.
Thank you.
Regards,
MaruthiThank you Tammy. i got the answer from the materials. Here instead of using two tabs or Tabstrip am using the Radiobutton. am able to accompish my task. this is how am using.
if(RADIOBUTTONGROUP_1.getSelectedValue() =='Value')
CHART_1.setVisible(true);
CROSSTAB_1.setVisible(true);
CHART_2.setVisible(false);
CROSSTAB_2.setVisible(false);
else
CHART_1.setVisible(false);
CROSSTAB_1.setVisible(false);
CHART_2.setVisible(true);
CROSSTAB_2.setVisible(true); -
Reset radiobutton list when check box unchecked
I have a static PDF registration form that I am working on using LiveCycle Designer 8.2. I would like to learn how to have a radiobutton list reset when a particular check box is unchecked.
When registering for the event, users have the option of attending 1 of the 4 optional afternoon workshop sessions. I have successfully made the workshop radiobuttons hidden until the check box is checked using the following code:
(check box is named "Reg4" -- this is where they say "yes" I'm going to attend 1 of the 4 workshops,
radiobutton list of the 4 workshops is named "RadioButtonList3")
topmostSubform.Page1.Reg4::change - (JavaScript, client)
if (this.rawValue == "0") {
this.resolveNode("RadioButtonList3").presence = "hidden";
When the user unchecks the "Reg4" checkbox after they have selected 1 of the 4 workshops, that radiobutton is still checked.
What I'm looking for is to have the radiobutton list reset (or again hidden) when the Reg4 button is unchecked (after previously being checked).
I hope my description is clear. Is this possible?Thank you again, Jono, for your reply. I was worried that the Static PDF was the trouble but I just couldn't take no for an answer!
If you're willing, I'd be happy to send you my file but am unable to post publicly.
In an earlier version the RadioButtonList3 is hidden when first viewing the file. It was done using FormCalc. (I know you said don't mix the languages but, hey, it worked!) Also, I found a post you had last year in the discussion "Prompt User to click checkbox (radio button)" where you described a message box using Java. I snagged that and put it on the enter event of the Reg4 field.
When I preview the PDF, this is what I now have:
Upon first view, RadioButtonList3 is hidden and am unable to select (perfect)
When I check the Reg4 box, I get the "You will be registered for a..." warning message (perfect)
I can now make a selection in the RadioButtonList3 (perfect)
If I uncheck the Reg4 box without making a selection on RadioButtonList3, the RadioButtonList3 again hides (perfect)
If I check the Reg4, then make a selection on RadioButtonList3, and then uncheck the Reg4 box, the RadioButtonList3 is reset (perfect)
BUT the RadioButtonList3 is still visible and a selection can now be made (not perfect because the Reg4 box is now unchecked and the user will only be registered for the event if Reg4 is checked)
#1 RadioButtonList3 will hide only if it has not been selected and reset first.
#2 The warning message only appears the first time Reg4 is checked.
These 2 items somehow seem related. Is there something that tells it "use this code when you first open the document but act differently once you've started checking boxes" so it only acts as I intend on the first go-around?
Here's all of my code:
topmostSubform.Page1.RadioButtonList3::calculate - (FormCalc, client)
if (Reg4 == "0") then
RadioButtonList3.access = "readOnly"
else
RadioButtonList3.access = "open"
endif
topmostSubform.Page1.Reg4::change - (JavaScript, client)
if (this.rawValue == 1) {
RadioButtonList3.presence = "visible";
else {
RadioButtonList3.rawValue = "";
RadioButtonList3.presence = "hidden";
topmostSubform.Page1.Reg4::enter - (JavaScript, client)
if (RadioButtonList3.rawValue == "") {
xfa.host.messageBox("You will be registered for an Optional Workshop ONLY if this box is checked. Don't forget to tell us which workshop you will be attending.");
this.rawValue == null;
So sorry for the lengthy post. I'm open to any ideas that anyone may have.
This certainly is a learning experience! -
Hi
I am using a HTMLB radioButton in a JSPDynpage.
I have a radiobutton group consisting of 2 radio buttons.
I am unable to get the selected value in Javascript.
I am using the following code
(eval(func("radiobuttonId"))).getChecked();
I get an error
"Undefined is null or not an object"
Can somebody help out please.Hi Prakash
I tried your suggestion but it still doesn't work.
I have pasted my JSP code here so that you can have a look.
Towards the end there is a javascript function openwindow() where I am trying to alert the radio button values.
<%@ taglib uri= "tagLib" prefix="hbj" %>
<%@ page import = "com.sapportals.htmlb.enum.EventTrigger" %>
<% String buttonid = "";%>
<jsp:useBean id="ProductInfoBean" scope="application" class="bean.ProductInfoBean" />
<hbj:content id="myContext" >
<hbj:document>
<hbj:documentHead title="test"></hbj:documentHead>
<hbj:documentBody>
<hbj:form id="myFormId" >
<hbj:gridLayout
id="myGridLayout1"
debugMode="False"
width="40%"
cellSpacing="5"
>
<hbj:gridLayoutCell
rowIndex="1"
columnIndex="1"
width="10%"
horizontalAlignment="LEFT"
>
<hbj:textView
text="Title"
id="txtTitle"
tooltip="Title"
encode="false">
</hbj:textView>
</hbj:gridLayoutCell>
<hbj:gridLayoutCell
rowIndex="1"
columnIndex="2"
width="10%"
horizontalAlignment="LEFT"
>
<hbj:inputField
id="ipTitle"
type="String"
invalid="true"
width="100"
value=""
visible="true"
disabled="false"
required="false"
maxlength="30"
size="50"
design="standard"
jsObjectNeeded="true"
>
<%
ipTitle.setClientEvent(EventTrigger.ON_KEYDOWN,"handle_enter()");
ipTitle.setClientEvent(EventTrigger.ON_CHANGE,"handle_titleChange()");
%>
</hbj:inputField>
</hbj:gridLayoutCell>
<hbj:gridLayoutCell
rowIndex="2"
columnIndex="1"
width="10%"
horizontalAlignment="LEFT"
>
<hbj:textView
text="Promotion"
id="txtPromotion"
tooltip="Promotion"
encode="false">
</hbj:textView>
</hbj:gridLayoutCell>
<hbj:gridLayoutCell
rowIndex="2"
columnIndex="2"
width="10%"
horizontalAlignment="LEFT"
>
<hbj:dropdownListBox
id="ddPromotion"
tooltip="Promotion"
disabled="false"
jsObjectNeeded="true"
>
<hbj:listBoxItem
key=""
value="- Select Promotion -"
/>
<%for(int i=0;i<ProductInfoBean.getPromotions().size();i++){%>
<hbj:listBoxItem
key="<%=(String)(ProductInfoBean.getPromotions().elementAt(i))%>"
value="<%=(String)(ProductInfoBean.getPromotions().elementAt(i))%>"
/>
<%}%>
<%
ddPromotion.setClientEvent(EventTrigger.ON_CHANGE,"handle_promotionChange()");
%>
</hbj:dropdownListBox>
</hbj:gridLayoutCell>
<hbj:gridLayoutCell
rowIndex="3"
columnIndex="1"
width="10%"
horizontalAlignment="LEFT"
>
<hbj:textView
text="Selection #"
id="txtSelection"
tooltip="Selection #"
encode="false">
</hbj:textView>
</hbj:gridLayoutCell>
<hbj:gridLayoutCell
rowIndex="3"
columnIndex="2"
width="10%"
horizontalAlignment="LEFT"
>
<hbj:inputField
id="ipSelection"
type="String"
invalid="true"
width="100"
value=""
visible="true"
disabled="false"
required="false"
maxlength="30"
size="50"
design="standard"
jsObjectNeeded="true"
>
<%
ipSelection.setClientEvent(EventTrigger.ON_KEYDOWN,"handle_enter()");
ipSelection.setClientEvent(EventTrigger.ON_CHANGE,"handle_selectionChange()");
%>
</hbj:inputField>
</hbj:gridLayoutCell>
</hbj:gridLayout>
<hbj:radioButtonGroup
id="rbgTypeSelect"
columnCount="2"
selection="rb_artwork"
>
<hbj:radioButton
id="rbArtwork"
text="Artwork"
key="rb_artwork"
tooltip="Extranet"
disabled="false"
jsObjectNeeded="true"
>
</hbj:radioButton>
<hbj:radioButton
id="rbProductDetails"
text="ProductDetails"
key="rb_productDetails"
tooltip="OVLC"
disabled="false"
jsObjectNeeded="true"
/>
</hbj:radioButtonGroup>
<hbj:button
id="searchButton"
text="Search"
tooltip="Please click to search"
disabled="false"
onClientClick = "openWindow()"
jsObjectNeeded="true"
>
</hbj:button>
</hbj:group>
</hbj:form>
</hbj:documentBody>
</hbj:document>
<script language="javascript">
function clearSearchCriteria(){
var funcName = htmlb_formid+"_getHtmlbElementId";
func = window[funcName];
(eval(func("ipTitle"))).setValue("");
(eval(func("ipSelection"))).setValue("");
(eval(func("ddPromotion"))).setValue("");
function handle_enter(){
var src= window.event.srcElement;
k = window.event.keyCode;
if (k == 13) {
// enter key pressed
openWindow();
function handle_titleChange(){
var funcName = htmlb_formid+"_getHtmlbElementId";
func = window[funcName];
var title = (eval(func("ipTitle"))).getValue();
if(title != "")
(eval(func("ipSelection"))).setDisabled(true);
(eval(func("ddPromotion"))).setDisabled(true);
else
(eval(func("ipSelection"))).setDisabled(false);
(eval(func("ddPromotion"))).setEnabled(true);
function handle_selectionChange(){
var funcName = htmlb_formid+"_getHtmlbElementId";
func = window[funcName];
var selection = (eval(func("ipSelection"))).getValue();
if(selection !="")
(eval(func("ipTitle"))).setDisabled(true);
(eval(func("ddPromotion"))).setDisabled(true);
else
(eval(func("ipTitle"))).setDisabled(false);
(eval(func("ddPromotion"))).setEnabled(true);
function handle_promotionChange(){
var funcName = htmlb_formid+"_getHtmlbElementId";
func = window[funcName];
var promotion = (eval(func("ddPromotion"))).getValue();
if (promotion!=""){
(eval(func("ipTitle"))).setDisabled(true);
(eval(func("ipSelection"))).setDisabled(true);
else
(eval(func("ipTitle"))).setDisabled(false);
(eval(func("ipSelection"))).setDisabled(false);
function openWindow(){
var funcName = htmlb_formid+"_getHtmlbElementId";
func = window[funcName];
var title = (eval(func("ipTitle"))).getValue();
var selection = (eval(func("ipSelection"))).getValue();
var promotion = (eval(func("ddPromotion"))).getValue();
// var selType = (eval(func("rbProductDetails"))).getChecked();
var rb = eval(func(htmlb_radiobuttonmodifier+"rbArtwork")).getChecked();
var rb2 = eval(func(htmlb_radiobuttonmodifier+"rbProductDetails")).getValue();
alert("rb cheked " + rb);
alert("rb2 value " + rb2);
</script>
</hbj:content> -
RadioButtons in WAD to open different reports
Hi
I have a R/3-report . My Client wants same report in the BI-Environment.
It contains Three Radio Buttons and when the user open first radibutton then he/she needs to get the one type of report .
And when the user open another radiobutton then he/she needs to get one type of report.
So how can we generate like this report in the WEB APPLICATION DESIGNER.
Regards
kumarHi,
Here is an example of how to use a button to execute a web template:
Hyperlink behind pushbutton
<table><tr><td class="SAPBEXBtnStdBorder" cellspacing="0" cellpadding="0" border="0"><tr><td>
<table><tr><td class="sapbexbtnstd" ><a href="<SAP_BW_URL cmd='LDOC' TEMPLATE_ID='EXAMPLE_TEMPLATE'>" target="_Blank">Call Example Template in Separate Window</a></td></tr></table>
</td></tr></table>
You can also look for more examples at the reference link below:
http://help.sap.com/saphelp_nw04/helpdata/EN/b4/0fa239cec06b40e10000000a11402f/content.htm -
HANA Stored Procedure in SAP Design Studio
hi there,
I developed a HANA stored procedure, I want to implement this procedure in SAP Design Studio. following scenario:
if Button Click, the Procedure is executed and the result of this Procedure is shown in a crosstab.
I can maybe help someone, maybe someone has tried something similar.
Thank youhi,
I developed in Hana a calculation view with script, cfr stored procedure, this view I can use as a datasource in my SAP Design Studio. The loading of your datasource can be triggered by your button: set datasours load in script true, radiobutton event: DS_1.loaddatasource ();
Is this work around okay for you.
Greetings
Koen -
Hai need to create a pop-up with radiobuttons
Hi all,
I need to create a pop-up window with two radiobuttons in smart form driver program. This popup sholud appear before the print preview is seen and need to perform some actions based on that radiobutton options.
How to create the popup with two radiobuttons.
Pls send me if u have any sample codes.
Thanks
Saravana.Hi
Before you call your smartform you can do it this way:
**design the selection screen as folllows:
selection-screen begin of screen 100.
parameters: rad1 type c radiobutton group g1,
rad2 type c radiobutton group g2.
selection-screen end of screen 100.
Call selection-screen 100.
**you can now do some processing before the smartform is called.
Thanks and Regards,
Kunjal Patel -
Hi Friends,
I have copied the Selection screen text from a Standard program with the standard text startng with "%ALV". i copied the same program into a Z program and copied also the selection screen text.but that radio button text is not dislayed in the output..hi
after copying a program that text elemnts data won't refelect in that new program (copied )
go to that standard program and in utilities u will find text element data copy that data and past it in ur copied program
then it will display the values
i think for radiobuttons it will be like this
********SELECTION SCREEN DESIGN ***********
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETER : P_WERKS LIKE MARC-WERKS MODIF ID S1.
SELECT-OPTIONS : S_EBELN FOR EKKO-EBELN NO INTERVALS MODIF ID S2.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-004.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : R1 RADIOBUTTON GROUP G1 DEFAULT 'X'.
SELECTION-SCREEN COMMENT 5(20)<b> TEXT-002</b> FOR FIELD R1.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : R2 RADIOBUTTON GROUP G1.
SELECTION-SCREEN COMMENT 5(20) <b>TEXT-003</b> FOR FIELD R2.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B2.
******END OF SELECTION SCREEN DESIGN****************
in copied program these values also not reflect you need double clcik these text and define here in new program
also
Maybe you are looking for
-
I have this 52" lcd tv and am toying with the thought of using it as a monitor with my laptop. Has anyone tried this setup, and if you did, does it funtion well. Thanks HP P2-1117BC x64 G460 HP dv7-1247cl X64 AMD 72 Windows 7 Home Premium AVIRA &Wind
-
Can i buy a mac Laptop from Usa paying Monthly?
Hello people , i'm going to buy a Mac laptop from the Usa .. i wonder could i buy it so i pay Monthly ? That's all i can say
-
Any way to sync iCal notes w/ Nokia phone?
I was pretty bummed to learn that even though my Nokia syncs perfectly with iCal and Address Book, it completely ignores the notes attached to my appointments and To-Do items. This is a major bummer. Is there any solution? I did find a widget that al
-
Exactly what the title says. On iMovie, how do I combine all the audio tracks so that Youtube chooses all of them?
-
Lost keyboard shortcuts on InDesign
All the keyboard shortcuts have disappeared from InDesign. How do I get them back? They still work on all other creative suite programs.