How to skip page1 based on condition
Hi Experts,
I have one issue in adobe form,in that form two master pages there. If the invoice no having only one line item in this case the first page should be hide that means the one line item should be displaying in second page. in this case should be visible only the second page need to display.
If any one aware of this please help me.
Now i am able to display the line item in second page but first page still visible(I need not to display page one how to hide using java script).
Is this issue resolved ?
Close the thread with correct and helpful answers.
How to close a discussion and why
Regards
Sandy
Similar Messages
-
How to disable Buttons based on condition.
Hi
Need your help to disable button based on condition.
Please refer the application:
http://apex.oracle.com/pls/otn/f?p=34797:5:110582943383419::NO:::
login credentials:
workspace: vsanthanam
user: vijay
pswd: apex_demo
In the above application, i have 2 buttons in page 5, (Report1 and Report2)
Where i have to disable button based on the following conditon:
i) USER whoever has Admin value 'Y' in my table can access the button.
for this i've written a Button Condition : Type (EXISTS)
select 1 from apex_extra_values where rtrim(lower(empname)) like decode((select Admin from apex_extra_values
where rtrim(lower(empname))=rtrim(lower(V('APP_USER')))),'Y',rtrim(lower(V('APP_USER'))))
note: i have empname same as my APEx user name. with Admin access 'Y'.
By using this code i can able to hide the button for users who has no Admin access.
But my requirement is : i have to show the button even if the user is not Admin, but to grey out (disable the button - no action)
I tried using javascript function:
function disableButton(pThis)
pThis.disabled=true;
But either of this (exists condtion or JAvascript function) works in my case and not both.
Any pointer on this would be highlt appreciated.
Thanks
VijayCouple of things:
1. I would never use v('APP_ITEM') but :APP_ITEM - it is faster and there is no need to use this function within an application
2. The way you are doing this check is not the best approach. You should create an authorization schema and run this once per session. Whatever this authorization is returning as a result you can check using the following Function returning boolean:
IF apex_util.public_check_authorization ('MY_AUTH') THEN RETURN TRUE; ELSE RETURN FALSE; END IF;
See this example on authorization issues:
http://apex.oracle.com/pls/otn/f?p=31517:148
3. As far as disabling a button is concerned I think I explained the options. I also have an example on that here:
http://apex.oracle.com/pls/otn/f?p=31517:143
whereby it is not disabling but hiding a button.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
How to show view based on condition
Hi,
I have a scenario with login screen with a submit button and two views(success and error).
Now I want to show
a)a successful view if user enters a correct login name and password(which will be validated with static values in action method of submit button)
b)a Error view if user enters wrong username and password.
I am struck at action code to write a condition to show respective views.
Some thing like (In Java)
If (login.id=='abc' && login.password='xyz')
show.view1
else
show.view2
I am not familar to ABAP coding as I just started to know.
If anyone know action code, Please help on this.
Thanks in advance
PraveenHi Suman,
Thanks for the code. my issue is still not solved
I have to change the code with respect to context node info.
My context looks like
Root
->Person
-->Name
-->Address (which is designted as password)
Now how to do modify your code with respect to the context. I'm sorry I m new to ABAP coding.I tried with below changed code.it gave me an error as shown in below.(type if_first=>element_name is unknown)
method ONACTIONACTION_GO .
data:
node_input_data type ref to if_wd_context_node,
elem_input_data type ref to if_wd_context_element,
stru_input_data type iffirst=>element_name._
navigate from <CONTEXT> to <INPUT_DATA> via lead selection
node_input_data = wd_context->get_child_node( name = 'PERSON' ).
get element via lead selection
elem_input_data = node_input_data->get_element( ).
get all declared attributes
elem_input_data->get_static_attributes(
importing
static_attributes = stru_input_data ).
if stru_input_data-name = 'praveen ' and
stru_input_data-address = 'ilkal'.
Navigate to view1
wd_This->Fire_Outtov2_Plg(
else.
Navigate to View2
wd_this->fire_<plugname>_plg(
wd_This->Fire_Outtov2_Plg(
endif.
endmethod.
Error:
type if_first=>element_name is unknown (why this error..?)
Thanks
Praveen
Edited by: Praveen kumar Kadi on Sep 12, 2008 9:38 AM -
How to Hide Columns Based on Condition
Hi All,
i have an SSRS Report with below four columns.
Product_Name , Year , Credit_Amount , Debt_Amount
I want to hide the Credit_Amount Column if that column all values are Zero.
In the same way needs to hide Debt_Amount Column if that column all values are Zero.
Thanks in advance.
bala krishnaStep 1- Right click on your required Column here in below example: I wanted to hide
Name column
and select Column Visibility
Step 2- From the
Column Visibility window , select Show or hide based on an expression and
then click on fx button as shown in below screenshot
Step 3- Write Your expression in expression windows as below
=IIF(Fields!Credit_Amount.Value = 0, True, False)
Repeat step 1 to Step 3 for Debt_Amount column .
Sandip Pani http://SQLCommitted.com -
How to blink TreeView Nodes based on condition c#
suppose i am populating my tree view with data from database and i want to blink those nodes which has a specific data. now guide me with code how can i efficiently blink multiple tree view nodes based on condition in winform application.
Hi Mou_kolkata,
>> anyone can give me small working code for tree node blinking
Thank Armin for the details about blinking TreeView Nodes.
For a simple demo to blink TreeView nodes, you could refer the link below:
# Treeview control - How to make a node blink?
https://social.msdn.microsoft.com/Forums/en-US/64e7a4d7-3098-4370-990f-390cb3a640a1/treeview-control-how-to-make-a-node-blink
If you have issues when you blink Treeview nodes, please feel free to post a new thread in this forum, then you would get more help.
Best Regards,
Edward
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. -
How to create additional Line in file based on condition available as part of ZINVOIC02 Idoc segment
Scenario Details:
Receiving Zinvoic02 Idoc in PI. Idoc to file translation creates comma separated file with .csv extn
The logic was kept in such a way that how many E1EDP01 (items) are available in IDoc that many no of records will be created in csv file.
The file logic for some the fields is as below:
No of records
InvNumber
InvDate
CusNumber
LineitemDesc
Tax1Type
Tax1%
for 1st E1EDP01
E1EDK01-BELNR
E1EDK03-DATUM
E1EDK01-PARTN
Populate when E1EDP04/MSKWZ=O2 or O4 with E1EDP19/KTEXT
Hardcode when E1EDP04/MSKWZ=O2 or O4
Sum all E1EDP04 /MSATZ when E1EDP04/MSKWZ=O2 or O4
for 2nd E1EDP01
E1EDK01-BELNR
E1EDK01-DATUM
E1EDK01-PARTN
same as above
same as above
same as above
for 3rd E1EDP01
E1EDK01-BELNR
E1EDK03-DATUM
E1EDK01-PARTN
same as above
same as above
same as above
Additional Line to be created when one or more of E1EDP01 is having E1EDP04/MSKWZ = O3
same as above
same as above
same as above
Hardcode "REIM for USE TAX"
Hardcode ""
Hardcode ""
Now we have got addition requirement to add a new lineitem when tax code is equal to O3 for any of the E1EDP01.
Is it possible to create additional lineitem based on condition. If yes, please share what should be the approach.
How we can create the additional lineitem?
Currently we are using E1EDP01 to do context handling.
The target structure is :
MT_FILE
INVOICE 0..unbounded
InvNumber 0..1
InvDate 0..1
CusNumber 0..1
LineitemDesc 0..1
Tax1Type 0..1
Tax1% 0..1Hello,
Please add one extra field in the data structure of the target mapping and let its occurrence be 0..unbounded under the root node 'MT_ADP_Invoice'.
Apply the condition, if tax code MSKWZ (with its context changed to E1EDP01) equalsS to '03', then map it to the newly created target field whose occurrence is 0..unbounded.
This will then create an additional field which is your requirement.
The above is one way.
But if you want to have the same target field name as ADP_File appended for tax field being '03'.
Then in that case you can you two message mapping for one common operational mapping / interface.
In the first message mapping you need to have one target data structure created with the source data structure remaining the same as the one shown by you in scrn shot. Now this target data structure will be similar to the source, except that you need to add one more field at the end(name different from other fields) in target (whose occurrence should be 0..unbounded), and it needs to be mapped to E1EDP01 provided the tax code field MSKWZ(its context changed to E1EDP01) equalsS to constant '03'.
In the second message mapping you need to map the target structure of previous message mapping to the actual required structure. The newly added field should be mapped to ADP_File of your final target structure.
This will then create the same structure as required.
Note : Please change the occurence of ADP_File to 0..unbounded.
Regards,
Souvik -
How to give color to the display of keyfigure based on condition using exception.
Dear Friends.
I am trying to color "BAD3" in exception based on condition but my problem is in exception I can have only formula variable to compare the value, How to assign a value to formula variable in BEx Query designer.
What I am trying to do is :
in Query designer :
I have PO Quantity and Delivered Quantity.
if PO Qnantity > Delivered Quantity
then Delivered Quantity field should be colored as "BAD3" in exception.
but here proble is in exception
I have alert level , operator, and value fields for Delivered Quantity keyfigure ( Under definition tab - Exception is defined on = Delivered Quantity ).
but for value field I dont have PO Quantity for that I have to supply one formula variable,
When I created a forumula and did this way
FV_PO_QUANTITY = PO_QUANTITY formula editor throws errors. I dont understand How to assign a value of key figure to formula variable and use it in EXceptions.
Please help me How I can solve my problem
I will greatly appreciate your any help.
Thanking you
Regards
NaimThank you so much for your replies,
I did following way and it helped me to solve my issues.
I created one formula and under formula I use boolean < funtion to compare the values.
like following way.
( 'PO Quantity' > 'Delivered Quantity' ) * ( FV_PO_QNT + PO_QUANTITY')
here fv_po_qnt is formula variable I supply that variable to exception and since I have the value in it.. it compares with Delievered Quantity value and colored the perticular cell.
Thanks again for your replies
Regards
Naim -
Hi,
my requirement is to call webdyn pro screen from workflow..
i am calling webdynpro screen by using FM :CALL_BROWSER from workflow.
when webdyn pro screen is called user will enter some values . if user closed webdyn pro screen with out entering any values we need show this workitem in his inbox. so that user can again open it and enter values in the webdyn pro screen.
Please help how to stop work item complete based on conditions.
Thanks,
phaniHi,
As per my understanding, this is not a proper approach toy call web dynpro using FM CALL_BROWSER. is the web dynpro screen being called when user clicks on the work item from portal UWL OR from SAP SBWP ?
if you are calling web dynpro screen from portal UWL when user clicks on work item link, better you achieve it using SWFVISU tcode. in SWFVISU tcode you can maintain which web dynpro. application to call when particualr work item task come in user's inbox. in your web dynpro code, then you can write your buisiness logic when user clicks for example SUBMIT/SAVE button. on action submit/save button you can use FM SAP_WAPI_WORKITEM_COMPLETE to complete the worktiem once the user clicks on final submit/save button. in this way the workitem will get removed from user inbox only upon clicking on submit/save button.
You can refer below link for web dynpro for workitem:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70648e99-4cc1-2c10-879d-9c61003c69d6?QuickLink=index&… -
How can i render one facet in panel splitter based on conditions?
Jdeveloper Version - 11.1.1.5
How can i render one facet in panel splitter based on conditions?
Ex : In horizontal Panel splitter first facet - af table
second facet - af table
if any one table estimated row count is zero i nedd to render the respective facet?
is it possible?
Please help..
Thanks
skYes you can do it but not on facet you can apply rendered attribute to the any of the child component of the facet.
Thanks
Raghav -
How to find pricing procedure based on condition type
Hi,
Please tell me any one " how to find the pricing procedure based on condition type " is there any tables.
Thankscheck table - T683S, where you get all prciing procedures for which has same condition type.
go to se16
give table - T683S
in condition type feild, menation your condition type and execute, you get all procedures with condition type. -
How to restrict VK11 access based on condition class D (Tax)
hi ,
I have a requirement to restrict VK11 access based on condition class D (Tax). Because all users should not have access to maintain tax data in VK11 while general pricing data they can maintain. when condition class is D then we should have control.
Thanks
AkhileshHi Akhilesh,
Please find the below link and click on View article.
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a92195a9-0b01-0010-909c-f330ea4a585c
how to create authorization object?
Thanks
Dasaradha -
How can hide the buttons based on condition
Dear all
I have to hide the button based on condition
When I open the third page directly I want to hide that button
When I open the third page via first and second page I need to visible that button
I pass spell parameter from first to second and second to third
In third page I get the value using pagecontext
I write the code in third page co
If I go directly third page it is null
If I go to third page via first the value is Y
If(“Y”.equals(pmode))
OASubmitButtonBean btn =( OASubmitButtonBean )webBean.findChildRecursive(“<id>”);
If(!btn=null)
btn.setrendered(true);
else
btn.setrendered(false);
but the button is not hiding
Regards
SreekanthHi Srikanth,
I have modified ur method:
OASubmitButtonBean btn =( OASubmitButtonBean )webBean.findChildRecursive(“<id>”);
If(btn !=null)
If(“Y”.equals(pmode))
btn.setrendered(true);
else
btn.setrendered(false);
Thanks,
'Kumar
Edited by: Kumar Kovela on Aug 3, 2009 5:53 AM -
How to skip a record in flat file to idoc scenario?
Hi,
Anybody have good suggestions on how to skip a record(xi not process the record) based on certain conditions? I don't want to use bpm, anybody has experience with file to idoc can advise how to deal with this situation?
Thanks,
MegMeg,
Its very clear. It can be easily done. I hope u might be knowing about Michal's changing the IDOC occurence blog. Based on that blog change the IDOC occurence to 0...Unbounded.
Now map all the necessary fields to the target IDOC. On the IDOC root node set condition from source if the source field is not Delete then create IDOC else don't create.
Source --- If without else[Check condition if the source is delete] -
IDOC(root node).
/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
Hope its clear, if not kindly revert back.
Best regards,
raj. -
How to skip an entire data packet while data loading
Hi All,
We want to skip some records based on a condition while loading from PSA to the Cube, for which we have written a ABAP code in Start Routine .
This is working fine.
But there is a Data packet where all the records are supposed to be skipped and here it is giving Dump and Exception CX_RSROUT_SKIP_RECORD.
The ABAP Code written is
DELETE SOURCE_PACKAGE WHERE FIELD = 'ABC' .
And for a particular data packet all the records satisfy the condition and gets deleted.
Please advice how to skip the entire data packet if all the reocrs satisfy the condition to be deleted and handle the exception CX_RSROUT_SKIP_RECORD .
Edited by: Rahir on Mar 26, 2009 3:26 PM
Edited by: Rahir on Mar 26, 2009 3:40 PMHi All,
The Dump I am getting is :
The exception 'CX_RSROUT_SKIP_RECORD' was raised, but it was not caught
anywhere along
the call hierarchy.
Since exceptions represent error situations and this error was not
adequately responded to, the running ABAP program 'GPD4PXLIP83MFQ273A2M8HU4ULN'
has to be terminated.
But this comes only when all the records in a particular Data Packet gets skipped.
For rest of the Data Packets it works fine.
I think if the Data Packet(with 0 records) itself can be skipped this will be resolved or the Exception will be taken care of.
Please advice how to resolve this and avoid 'CX_RSROUT_SKIP_RECORD' at earliest .
Edited by: Rahir on Mar 27, 2009 6:25 AM
Edited by: Rahir on Mar 27, 2009 7:34 AM -
Calling different pages in a single sap script based on conditions?
Hi All,
Can anyone please give me an example of how to call different pages in a single sap script based on condition. Eg., i need to call 5 differnet pages from a single sap script based on 5 company codes.
Please help
Regards
PriyaThis approach to make call from SAPscript. Its concept is similar to make call to a subroutine in another program. I would presume you understand how to use USING and CHANGING parameter. =)
SAPscript -
/: Perform get_date in program z_at_date
/: using &p_year&
/: changing &new_date&
/: endperform.
program z_at_date -
form get_date TABLES rec_in STRUCTURE itcsy
rec_out STRUCTURE itcsy..
DATA:
v_year type char10.
sap script and subroutine uses itcsy structure to transmit parameters
first parameter is incoming while second parameter is out going
their function is like an internal table with header line
all data types between SAPscript and subroutine are string.
so, you might need additional conversion.
read incoming parameter with exact name from SAPscript
READ TABLE rec_in WITH KEY name = 'P_YEAR'.
IF sy-subrc EQ 0.
v_year = rec_in-value.
ENDIF.
to return value, use the exact name on the second structure
CONCATENATE v_year v_year INTO v_year.
READ TABLE rec_out WITH KEY name = 'NEW_DATE'.
IF sy-subrc EQ 0.
rec_out-value = v_year.
MODIFY rec_out TRANSPORTING value WHERE name = 'NEW_DATE'.
ENDIF.
endform.
Hope this helps =)
Maybe you are looking for
-
Does Apple TV work outside the US
Does Apple TV work outside the US
-
I phone to send email from PC?
I want to compose e mail on my PC and use the I phone to send the mail ( due to location and lack of wifi signal) Any way to do this?
-
How do I print greeting cards that are A7 (unfolded 10" x 6.5") on my HP Officejet 7610. My operating system is OS X 10.10.1. I cannot see where this paper size is listed. I have made a custom paper size but when I try printing the print software sho
-
I have been asked by the head of the organization to enforce a 30 day retention policy for ALL emails in everyone's Outlook (Exchange 2010) - Inbox, Sent, Deleted, etc. (he deletes EVERY message as soon as he read it). So I went into the EMC and f
-
Edge Animate playing all symbols on replay?
Hi, I am at my wits' end here--I've created a basic animation using Edge Animate CC 2014.0.1, featuring groups of symbols which have a stop trigger at the beginning of the animation and are then played at the appropriate time. It works fine--the firs